/* =====================================================================
   Nawi Systems · estilos del sitio
   ---------------------------------------------------------------------
   Orden del archivo (de lo general a lo particular):
     1. Variables de diseño        8. Carrusel y maquetas
     2. Base                       9. Catálogo de servicios
     3. Tipografía                10. Secciones de la portada
     4. Fondos                    11. Página de IA
     5. Estructura y utilidades   12. Contacto y formulario
     6. Botones y enlaces         13. Pie de página
     7. Encabezado y navegación   14. Celular
                                  15. Movimiento, accesibilidad e impresión
   Convención: bloques con nombre (.rubro) y sus partes (.rubro__img),
   variantes con doble guion (.rubro--abierto).
   ===================================================================== */


/* 1. Variables de diseño ============================================== */
:root {
  /* Colores de la marca (los cuatro del logo) */
  --azul: #1F4FBF;
  --azul-osc: #163C94;
  --azul-claro: #EAF0FD;
  --rojo: #C81D4A;
  --ambar: #E8A317;
  --verde: #22C55E;
  /* Neutros */
  --tinta: #0E1424;          /* texto principal y fondos oscuros */
  --tinta-2: #16244D;        /* segundo tono de los degradados oscuros */
  --noche: #070B16;          /* fondo del carrusel */
  --gris: #5B6475;           /* texto secundario */
  --gris-2: #8A93A6;
  --gris-3: #2B3345;         /* texto de navegación y etiquetas */
  --linea: #E3E8F0;
  --fondo-2: #F5F7FB;        /* secciones alternas */
  --blanco: #FFFFFF;
  --tenue: #C9D1E0;
  --celeste: #9DBBFF;        /* acentos sobre fondo oscuro */
  --celeste-2: #7EA6FF;
  /* Tipografía */
  --fuente: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  /* Espaciado y forma */
  --lado: clamp(20px, 5vw, 72px);       /* margen lateral de las secciones */
  --bloque: clamp(64px, 8vw, 104px);    /* espacio vertical de las secciones */
  --radio: 16px;
  --sombra: 0 1px 2px rgba(14, 20, 36, .05), 0 8px 24px rgba(14, 20, 36, .06);
  --sombra-alta: 0 2px 4px rgba(14, 20, 36, .06), 0 18px 40px rgba(14, 20, 36, .12);
  --oscuro: linear-gradient(150deg, var(--tinta), var(--tinta-2));
  /* Palomita de las listas (azul sobre celeste) */
  --palomita: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3L11.5 5.8' fill='none' stroke='%231F4FBF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --palomita-ambar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3L11.5 5.8' fill='none' stroke='%23E8A317' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 2. Base ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanco); color: var(--tinta); font-family: var(--fuente); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.on-azul :focus-visible, .on-rojo :focus-visible, .on-tinta :focus-visible, .carrusel :focus-visible { outline-color: var(--ambar); }
::selection { background: var(--azul); color: var(--blanco); }
input[type=range] { width: 100%; height: 32px; margin: 0; accent-color: var(--azul); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--azul); color: var(--blanco); padding: 12px 18px; font-weight: 700; border-radius: 10px; }
.skip:focus { top: 12px; }


/* 3. Tipografía ======================================================= */
.display { font-family: var(--fuente); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.display em { font-style: normal; color: var(--azul); }
.on-tinta .display em, .on-azul .display em, .on-rojo .display em, .carrusel .display em { color: var(--celeste-2); }
.h-hero, .h-hero--sm { font-size: clamp(38px, 5vw, 62px); }
.h-sec { font-size: clamp(30px, 3.6vw, 46px); }
.h-sub { font-size: clamp(32px, 4vw, 48px); }
.h-cierre { font-size: clamp(32px, 4vw, 52px); max-width: 16em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--gris); }
.small { font-size: 15px; }
.nota { font-size: 14px; color: var(--gris); }
.medida { max-width: 34em; color: var(--gris); }
.on-tinta :is(.lead, .medida), .on-azul :is(.lead, .medida), .on-rojo :is(.lead, .medida), .carrusel .lead { color: rgba(255, 255, 255, .8); }
.on-tinta .nota, .on-azul .nota, .on-rojo .nota { color: rgba(255, 255, 255, .7); }
.num { font-variant-numeric: tabular-nums; }
.tenue { color: var(--tenue); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--azul); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-tinta .eyebrow, .on-azul .eyebrow, .on-rojo .eyebrow, .carrusel .eyebrow { color: var(--celeste); }

/* Numerales de la marca: uno, dos, tres o cuatro puntos */
.puntos { display: flex; gap: 5px; height: 12px; align-items: center; }
.puntos i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.puntos .barra { width: 58px; height: 10px; border-radius: 6px; }
.puntos--rojo { color: var(--azul); }


/* 4. Fondos =========================================================== */
.on-tinta { background: var(--tinta); color: var(--blanco); }
.on-azul { background: var(--azul); color: var(--blanco); }
.on-rojo { background: var(--rojo); color: var(--blanco); }
.on-ambar { background: var(--ambar); color: var(--tinta); }
.on-blanco { background: var(--fondo-2); color: var(--tinta); }
.on-crema { background: var(--blanco); color: var(--tinta); }
/* En secciones completas los colores se suavizan: azul y rojo pasan a degradados oscuros; ámbar, a gris claro */
:is(section, .sec).on-azul { background: linear-gradient(135deg, #12306F 0%, var(--azul) 60%, #2C63E0 100%); }
:is(section, .sec).on-rojo { background: radial-gradient(900px 500px at 85% 0%, rgba(31, 79, 191, .55), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(200, 29, 74, .35), transparent 60%), var(--noche); }
:is(section, .sec).on-ambar { background: var(--fondo-2); color: var(--tinta); }
:is(section, .sec).on-tinta { background: radial-gradient(800px 400px at 100% 0%, rgba(31, 79, 191, .35), transparent 60%), var(--tinta); }
#servicios, #calculadora, #tienda, #preguntas { background: var(--fondo-2); }


/* 5. Estructura y utilidades ========================================== */
.sec { padding: var(--bloque) var(--lado); }
/* Variantes de espacio (doble clase para que también manden en celular) */
.sec.sec--franja { padding-block: 64px; }        /* banda angosta (compromisos) */
.sec.sec--pegada { padding-bottom: 48px; }       /* encabezado pegado al bloque que sigue */
.sec.sec--sin-arriba { padding-top: 0; }         /* continúa la sección anterior */
.pila { display: flex; flex-direction: column; gap: 20px; }
.pila--compacta { gap: 12px; }
.pila--titulo { gap: 14px; }                 /* rótulo + título */
.pila--amplia { gap: 24px; }
.pila--lg { gap: 44px; }
.dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 64px; align-items: start; }
.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.alinear-inicio { align-self: flex-start; }
.ancho-15 { max-width: 15em; }
.ancho-27 { max-width: 27em; }
.ancho-30 { max-width: 30em; }
.ancho-34 { max-width: 34em; }


/* 6. Botones y enlaces ================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 28px; line-height: 1.2;
  background: var(--azul); color: var(--blanco); box-shadow: 0 6px 16px rgba(31, 79, 191, .25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--azul-osc); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 79, 191, .32); }
.btn:active { transform: none; }
.btn--claro { background: var(--blanco); color: var(--tinta); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.btn--claro:hover { background: var(--azul-claro); color: var(--azul-osc); }
.btn--acento { background: var(--ambar); color: var(--tinta); }   /* botón ámbar sobre fondo oscuro */
.btn--acento:hover { background: #F4B935; color: var(--tinta); }
.btn--sm { font-size: 15px; padding: 11px 20px; }
.btn--lg { font-size: 17px; padding: 17px 32px; }
.btn--linea { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 700; transition: background .15s ease, color .15s ease; }
.btn--linea:hover { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }
.enlace { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 10px 0; text-decoration: none; color: var(--azul); }
.enlace::after { content: "→"; transition: transform .2s ease; }
.enlace:hover::after { transform: translateX(4px); }
.on-tinta .enlace, .on-azul .enlace, .on-rojo .enlace, .carrusel .enlace { color: var(--blanco); }
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid var(--linea); border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--blanco); color: var(--tinta); }
.pill:is(.on-tinta, .on-rojo, .on-azul) { border-color: transparent; }
.pill.on-tinta { background: var(--tinta); color: var(--blanco); }
.pill.on-rojo { background: var(--rojo); color: var(--blanco); }
.pill.on-azul { background: var(--azul); color: var(--blanco); }
.sello { display: inline-flex; align-items: center; padding: 5px 12px; font-size: 13px; font-weight: 700; border-radius: 999px; background: var(--azul-claro); color: var(--azul); border: 0; }
.sello.on-ambar { background: #FEF3D8; color: #8A5A00; }
.sello.on-crema { background: var(--blanco); color: var(--tinta); }


/* 7. Encabezado y navegación ========================================== */
.aviso { padding: 8px var(--lado); font-size: 14px; text-align: center; background: var(--fondo-2); color: var(--gris); border-bottom: 1px solid var(--linea); }
.aviso a { font-weight: 700; color: var(--azul); text-underline-offset: 3px; }
.cab {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  padding: 14px var(--lado); border-bottom: 1px solid var(--linea); transition: padding .25s ease, box-shadow .25s ease;
}
.cab--compacta { padding-block: 8px; box-shadow: 0 6px 20px rgba(14, 20, 36, .07); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__marca { width: 42px; height: 42px; flex: none; border-radius: 10px; overflow: hidden; transition: transform .5s cubic-bezier(.2, .8, .2, 1), width .25s ease, height .25s ease; }
.cab--compacta .logo__marca { width: 36px; height: 36px; }
.logo:hover .logo__marca { transform: rotate(-8deg) scale(1.05); }
.logo__texto { display: flex; flex-direction: column; gap: 2px; }
.logo__nombre { font-family: var(--fuente); font-weight: 800; font-size: 24px; letter-spacing: 0.06em; line-height: 1; }
.logo__sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.42em; line-height: 1; color: var(--gris); }
.on-tinta .logo__sub { color: rgba(255, 255, 255, .6); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 600; color: var(--gris-3); }
.nav a:not(.btn) { padding: 10px 0; text-decoration: none; position: relative; transition: color .15s ease; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--azul); border-radius: 2px; transform: scaleX(0); transition: transform .25s ease; }
.nav a:not(.btn):hover, .nav a.activo:not(.btn), .nav a[aria-current="page"] { color: var(--azul); }
.nav a.activo:not(.btn)::after, .nav a[aria-current="page"]::after, .nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-btn { display: none; background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 700; min-height: 44px; }
@media (max-width: 1060px) {
  .nav-btn { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .nav.abierto { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; }
}
.progreso { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.progreso i { display: block; height: 100%; background: linear-gradient(90deg, var(--azul), #5B8CFF); transform: scaleX(0); transform-origin: left; }


/* 8. Carrusel y maquetas ============================================== */
.carrusel { --dur: 7s; position: relative; background: var(--noche); color: var(--blanco); overflow: hidden; isolation: isolate; }
.carrusel__red { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .75; pointer-events: none; }
.carrusel::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 11, 22, .92) 0%, rgba(7, 11, 22, .55) 45%, rgba(7, 11, 22, .15) 100%); }
.carrusel__pista { position: relative; z-index: 1; display: block; }
.js .carrusel__pista { display: grid; touch-action: pan-y; }

/* Diapositivas: sin JavaScript se ven una debajo de otra; con JavaScript se apilan y se muestra una */
.slide {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px clamp(32px, 6vw, 96px);
  padding: clamp(56px, 7vw, 96px) var(--lado) clamp(84px, 8vw, 112px); min-height: min(660px, calc(100svh - 150px));
  position: relative; background: transparent; color: var(--blanco);
}
.js .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.js .slide.activa { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(620px 420px at 78% 50%, var(--brillo, rgba(31, 79, 191, .45)), transparent 70%); }
.slide--rojo { --brillo: rgba(200, 29, 74, .42); }
.slide--ambar { --brillo: rgba(232, 163, 23, .34); }
.slide--azul { --brillo: rgba(31, 79, 191, .55); }
.slide--crema { --brillo: rgba(91, 140, 255, .38); }
.slide--tinta { --brillo: rgba(34, 197, 94, .26); }
.slide__texto { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 38em; }
.slide__titulo { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; }
.slide .lead { max-width: 32em; }
.slide__visual { position: relative; display: flex; justify-content: center; }
.slide .btn { background: var(--ambar); color: var(--tinta); box-shadow: 0 10px 28px rgba(232, 163, 23, .3); }
.slide .btn:hover { background: #F4B935; }

/* Controles: puntos centrados abajo (el activo se alarga y se llena), pausa y flechas */
.carrusel__control { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 18px; pointer-events: none; }
.carrusel__control > * { pointer-events: auto; }
html:not(.js) .carrusel__control { display: none; }
.carrusel__tabs { display: flex; align-items: center; gap: 10px; order: 1; }
.carrusel__botones { display: contents; }
.ctab { position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); overflow: hidden; transition: width .35s cubic-bezier(.2, .8, .2, 1), background .2s ease; }
.ctab:hover { background: rgba(255, 255, 255, .6); }
.ctab[aria-current="true"] { width: 46px; background: rgba(255, 255, 255, .28); }
.ctab__num, .ctab__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctab__barra { position: absolute; inset: 0; }
.ctab__barra b { display: block; height: 100%; width: 0; background: var(--blanco); border-radius: 999px; }
/* La barra que se llena marca el tiempo: al terminar, el JavaScript pasa a la siguiente diapositiva */
.js .ctab[aria-current="true"] .ctab__barra b { animation: llena var(--dur) linear forwards; }
.carrusel:is(.pausado, .oculto-tab, :hover, :focus-within) .ctab__barra b { animation-play-state: paused !important; }
.cboton { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: var(--blanco); display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .15s ease, border-color .15s ease; }
.cboton svg { width: 18px; height: 18px; }
.cboton:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.cboton[data-paso="-1"] { order: 0; }
.cboton[data-pausa] { order: 2; width: 34px; height: 34px; }
.cboton[data-paso="1"] { order: 3; }
.cboton .ico-play, .cboton[aria-pressed="true"] .ico-pausa { display: none; }
.cboton[aria-pressed="true"] .ico-play { display: block; }
@media (min-width: 1001px) {
  .carrusel__control { position: static; }
  .carrusel__tabs { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 3; }
  .cboton[data-pausa] { position: absolute; left: calc(50% + 86px); bottom: 21px; z-index: 3; }
  .cboton[data-paso] { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
  .cboton[data-paso="-1"] { left: 20px; }
  .cboton[data-paso="1"] { right: 20px; }
}
@media (max-width: 1000px) {
  .slide { grid-template-columns: 1fr; min-height: 0; padding-bottom: 104px; }
  .slide__visual { justify-content: flex-start; }
  .carrusel::after { background: linear-gradient(180deg, rgba(7, 11, 22, .85), rgba(7, 11, 22, .6)); }
}
@media (max-width: 560px) {
  .slide { padding-top: 40px; gap: 32px; }
  .slide__visual { zoom: .88; }
  .cboton[data-paso] { display: none; }
}
@media (min-width: 1001px) and (max-height: 820px) {
  .slide { padding-block: 40px 84px; }
  .slide__visual { zoom: .82; }
  .slide__titulo { font-size: clamp(34px, 3.8vw, 52px); }
}

/* Maquetas: ilustraciones de producto hechas con HTML dentro de cada diapositiva */
.maqueta { width: min(440px, 100%); background: var(--blanco); color: var(--tinta); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08); font-size: 15px; position: relative; overflow: hidden; }
.maqueta__cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linea); font-weight: 700; font-size: 14px; }
.maqueta__cab.on-tinta { background: var(--tinta); border-bottom: 0; }
/* Precio sugerido */
.maqueta__curva { width: 100%; height: auto; padding: 16px 18px 0; }
.maqueta__precio { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; padding: 8px 18px 12px; }
.maqueta__precio small { flex-basis: 100%; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.maqueta__precio strong { font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -0.03em; }
.maqueta__precio s { font-size: 17px; color: var(--gris-2); }
.maqueta__razones { padding: 0 18px; border-top: 1px solid var(--linea); }
.maqueta__razones li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linea); }
.maqueta__razones i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.maqueta__acciones { display: flex; gap: 8px; padding: 14px 18px; }
/* Chat */
.maqueta--chat .maqueta__cab { justify-content: flex-start; color: var(--blanco); }
.punto-vivo { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); margin-right: 8px; animation: late 2s infinite; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #F2F4F8; }
.burbuja { max-width: 84%; padding: 10px 14px; background: var(--blanco); border-radius: 14px 14px 14px 4px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.burbuja--cliente { align-self: flex-end; background: #DCFCE7; border-radius: 14px 14px 4px 14px; }
.chat__nota { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; color: var(--gris); }
/* Tienda en un navegador */
.navegador { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--linea); background: #F2F4F8; }
.navegador i { width: 10px; height: 10px; border-radius: 50%; background: #D3D9E4; }
.navegador i:nth-child(1) { background: #FF5F57; }
.navegador i:nth-child(2) { background: #FEBC2E; }
.navegador i:nth-child(3) { background: #28C840; }
.navegador span { margin-left: 10px; flex: 1; padding: 4px 12px; background: var(--blanco); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--gris); }
.web__hero { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px; padding: 24px 18px; border-radius: 12px; background: linear-gradient(135deg, var(--tinta), #1B2A55); color: var(--blanco); }
.web__hero b { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.web__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px; }
.web__grid > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.web__grid .foto { aspect-ratio: 1; border-radius: 10px; margin-bottom: 6px; }
.web__grid small { color: var(--gris); }
.web__sellos { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; }
/* Tablero + teléfono */
.maqueta-duo { position: relative; width: min(480px, 100%); padding: 0 0 34px; }
.maqueta--tablero { width: 74%; }
.barras { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 18px 18px 0; border-bottom: 1px solid var(--linea); margin: 0 4px; }
.barras i { flex: 1; background: linear-gradient(180deg, #5B8CFF, var(--azul)); border-radius: 6px 6px 0 0; transform-origin: bottom; }
.barras i:nth-child(1) { height: 45%; }
.barras i:nth-child(2) { height: 70%; }
.barras i:nth-child(3) { height: 55%; }
.barras i:nth-child(4) { height: 85%; }
.barras i:nth-child(5) { height: 62%; }
.barras i:nth-child(6) { height: 78%; }
.barras i.on-rojo { background: linear-gradient(180deg, #F0567E, var(--rojo)); }
.tablero__kpis { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 18px 18px; }
.tablero__kpis small { display: block; font-size: 12.5px; font-weight: 600; color: var(--gris); }
.tablero__kpis b { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.2; }
.telefono { position: absolute; right: 0; bottom: 0; width: 40%; max-width: 196px; padding: 10px 8px; background: #111827; border-radius: 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.telefono__pantalla { background: var(--blanco); color: var(--tinta); border-radius: 22px; padding: 18px 14px; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.telefono__pantalla > b { font-size: 15px; }
.telefono .pill { align-self: flex-start; }
.parada { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--linea); }
.parada i { width: 13px; height: 13px; border: 2px solid var(--azul); border-radius: 50%; flex: none; }
.parada.hecha i { background: var(--azul); }
.parada.hecha span { text-decoration: line-through; color: var(--gris-2); }
/* Seguridad */
.maqueta--seguridad { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; align-items: center; padding: 26px; }
.escudo { width: 110px; height: auto; filter: drop-shadow(0 12px 24px rgba(31, 79, 191, .35)); }
.escudo path:first-child { stroke: var(--blanco); }
.revision li { padding: 9px 0 9px 30px; border-bottom: 1px solid var(--linea); position: relative; font-weight: 500; }
.revision li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translateY(-50%); }
.revision li.ok::before { background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.revision li.pend { font-weight: 700; color: var(--rojo); }
.revision li.pend::before { background: var(--ambar); }
@media (max-width: 480px) { .maqueta--seguridad { grid-template-columns: 1fr; } .escudo { width: 80px; } }


/* 9. Catálogo de servicios ============================================ */
#servicios > .dos { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
#servicios > .dos .pila { align-items: center; }
#servicios > .dos .medida { margin-inline: auto; }
.indice { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.indice a { padding: 8px 16px; border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--gris-3); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.indice a:hover { border-color: var(--azul); color: var(--azul); background: var(--azul-claro); }

/* Tarjetas iguales: foto, etiqueta, título, texto breve y "Me interesa" */
.rubros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.rubro { display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea); border-radius: 18px; box-shadow: var(--sombra); scroll-margin-top: 110px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.rubro:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); border-color: #CDD6E6; }
.rubro:target { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(31, 79, 191, .2), var(--sombra-alta); }
.rubro__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fondo-2); }
.rubro__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.rubro:hover .rubro__img img { transform: scale(1.05); }
.rubro__sello { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 11px; border-radius: 999px; background: var(--ambar); color: var(--tinta); font-size: 12px; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.rubro__cuerpo { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.rubro__etiqueta { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); }
.rubro__cuerpo h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.rubro__cuerpo p { font-size: 14.5px; line-height: 1.55; color: var(--gris); }
.rubro__cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 10px 0 6px; border: 0; background: none; color: var(--azul); font-size: 15px; font-weight: 700; text-decoration: none; }
.rubro__cta span { transition: transform .2s ease; }
.rubro__cta:hover span { transform: translateX(5px); }
/* Octava tarjeta: "¿Tu proyecto no encaja?" */
.rubro--abierto { background: var(--azul-claro); border: 1px dashed #A9BEEA; box-shadow: none; }
.rubro--abierto:hover { transform: none; box-shadow: none; }
.rubro--abierto .rubro__cuerpo { align-items: flex-start; justify-content: center; gap: 10px; padding: 26px 24px; }
.rubro--abierto h3 { font-size: 21px; }
.rubro--abierto .btn { margin-top: 8px; align-self: flex-start; }
.desliza { display: none; }   /* aviso "desliza" solo en celular */
@media (max-width: 1200px) { .rubros { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rubros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* 10. Secciones de la portada ========================================= */

/* Compromisos (cifras) */
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 36px; }
.cifras > div { padding-left: 20px; border-left: 2px solid rgba(255, 255, 255, .18); }
.cifra { font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; background: linear-gradient(90deg, #FFFFFF, var(--celeste)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cifras .small { color: rgba(255, 255, 255, .75); }

/* Los cuatro rumbos de Ollin */
.rumbos-sec { background: var(--blanco); }
.rumbos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0 var(--lado) var(--bloque); }
.rumbo { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radio); background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); box-shadow: var(--sombra); transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
.rumbo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tono); }
.rumbo:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.rumbo.on-rojo { --tono: var(--rojo); }
.rumbo.on-azul { --tono: var(--azul); }
.rumbo.on-ambar { --tono: var(--ambar); }
.rumbo.on-tinta { --tono: var(--tinta); }
.rumbo .puntos { color: var(--tono); }
.rumbo svg { width: 64px; height: 64px; fill: none; stroke: var(--tono); stroke-width: 7; transition: transform .25s ease-out; }
.rumbo svg [fill="currentColor"] { fill: var(--tono); }
.rumbo h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.rumbo p { font-size: 15px; color: var(--gris); }
@media (max-width: 1000px) { .rumbos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Listas con separadores */
.reglas { border-top: 1px solid rgba(127, 137, 160, .3); }
.reglas > * { padding: 16px 0; border-bottom: 1px solid rgba(127, 137, 160, .3); }
.on-tinta .reglas, .on-azul .reglas, .on-rojo .reglas, .on-tinta .reglas > *, .on-azul .reglas > *, .on-rojo .reglas > * { border-color: rgba(255, 255, 255, .2); }
.reglas strong { font-weight: 700; }
.reglas--sm { font-size: 15px; }
.reglas--sm > * { padding: 12px 0; }

/* Caja: contenedor de simulador, inspector y pestañas */
.caja { border: 1px solid var(--linea); background: var(--blanco); display: flex; flex-direction: column; border-radius: 20px; box-shadow: var(--sombra-alta); overflow: hidden; }
.caja__cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 18px 22px; border-bottom: 1px solid var(--linea); font-weight: 700; }
.caja__cab span + span { font-weight: 500; color: var(--gris); }
.caja__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--linea); font-weight: 700; transition: background .3s ease, color .3s ease; }

/* Simulador de precio */
.sim__grafica { padding: 22px 22px 8px; }
.sim__grafica svg { width: 100%; height: auto; }
.sim__grafica text { fill: var(--gris); font: 600 13px var(--fuente); }
.sim__control { padding: 8px 22px 18px; }
.sim__control label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.sim__precio { font-weight: 800; font-size: 42px; letter-spacing: -0.03em; line-height: 1; color: var(--azul); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linea); }
.kpis > div { padding: 16px 20px; border-right: 1px solid var(--linea); }
.kpis > div:last-child { border-right: 0; }
.kpis small { display: block; font-size: 13px; font-weight: 600; color: var(--gris); }
.kpis b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; }

/* Pestañas como control segmentado */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--fondo-2); border-bottom: 1px solid var(--linea); }
.tab { flex: 1 1 150px; min-height: 52px; border: 0; border-radius: 12px; padding: 10px 16px; background: transparent; color: var(--gris); font-size: 15px; font-weight: 700; text-align: center; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.tab small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; color: var(--gris-2); }
.tab:hover { color: var(--tinta); background: rgba(255, 255, 255, .7); }
.tab[aria-pressed="true"] { background: var(--blanco); color: var(--azul); box-shadow: 0 2px 8px rgba(14, 20, 36, .1); }
.tab--izq { text-align: left; }
.panel { padding: clamp(24px, 4vw, 40px); min-height: 150px; }
.panel__dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px 48px; }
.panel h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.panel p { color: var(--gris); }

/* Inspector del porqué de cada precio */
.cambio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 12px 0 22px; }
.cambio s { font-size: 20px; color: var(--gris-2); }
.cambio strong { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(38px, 5vw, 54px); line-height: 1; }
.causas > li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 6px 18px; align-items: start; }
.causa { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; text-align: center; margin-top: 2px; border-radius: 999px; }
.panel .efecto { margin-top: 20px; padding: 14px 18px; font-weight: 700; border-radius: 12px; background: #FEF3D8; color: #6B4600; }

/* Mosaico: cuadrícula de tarjetas (etapas, equipos, planes) */
.mosaico { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.mosaico > * { background: var(--blanco); padding: 26px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radio); border: 1px solid var(--linea); box-shadow: var(--sombra); transition: transform .2s ease, box-shadow .2s ease; }
.mosaico > *:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.mosaico h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.mosaico p, .mosaico li { font-size: 15px; color: var(--gris); }
.mosaico .puntos { color: var(--azul); }
.on-tinta .mosaico > * { color: var(--tinta); }

/* Sectores (moda, electrónica…) */
.sectores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 20px; }
.sectores > * { border-top: 3px solid var(--tinta); padding-top: 14px; color: var(--gris); font-size: 15.5px; }
.sectores > .sector--rojo { border-top-color: var(--rojo); }
.sectores > .sector--azul { border-top-color: var(--azul); }
.sectores > .sector--ambar { border-top-color: var(--ambar); }
.sectores strong { color: var(--tinta); }

/* Bloque del piloto A/B */
.piloto { padding: clamp(24px, 4vw, 40px); align-items: center; border-radius: 20px; background: var(--oscuro); }

/* Integraciones: con JavaScript se vuelven una cinta que corre sola */
.etiquetas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.etiquetas > strong { margin-right: 8px; }
.etiquetas span { border: 1px solid var(--linea); background: var(--blanco); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; color: var(--gris-3); }
.etiquetas--cinta { flex-wrap: nowrap; gap: 18px; }
.etiquetas--cinta > strong { flex: none; margin: 0; }
.cinta { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cinta__pista { display: flex; gap: 10px; width: max-content; animation: corre 32s linear infinite; }
.cinta__pista span { flex: none; white-space: nowrap; }
.cinta:hover .cinta__pista { animation-play-state: paused; }

/* Calculadora */
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo label { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 15.5px; }
.campo label span:last-child { color: var(--azul); }
.resultado { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; border-radius: 22px; background: var(--oscuro); box-shadow: var(--sombra-alta); }
.resultado__num { font-weight: 800; letter-spacing: -0.04em; font-size: clamp(54px, 7vw, 92px); line-height: 1; color: var(--ambar); }
.resultado .nota { font-size: 15px; }
.on-tinta input[type=range] { accent-color: var(--celeste-2); }

/* Planes */
#planes .mosaico { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.plan { gap: 16px; padding: 30px 26px; }
.plan__etapa { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--azul); }
.plan h3 { font-size: 28px; letter-spacing: -0.02em; }
.plan__precio { font-size: 18px; font-weight: 700; padding: 12px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.plan ul { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--azul-claro) var(--palomita) center / 100% no-repeat; }
.plan .btn { text-align: center; }
.plan--fuerte { background: var(--tinta); background-image: linear-gradient(160deg, var(--tinta), var(--tinta-2)); color: var(--blanco); border-color: transparent; transform: translateY(-8px); box-shadow: 0 24px 48px rgba(14, 20, 36, .25); }
.plan--fuerte p, .plan--fuerte li { color: rgba(255, 255, 255, .82); }
.plan--fuerte .plan__etapa { color: var(--ambar); }
.plan--fuerte .plan__precio { border-color: rgba(255, 255, 255, .18); }
.plan--fuerte li::before { background-color: rgba(255, 255, 255, .14); background-image: var(--palomita-ambar); }

/* Equipo (aparece cuando se llena en config.js) */
.persona { align-items: flex-start; }
.persona__sigla { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 22px; }
.persona .enlace { padding: 4px 0; }

/* Preguntas frecuentes */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; box-shadow: var(--sombra); transition: box-shadow .2s ease, border-color .2s ease; }
.faq__item[open] { border-color: #C9D5EE; box-shadow: var(--sombra-alta); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--azul-claro); color: var(--azul); font-size: 20px; font-weight: 700; line-height: 1; transition: transform .25s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline-offset: -3px; border-radius: 14px; }
.faq__item h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.faq__item p { padding: 0 22px 20px; color: var(--gris); font-size: 15.5px; }


/* 11. Página de IA ==================================================== */
.portada { display: flex; flex-wrap: wrap; background: var(--blanco); }
.portada__principal { flex: 1.3 1 480px; padding: clamp(40px, 5vw, 72px) var(--lado); display: flex; flex-direction: column; justify-content: center; gap: 40px; min-height: min(620px, 80vh); }
.portada__lado { flex: 1 1 420px; padding: clamp(32px, 4vw, 56px) clamp(20px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.portada__lado.on-azul { background: radial-gradient(500px 300px at 100% 0%, rgba(91, 140, 255, .45), transparent 60%), linear-gradient(160deg, var(--tinta), var(--tinta-2)); }
.portada__lado--visual { align-items: center; justify-content: center; }   /* portada de Ollin: tarjeta de precio */
.portada__lado h2 { font-size: 28px; line-height: 1; }
.portada__lado > p { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 9px 16px; font-size: 14.5px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: var(--blanco); transition: background .15s ease, color .15s ease; }
.chip:hover { background: rgba(255, 255, 255, .12); }
.chip[aria-pressed="true"] { background: var(--blanco); color: var(--tinta); border-color: var(--blanco); }

/* Familias de soluciones */
.franjas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; padding: 0 var(--lado) var(--bloque); }
.franjas > * { padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; border-radius: var(--radio); background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); box-shadow: var(--sombra); position: relative; overflow: hidden; }
.franjas > *::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tono, var(--azul)); }
.franjas > .on-rojo { --tono: var(--rojo); }
.franjas > .on-azul { --tono: var(--azul); }
.franjas > .on-ambar { --tono: var(--ambar); }
.franjas > .on-tinta { --tono: var(--tinta); }
.franjas .puntos { color: var(--tono); }
.franjas h3 { font-size: 22px; letter-spacing: -0.02em; }
.franjas .reglas, .franjas .reglas > * { border-color: var(--linea); }
.franjas .reglas > * { color: var(--gris); }
.franjas .reglas strong { color: var(--tinta); }

/* Cuatro preguntas antes de automatizar */
.pregunta { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; }
.pregunta .puntos { margin-top: 8px; }
.pregunta h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.pregunta p { color: var(--gris); }


/* 12. Contacto y formulario =========================================== */
.contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 64px; align-items: start; padding-block: var(--bloque); }
.contacto .h-cierre { font-size: clamp(32px, 3.6vw, 48px); }
.pasos-contacto { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pasos-contacto li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .85); }
.pasos-contacto .puntos { flex: 0 0 52px; color: var(--celeste); }
.canales { display: flex; flex-wrap: wrap; gap: 12px; }
.canal { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; color: var(--blanco); text-decoration: none; background: rgba(255, 255, 255, .06); transition: background .15s ease, transform .15s ease; }
.canal svg { width: 28px; height: 28px; flex: none; }
.canal strong, .canal small { display: block; line-height: 1.3; }
.canal small { font-size: 13px; opacity: .8; }
.canal:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.canal--wa { background: #25D366; border-color: transparent; color: #05301A; }
.canal--wa:hover { background: #2BE071; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; background: var(--blanco); color: var(--tinta); border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--gris-3); }
.form :is(input, textarea, select) { font: inherit; font-size: 16px; font-weight: 500; padding: 12px 14px; border: 1px solid #D3DAE6; border-radius: 12px; background: var(--blanco); color: var(--tinta); width: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.form :is(input, textarea, select):focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(31, 79, 191, .15); }
.form textarea { min-height: 110px; resize: vertical; }
.form .ancho { grid-column: 1 / -1; }
.form .nota { color: var(--gris); }
.form [aria-invalid="true"] { border-color: var(--rojo); background: #FFF5F7; }
.form .error { color: var(--rojo); font-size: 13px; font-weight: 700; }
.form button[disabled] { opacity: .55; cursor: not-allowed; }
.form.resalta { animation: resalta 1.2s ease; }
.form__titulo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.form__titulo h3 { font-size: 22px; letter-spacing: -0.02em; }
.form__titulo .small { color: var(--gris); }
.form__pie { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form__gracias { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0; animation: brota .45s cubic-bezier(.2, .8, .2, 1); }
.form__gracias h3 { font-size: clamp(26px, 3vw, 34px); }
.form__gracias .puntos { color: var(--azul); }
/* Casilla del aviso de privacidad */
.form .consentimiento { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.form .consentimiento input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--azul); padding: 0; }
.consentimiento a { font-weight: 700; color: var(--azul); }
/* Campo trampa para bots: invisible para personas */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Botón flotante de WhatsApp (aparece si se configura el número) */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; background: #25D366; color: #05301A; border-radius: 999px; box-shadow: 0 12px 30px rgba(37, 211, 102, .4); font-weight: 700; text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, box-shadow .15s ease; }
.wa svg { width: 30px; height: 30px; animation: saluda 5s ease-in-out 2s infinite; transform-origin: 50% 80%; }
.wa:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(37, 211, 102, .5); }
.wa--fuera { transform: translateY(160%); opacity: 0; pointer-events: none; }

/* Página de error 404 */
.error404 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }

/* Aviso de privacidad */
.legal { max-width: 46em; display: flex; flex-direction: column; gap: 18px; }
.legal h2 { font-size: 26px; line-height: 1.2; margin-top: 18px; }
.legal ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.legal .dato { font-weight: 700; }


/* 13. Pie de página =================================================== */
.pie2 { padding: clamp(56px, 6vw, 80px) var(--lado) 0; font-size: 15px; background: var(--tinta); color: rgba(255, 255, 255, .85); }
.pie2__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; padding-bottom: 48px; }
.pie2__marca { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 26em; }
.pie2__marca .logo__sub { color: rgba(255, 255, 255, .6); }
.pie2__marca .logo__marca { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.pie2 h2 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blanco); margin-bottom: 14px; }
.pie2 nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pie2 nav a, .pie2__contacto a { text-decoration: none; padding: 5px 0; color: rgba(255, 255, 255, .72); transition: color .15s ease; }
.pie2 nav a:hover, .pie2__contacto a:hover { color: var(--blanco); }
.pie2__contacto { display: flex; flex-direction: column; gap: 6px; color: rgba(255, 255, 255, .72); }
.pie2__contacto li { padding: 4px 0; }
.pie2__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); font-size: 14px; }
.pie2__base a { font-weight: 600; color: rgba(255, 255, 255, .8); }
.pie2__base a:hover { color: var(--blanco); }
@media (max-width: 900px) { .pie2__cols { grid-template-columns: 1fr 1fr; } .pie2__marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pie2__cols { grid-template-columns: 1fr; } }


/* 14. Celular ========================================================= */
@media (max-width: 700px) {
  .sec { padding-block: 56px; }
  .pila--lg { gap: 32px; }

  /* Servicios, etapas, equipos y planes: tarjetas que se deslizan de lado */
  .rubros, #metodo .mosaico, #planes .mosaico, #equipos .mosaico {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(var(--lado) * -1); padding: 6px var(--lado) 18px; scrollbar-width: none;
  }
  :is(.rubros, #metodo .mosaico, #planes .mosaico, #equipos .mosaico)::-webkit-scrollbar { display: none; }
  :is(#metodo .mosaico, #planes .mosaico, #equipos .mosaico) > * { flex: 0 0 84%; scroll-snap-align: center; }
  .rubros > * { flex: 0 0 78%; scroll-snap-align: center; }
  .rubro__cuerpo h3 { font-size: 18px; }
  .rubro--abierto .rubro__cuerpo { padding: 22px; }
  .plan--fuerte { transform: none; }
  .desliza { display: block; text-align: right; margin-top: -24px; font-size: 14px; font-weight: 700; color: var(--azul); }

  /* Rumbos y cifras en 2 × 2 */
  .rumbos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rumbo { padding: 18px 16px; gap: 10px; }
  .rumbo svg { width: 44px; height: 44px; }
  .rumbo h2 { font-size: 19px; margin-bottom: 2px; }
  .rumbo p { font-size: 13.5px; line-height: 1.45; }
  .cifras { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .cifras > div { padding-left: 12px; }
  .cifra { font-size: 28px; }
  .cifras .small { font-size: 13.5px; }

  /* Pestañas en una sola fila que se desliza */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; min-width: 140px; }
}
@media (max-width: 560px) {
  .causas > li { grid-template-columns: 1fr; }
  .causa { justify-self: start; }
  .etiquetas--cinta { flex-wrap: wrap; }
  .cinta { flex-basis: 100%; }
  .wa { right: 14px; bottom: 14px; padding: 12px; }
  .wa__txt { display: none; }
}


/* 15. Movimiento, accesibilidad e impresión =========================== */

/* Aparición al bajar (la activa el JavaScript; sin él, todo se ve desde el inicio) */
.js .revela { opacity: 0; }
.js .revela.visto { opacity: 1; animation: sube .7s cubic-bezier(.2, .75, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.js .revela.fijo { animation: none; opacity: 1; }
.entra { animation: entra .35s cubic-bezier(.2, .8, .2, 1); }

/* Entrada de la diapositiva activa del carrusel */
.js .slide.activa .slide__texto > * { animation: sube .75s cubic-bezier(.2, .75, .2, 1) backwards; }
.js .slide.activa .slide__texto > :nth-child(2) { animation-delay: .08s; }
.js .slide.activa .slide__texto > :nth-child(3) { animation-delay: .16s; }
.js .slide.activa .slide__texto > :nth-child(4) { animation-delay: .24s; }
.js .slide.activa .slide__visual { animation: llega .95s cubic-bezier(.2, .8, .2, 1) .1s backwards; }
.js .slide.activa :is(.maqueta__razones li, .burbuja, .revision li, .web__grid > div, .parada) { animation: brota .45s cubic-bezier(.2, .9, .3, 1.2) backwards; }
.js .slide.activa :is(.maqueta__razones li, .burbuja, .revision li, .web__grid > div, .parada):nth-child(1) { animation-delay: .55s; }
.js .slide.activa :is(.maqueta__razones li, .burbuja, .revision li, .web__grid > div, .parada):nth-child(2) { animation-delay: .8s; }
.js .slide.activa :is(.maqueta__razones li, .burbuja, .revision li, .web__grid > div, .parada):nth-child(3) { animation-delay: 1.05s; }
.js .slide.activa :is(.maqueta__razones li, .burbuja, .revision li, .web__grid > div, .parada):nth-child(4) { animation-delay: 1.3s; }
.js .slide.activa :is(.maqueta__razones li, .burbuja, .revision li, .web__grid > div, .parada):nth-child(5) { animation-delay: 1.55s; }
.js .slide.activa .barras i { animation: crece .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.js .slide.activa .barras i:nth-child(2) { animation-delay: .08s; }
.js .slide.activa .barras i:nth-child(3) { animation-delay: .16s; }
.js .slide.activa .barras i:nth-child(4) { animation-delay: .24s; }
.js .slide.activa .barras i:nth-child(5) { animation-delay: .32s; }
.js .slide.activa .barras i:nth-child(6) { animation-delay: .4s; }
.js .slide.activa .escudo { animation: brota .7s cubic-bezier(.2, .9, .3, 1.4) .3s backwards; }

/* Título de la página de IA palabra por palabra */
.pal { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .08em; margin-top: -.08em; }
.pal > span, .pal > em { display: inline-block; animation: palabra .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.portada__principal .lead, .portada__principal > .fila { animation: sube .7s cubic-bezier(.2, .75, .2, 1) .4s backwards; }
.portada__principal > .fila { animation-delay: .55s; }
.portada__lado { animation: entra .8s cubic-bezier(.2, .8, .2, 1) .2s backwards; }

@keyframes sube { from { opacity: 0; transform: translateY(28px); } }
@keyframes llega { from { opacity: 0; transform: translateX(50px) scale(.96); } }
@keyframes palabra { from { transform: translateY(110%); } }
@keyframes brota { from { opacity: 0; transform: scale(.85); } }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }
@keyframes crece { from { transform: scaleY(0); } }
@keyframes llena { from { width: 0; } to { width: 100%; } }
@keyframes corre { to { transform: translateX(calc(-50% - 5px)); } }
@keyframes late { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes resalta { 0%, 60% { box-shadow: 0 0 0 6px rgba(232, 163, 23, .7), 0 30px 60px rgba(0, 0, 0, .3); } 100% { box-shadow: 0 30px 60px rgba(0, 0, 0, .3); } }
@keyframes saluda { 0%, 12%, 100% { transform: rotate(0); } 3% { transform: rotate(-14deg); } 6% { transform: rotate(12deg); } 9% { transform: rotate(-8deg); } }

/* Transición suave al cambiar de página */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both sale-pagina; }
::view-transition-new(root) { animation: .4s cubic-bezier(.2, .75, .2, 1) both entra-pagina; }
@keyframes sale-pagina { to { opacity: 0; transform: translateY(-12px); } }
@keyframes entra-pagina { from { opacity: 0; transform: translateY(20px); } }

/* Quien pidió "reducir movimiento" en su sistema ve todo quieto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .revela { opacity: 1; }
  .etiquetas--cinta { flex-wrap: wrap; }
  .cinta { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .cinta__pista { flex-wrap: wrap; width: auto; }
  .cinta__pista [aria-hidden="true"] { display: none; }
}

@media print {
  .cab { position: static; }
  .aviso, .nav-btn, .form, .wa, .progreso, .carrusel__control, .carrusel__red { display: none; }
}
