/* =========================================================
   KODIQ — styles.css
   Estilo: "Glassmorphism moderno" con la paleta de marca.
   Mobile-first: la base es móvil; se amplía con min-width.

   ÍNDICE
   01 Variables        09 Problemas        17 Contacto + form
   02 Base / reset     10 Servicios bento  18 Footer
   03 Utilidades       11 Planes           19 WhatsApp flotante
   04 Botones          12 Proceso          20 Reveal (scroll)
   05 Splash           13 Trabajos         21 Páginas legales
   06 Header / menú    14 Por qué          22 Tablet  (≥ 720px)
   07 Hero             15 Testimonios      23 Escritorio (≥ 1080px)
   08 Marquee          16 FAQ              24 Movimiento reducido
   ========================================================= */

/* ---------- 01 Variables de marca ---------- */
:root {
  --navy: #262A5E;
  --navy-deep: #161944;
  --white: #FFFFFF;
  --gray: #F5F6FA;
  --line: rgba(38, 42, 94, .10);
  --ink: #262A5E;
  --ink-soft: #545A7E;          /* contraste AA sobre blanco y gris */
  --accent: #3D7BFF;            /* azul eléctrico (detalles) */
  --accent-btn: #2B66F0;        /* botones: AA con texto blanco */
  --accent-btn-2: #1F55D6;
  --cyan: #00C2FF;
  --wa: #25D366;

  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .75);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(38, 42, 94, .04), 0 12px 32px -8px rgba(38, 42, 94, .12);
  --shadow-lg: 0 2px 4px rgba(38, 42, 94, .04), 0 30px 60px -12px rgba(38, 42, 94, .25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 72px;
  --gutter: 16px;
}

/* ---------- 02 Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- 03 Utilidades ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* Tarjetas "cristal": blanco translúcido sin backdrop-filter.
   (El desenfoque real en decenas de tarjetas es lo que más ralentiza el scroll;
   solo lo mantenemos en el menú.) */
.glass {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* Texto con degradado de marca */
.grad {
  background: linear-gradient(100deg, var(--accent-btn) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad--light { background-image: linear-gradient(100deg, #7FB0FF 0%, var(--cyan) 100%); }

/* Etiqueta pequeña con pista de circuito */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-btn); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; flex: none; width: 34px; height: 8px;
  background:
    linear-gradient(currentColor, currentColor) left center / 26px 2px no-repeat,
    radial-gradient(circle, currentColor 3px, transparent 3.5px) right center / 8px 8px no-repeat;
}
.eyebrow--light { color: var(--cyan); }

/* Spotlight: brillo que sigue al ratón dentro de las tarjetas */
[data-spotlight] { position: relative; isolation: isolate; overflow: hidden; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, -40%), rgba(61, 123, 255, .14), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
[data-spotlight]:hover::after { opacity: 1; }

/* Manchas de color para que el cristal "respire" */
.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; background: radial-gradient(circle, var(--c) 0%, transparent 68%); }
.blob--1 { --c: rgba(61, 123, 255, .26); width: 560px; height: 560px; top: 2%; left: -240px; animation: drift 22s ease-in-out infinite; }
.blob--2 { --c: rgba(0, 194, 255, .24); width: 500px; height: 500px; bottom: 0; right: -220px; animation: drift 26s ease-in-out infinite reverse; }
.blob--3 { --c: rgba(61, 123, 255, .22); width: 600px; height: 600px; top: 14%; right: -260px; animation: drift 24s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- 04 Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s, border-color .3s, box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { min-height: 56px; padding: 15px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; white-space: normal; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-btn) 0%, #2F7BF7 100%);
  box-shadow: 0 10px 24px -8px rgba(43, 102, 240, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { box-shadow: 0 16px 34px -10px rgba(43, 102, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .25); background: linear-gradient(135deg, var(--accent-btn-2) 0%, var(--accent-btn) 100%); }
.btn__arrow { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--glass { color: var(--navy); background: rgba(255, 255, 255, .75); border-color: rgba(38, 42, 94, .14); }
.btn--glass:hover { background: #fff; border-color: rgba(38, 42, 94, .3); }

.btn--outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--dark { color: #fff; background: var(--navy); }
.btn--dark:hover { background: var(--navy-deep); }

.btn--whatsapp { color: #06301A; background: var(--wa); box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .7); }
.btn--whatsapp svg { fill: currentColor; width: 22px; height: 22px; }
.btn--whatsapp:hover { background: #3BE07A; }

/* Envoltorio que crea JS para el efecto magnético */
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

.link-arrow { font-family: var(--font-head); font-weight: 600; color: var(--accent-btn); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- 05 Splash (entrada con el logo) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: var(--white);
  transition: opacity .6s var(--ease-out), visibility .6s;
  animation: splashSafety .01s 4.5s forwards;   /* red de seguridad si falla JS */
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__logo { width: 84px; height: 84px; overflow: visible; }
.splash__k {
  fill: var(--navy); fill-opacity: 0; stroke: var(--navy); stroke-width: .8;
  stroke-dasharray: 220; stroke-dashoffset: 220;
  animation: drawK 1s var(--ease-out) forwards, fillK .4s .75s forwards;
}
.splash__trace { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawK .8s .5s var(--ease-out) forwards; }
@keyframes drawK { to { stroke-dashoffset: 0; } }
@keyframes fillK { to { fill-opacity: 1; } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
html:not(.js) .splash { display: none; }

/* Barra de progreso de lectura */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- 06 Header: cápsula de cristal flotante ---------- */
.header { position: fixed; top: 10px; left: 0; right: 0; z-index: 150; padding: 0 10px; pointer-events: none; }
.header__bar {
  pointer-events: auto;
  max-width: 1200px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .94);   /* sin backdrop-filter: era caro en cada scroll */
  border: 1px solid rgba(38, 42, 94, .06);
  box-shadow: 0 8px 30px -12px rgba(38, 42, 94, .22);
  transition: box-shadow .4s;
}
.header.is-scrolled .header__bar { box-shadow: 0 12px 34px -12px rgba(38, 42, 94, .3); }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); letter-spacing: -.02em; }
.logo--light .logo__text { color: #fff; }
.logo--light img { background: #fff; border-radius: 10px; padding: 3px; }

.nav-toggle { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer; display: grid; place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Menú en móvil: panel de cristal desplegable */
.nav {
  position: absolute; top: calc(100% + 10px); left: 10px; right: 10px;
  pointer-events: auto;
  padding: 10px 14px 18px; border-radius: 24px;
  background: rgba(255, 255, 255, .96); border: 1px solid #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility .35s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__list { position: relative; }
.nav__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 6px; text-decoration: none; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
}
.nav__link::after { content: "→"; color: var(--accent); }
.nav__link.is-active { color: var(--accent-btn); }
.nav__indicator { display: none; }
.nav__cta { width: 100%; margin-top: 14px; }

/* ---------- 07 Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 52px) 0 72px;
  background: linear-gradient(180deg, #F7F9FF 0%, #FFFFFF 100%);
}
/* Degradado "mesh" animado */
/* Rendimiento: sin filter: blur. Los bordes suaves salen del propio degradado
   radial y solo se anima transform (lo mueve la tarjeta gráfica, sin repintar). */
.hero__mesh { position: absolute; inset: -10%; z-index: -2; pointer-events: none; }
.hero__mesh i { position: absolute; border-radius: 50%; display: block; will-change: transform; }
.hero__mesh i:nth-child(1) { width: 60vmax; height: 60vmax; background: radial-gradient(circle, rgba(61, 123, 255, .30) 0%, rgba(61, 123, 255, 0) 65%); top: -16%; right: -18%; animation: mesh1 26s ease-in-out infinite; }
.hero__mesh i:nth-child(2) { width: 48vmax; height: 48vmax; background: radial-gradient(circle, rgba(0, 194, 255, .26) 0%, rgba(0, 194, 255, 0) 65%); bottom: -22%; left: -16%; animation: mesh2 30s ease-in-out infinite; }
.hero__mesh i:nth-child(3) { width: 36vmax; height: 36vmax; background: radial-gradient(circle, rgba(38, 42, 94, .12) 0%, rgba(38, 42, 94, 0) 65%); top: 28%; left: 32%; animation: mesh3 34s ease-in-out infinite; }
@keyframes mesh1 { 50% { transform: translate(-12%, 14%) scale(1.15); } }
@keyframes mesh2 { 50% { transform: translate(16%, -10%) scale(1.2); } }
@keyframes mesh3 { 50% { transform: translate(-20%, -16%) scale(.85); } }

/* Retícula fina tecnológica que se difumina hacia abajo */
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(38, 42, 94, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 42, 94, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

/* Circuito animado */
.hero__circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__circuit path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace path { stroke: rgba(38, 42, 94, .14); stroke-width: 1.6; stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawTrace 2.4s 1s var(--ease-out) forwards; }
/* Rendimiento: los circuitos se dibujan una sola vez al cargar y luego quedan quietos
   (los pulsos en bucle repintaban todo el hero en cada fotograma). */
.trace-node circle { fill: #EAF1FF; stroke: var(--accent); stroke-width: 2; opacity: 0; animation: nodeIn .5s 2.6s forwards; }
@keyframes drawTrace { to { stroke-dashoffset: 0; } }
@keyframes nodeIn { to { opacity: 1; } }

.hero__inner { display: grid; gap: 56px; align-items: center; }
.hero__content { position: relative; z-index: 2; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px; margin-bottom: 22px;
  font-size: .88rem; font-weight: 500; color: var(--navy);
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(38, 42, 94, .1);
  box-shadow: 0 4px 14px -6px rgba(38, 42, 94, .15);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }

.hero__title { margin-bottom: 22px; }
.hero__title em { font-style: normal; background: linear-gradient(100deg, var(--accent-btn), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Animación palabra a palabra (la crea JS). Si JS falla, el texto se ve igual. */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; transform: translateY(105%); animation: wordUp 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + var(--d, .9s)); }
.hero__title em.is-split { background: none; color: inherit; }
.hero__title em .w > span { background: linear-gradient(100deg, var(--accent-btn), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes wordUp { to { transform: none; } }
/* Defensa: un elemento con reveal + split nunca debe quedar invisible */
.reveal[data-split] { opacity: 1 !important; transform: none !important; }

.hero__subtitle { font-size: 1.15rem; color: var(--ink-soft); max-width: 33em; margin-bottom: 30px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .95rem; color: var(--ink-soft); font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--accent-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Escenario con capas (parallax con el ratón en escritorio) */
.stage { position: relative; width: 100%; max-width: 580px; margin: 0 auto; aspect-ratio: 1 / .78; }
.stage__layer { position: absolute; inset: 0; transition: transform .9s var(--ease-soft); will-change: transform; }

.laptop { position: absolute; left: 0; top: 6%; width: 86%; filter: drop-shadow(0 40px 50px rgba(38, 42, 94, .28)); }
.laptop__screen { background: var(--navy); border-radius: 16px 16px 0 0; padding: 9px; }
.laptop__base { height: 14px; margin: 0 -7%; border-radius: 2px 2px 16px 16px; background: linear-gradient(#E3E6F1, #BFC4D8); position: relative; }
.laptop__base::after { content: ""; position: absolute; top: 0; left: 42%; right: 42%; height: 5px; border-radius: 0 0 6px 6px; background: #A9AFC7; }

.phone {
  position: absolute; right: 2%; bottom: 2%; width: 29%;
  background: var(--navy); border-radius: 24px; padding: 7px;
  box-shadow: 0 30px 50px -10px rgba(38, 42, 94, .4);
  animation: bob 7s ease-in-out infinite;
  will-change: transform;
}
.phone__screen { border-radius: 18px; overflow: hidden; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.mock { background: #fff; border-radius: 6px; padding: 9px; aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mock span, .mock b { display: block; border-radius: 4px; background: #E6E9F3; }
.mock__bar { display: flex; align-items: center; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid #EEF0F6; }
.mock__bar i { width: 6px; height: 6px; border-radius: 50%; background: #E0E3EE; }
.mock__bar i:first-child { background: #FF8A80; } .mock__bar i:nth-child(2) { background: #FFD27A; } .mock__bar i:nth-child(3) { background: #7EE2A8; }
.mock__url { flex: 1; max-width: 46%; margin: 0 auto; height: 10px !important; font-size: 0; background: #F2F4F9 !important; border-radius: 99px !important; }
.mock__nav { display: flex; align-items: center; gap: 6px; }
.mock__nav span { height: 5px; width: 9%; }
.mock__logo { width: 12px; height: 12px; border-radius: 4px !important; background: var(--navy) !important; margin-right: auto; }
.mock__btn { width: 15%; height: 10px; border-radius: 99px !important; background: var(--accent) !important; }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; flex: 1; align-items: center; }
.mock__lines { display: flex; flex-direction: column; gap: 6px; }
.mock__lines .l1 { height: 9px; width: 95%; background: var(--navy); }
.mock__lines .l2 { height: 9px; width: 70%; background: var(--navy); }
.mock__lines .l3 { height: 5px; width: 85%; }
.mock__cta { width: 44%; height: 12px; border-radius: 99px !important; margin-top: 4px; background: linear-gradient(90deg, var(--accent), var(--cyan)) !important; }
.mock__img { border-radius: 8px; height: 100%; min-height: 52px; background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%); position: relative; overflow: hidden; }
.mock__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4s 2s ease-in-out infinite; }
@keyframes shine { 40%, 100% { transform: translateX(100%); } }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mock__cards span { height: 24px; background: #F3F5FA; border: 1px solid #E8EBF3; }
.mock--phone { aspect-ratio: 9 / 18.5; padding: 8px; gap: 8px; border-radius: 0; }
.mock--phone .mock__img { flex: 0 0 34%; }
.mock--phone .mock__cards { grid-template-columns: 1fr; }
.mock--phone .mock__cards span { height: 20px; }
.mock__burger { width: 12px; height: 8px; background: var(--navy) !important; }

/* Avisos flotantes de cristal */
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, .9); border: 1px solid #fff;
  box-shadow: 0 18px 40px -14px rgba(38, 42, 94, .35);
  font-size: .72rem; line-height: 1.3; color: var(--ink-soft);
  animation: bob 8s ease-in-out infinite;
  will-change: transform;
}
.chip strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .78rem; }
.chip small { display: block; font-size: .7rem; }
.chip__icon { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.chip__icon svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip__icon--wa { background: var(--wa); }
.chip__icon--ok { background: var(--navy); }
.chip--a { top: 0; right: 0; animation-delay: -2s; }
.chip--b { left: -2%; bottom: 14%; animation-delay: -5s; }
.chip--c { right: 18%; top: 44%; animation-delay: -1s; display: none; }

.hero__scroll { display: none; }

/* ---------- 08 Marquee de zonas ---------- */
.marquee { position: relative; overflow: hidden; padding: 18px 0; background: var(--navy); color: #fff; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; white-space: nowrap;
}
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones genéricas ---------- */
.section { position: relative; padding: 88px 0; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section--gray { background: var(--gray); }
.section--tint { background: linear-gradient(180deg, var(--gray) 0%, #EEF2FD 100%); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section__head--split { text-align: left; max-width: none; display: flex; flex-direction: column; gap: 14px; }
.section__head--split h2 { margin-bottom: 0; }
.section__lead { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section__cta { text-align: center; margin-top: 44px; }

/* ---------- 09 Problemas ---------- */
.problems { display: grid; gap: 18px; }
.problem { padding: 30px 26px; background: #fff; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.problem:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.problem__num {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1;
  margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1.5px rgba(38, 42, 94, .25);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.problem:hover .problem__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.problem__pain { color: var(--ink-soft); }
.problem__pain::before { content: "✕"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; font-size: .7rem; background: #FFE9EC; color: #C62F3C; vertical-align: 2px; }
.problem__fix { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm); background: linear-gradient(135deg, rgba(61, 123, 255, .08), rgba(0, 194, 255, .08)); border: 1px solid rgba(61, 123, 255, .14); }
.problem__fix p { margin: 0; }
.problem__tag { display: block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-btn); margin-bottom: 4px; }

/* ---------- 10 Servicios (bento) ---------- */
.bento { display: grid; gap: 16px; }
.service { padding: 28px 24px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(61, 123, 255, .35); }
.service p { color: var(--ink-soft); margin: 0; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; flex: none;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(38, 42, 94, .25);
  transition: background .4s var(--ease-out), transform .5s var(--ease-out);
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.service:hover .service__icon { background: linear-gradient(135deg, var(--accent-btn), var(--cyan)); transform: rotate(-6deg) scale(1.05); }
.service:hover .service__icon svg { stroke: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 5px 12px; border-radius: 99px; font-size: .82rem; font-weight: 500; background: rgba(38, 42, 94, .06); color: var(--navy); }
.service--band { display: flex; flex-direction: column; gap: 4px; background: var(--navy) !important; border-color: var(--navy) !important; }
.service--band h3 { color: #fff; }
.service--band p { color: #C8CCEB; margin-bottom: 18px; }
.service--band .service__icon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); }
.service--band .service__icon svg { stroke: var(--cyan); }
.service--band .btn--dark { background: #fff; color: var(--navy); align-self: flex-start; }
.service--band .btn--dark:hover { background: var(--cyan); }
.service--band::after { background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, -40%), rgba(0, 194, 255, .2), transparent 60%) !important; }

/* ---------- 11 Planes ---------- */
.plans { display: grid; gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 26px 28px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.plan.glass { background: #fff; border-color: var(--line); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan__name { font-size: 1.35rem; margin-bottom: 6px; }
.plan__desc { color: var(--ink-soft); font-size: .98rem; }
.plan__price { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; letter-spacing: -.03em; color: var(--navy); margin: 2px 0 22px; }
.plan__list { flex: 1; margin-bottom: 28px; }
.plan__list li { position: relative; padding: 9px 0 9px 32px; font-size: .98rem; border-bottom: 1px dashed var(--line); }
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 21px; height: 21px; border-radius: 50%;
  background: rgba(61, 123, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B66F0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* Plan destacado: azul marino con borde de luz animado */
.plan--featured {
  color: #fff; border-radius: var(--r);
  background:
    linear-gradient(160deg, #2E3370 0%, var(--navy) 50%, var(--navy-deep) 100%) padding-box,
    linear-gradient(135deg, var(--cyan), var(--accent) 45%, rgba(255,255,255,.15) 70%, var(--cyan)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 60px -20px rgba(38, 42, 94, .6);
}
.plan--featured .plan__name, .plan--featured .plan__price { color: #fff; }
.plan--featured .plan__desc { color: #C8CCEB; }
.plan--featured .plan__list li { border-color: rgba(255, 255, 255, .12); }
.plan--featured .plan__list li::before {
  background-color: rgba(0, 194, 255, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C2FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.plan__badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 99px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--navy-deep);
  background: linear-gradient(90deg, var(--cyan), #7FDBFF);
  box-shadow: 0 8px 20px -6px rgba(0, 194, 255, .7);
}

/* ---------- 12 Proceso (timeline) ---------- */
.timeline { position: relative; display: grid; gap: 34px; padding-left: 0; }
.timeline__line { position: absolute; left: 25px; top: 12px; bottom: 12px; width: 2px; background: rgba(38, 42, 94, .1); border-radius: 2px; }
.timeline__line span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), var(--cyan)); transform-origin: top; transform: scaleY(var(--tp, 0)); border-radius: 2px; transition: transform .2s linear; }
html:not(.js) .timeline__line span { transform: none; }
.step { position: relative; padding-left: 78px; }
.step__dot {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  background: #fff; color: var(--navy); border: 2px solid rgba(38, 42, 94, .14);
  box-shadow: 0 0 0 6px var(--gray);
  transition: background .5s var(--ease-out), color .5s, border-color .5s, transform .5s var(--ease-out);
}
.step.is-lit .step__dot { background: linear-gradient(135deg, var(--accent-btn), var(--cyan)); color: #fff; border-color: transparent; transform: scale(1.06); }
html:not(.js) .step__dot { background: var(--navy); color: #fff; }
.step h3 { padding-top: 12px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- 13 Trabajos ---------- */
.projects { display: grid; gap: 26px; }
.project { text-decoration: none; }
.project__frame {
  border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.project:hover .project__frame { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.project__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F6F7FB; border-bottom: 1px solid var(--line); }
.project__bar i { width: 9px; height: 9px; border-radius: 50%; background: #DADDE8; }
.project__bar span { margin-left: 10px; flex: 1; padding: 2px 12px; border-radius: 99px; background: #fff; font-size: .75rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.project:hover .project__media img { transform: scale(1.06); }
.project__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 194, 255, .45), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(61, 123, 255, .5), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 36px),
    var(--navy);
  transition: transform .9s var(--ease-out);
}
.project:hover .project__placeholder { transform: scale(1.06); }
.project__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 4px 0; }
.project__body h3 { margin: 0; font-size: 1.1rem; }
.project__tag { font-size: .82rem; font-weight: 600; color: var(--accent-btn); background: rgba(61, 123, 255, .1); padding: 4px 12px; border-radius: 99px; }

/* ---------- 14 Por qué Kodiq ---------- */
.why { display: grid; gap: 40px; }
.why__head .section__lead { margin-bottom: 26px; }
.why__grid { display: grid; gap: 16px; }
.feature { padding: 26px 24px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.feature__num { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--accent-btn); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- 15 Testimonios ---------- */
.testimonials {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px;
  margin: 0 calc(var(--gutter) * -1); scrollbar-width: none;
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: center; margin: 0; padding: 30px 26px; display: flex; flex-direction: column; background: #fff; border-color: var(--line); }
.testimonial__quote { width: 40px; height: 40px; fill: var(--accent); opacity: .25; margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 24px; flex: 1; font-size: 1.08rem; color: var(--navy); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--ink-soft); }
.testimonial figcaption strong { display: block; color: var(--navy); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-btn), var(--cyan)); }

/* ---------- 16 FAQ ---------- */
.faq-wrap { display: grid; gap: 32px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .4s, box-shadow .4s; }
.faq__item[open] { border-color: rgba(61, 123, 255, .4); box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 64px 20px 22px; min-height: 60px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262A5E' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .5s var(--ease-out), background-color .4s;
}
.faq__item[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--accent-btn);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}
.faq__answer { padding: 0 22px 20px; color: var(--ink-soft); }
.faq__answer p { margin: 0; }
.faq__item[open] .faq__answer { animation: faqIn .5s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 17 Contacto ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate; padding: 96px 0;
  color: #fff; background: var(--navy-deep);
}
.contact__glow {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(500px circle at 10% 100%, rgba(0, 194, 255, .25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
/* Foco de luz que sigue al ratón: se mueve con transform (sin repintar la sección) */
.contact__glow::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 1200px; height: 1200px; margin: -600px 0 0 -600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 123, 255, .5) 0%, rgba(61, 123, 255, 0) 50%);
  transform: translate3d(var(--gx, 80vw), var(--gy, 160px), 0);
  transition: transform .7s var(--ease-soft);
  will-change: transform;
}
.contact__circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.contact__circuit path { fill: none; stroke: rgba(0, 194, 255, .28); stroke-width: 1.5; stroke-dasharray: 6 10; }
.contact__circuit circle { fill: var(--cyan); }
.contact__inner { display: grid; gap: 44px; }
.contact h2 { color: #fff; }
.contact__lead { color: #CDD1EE; font-size: 1.12rem; margin-bottom: 30px; max-width: 30em; }
.contact__data { margin-top: 34px; display: grid; gap: 10px; }
.contact__data li {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s, border-color .3s;
}
.contact__data li:hover { background: rgba(255, 255, 255, .1); border-color: rgba(0, 194, 255, .4); }
.contact__data svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__data a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact__note { margin-left: auto; font-size: .78rem; color: #9EA4D6; }

/* Formulario con etiquetas flotantes */
.form {
  position: relative; color: var(--ink); background: #fff; border-radius: var(--r-lg);
  padding: 30px 20px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45);
}
.form__title { font-size: 1.4rem; margin-bottom: 2px; }
.form__sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 22px; }
.form__row { display: grid; gap: 0 14px; }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; min-height: 58px; padding: 24px 16px 8px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--gray); border: 1.5px solid transparent; border-radius: 14px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 120px; resize: vertical; padding-top: 28px; }
.field label {
  position: absolute; left: 16px; top: 18px; pointer-events: none;
  font-size: 1rem; color: var(--ink-soft);
  transform-origin: left top; transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 123, 255, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--accent-btn); font-weight: 600; }
.field .is-invalid, .field input.is-invalid { border-color: #D93644; background: #FFF6F7; }

.needs { border: 0; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.needs legend { font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.needs label { cursor: pointer; }
.needs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.needs span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 99px;
  font-size: .9rem; font-weight: 500; background: var(--gray); border: 1.5px solid transparent;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.needs label:hover span { border-color: rgba(61, 123, 255, .35); }
.needs input:checked + span { background: var(--navy); color: #fff; transform: scale(1.03); }
.needs input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 20px; cursor: pointer; }
.form__check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent-btn); }
.form__check a { color: var(--accent-btn); }
.form__check.is-invalid span { color: #C62F3C; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 14px 0 0; min-height: 1.4em; text-align: center; font-size: .95rem; font-weight: 500; }
.form__status.is-error { color: #C62F3C; }
.form__status.is-ok { color: #128C4B; }

/* ---------- 18 Footer ---------- */
.footer { position: relative; overflow: hidden; background: #0F1235; color: #BFC3E4; padding: 64px 0 26px; font-size: .95rem; }
.footer a { color: #BFC3E4; text-decoration: none; transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__inner { display: grid; gap: 36px; }
.footer__brand p { margin: 16px 0 0; max-width: 30em; }
.footer__title { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.footer__col li { padding: 4px 0; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.footer__social a:hover { background: var(--accent-btn); border-color: var(--accent-btn); transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__word {
  margin: 40px 0 0; font-family: var(--font-head); font-weight: 800; line-height: .8; letter-spacing: -.05em;
  font-size: clamp(5rem, 26vw, 19rem); text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(61, 123, 255, .35), transparent 80%); -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer__bottom { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 12px; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- 19 WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 140;
  height: 60px; min-width: 60px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  background: var(--wa); color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .65);
  transition: transform .4s var(--ease-out), gap .4s var(--ease-out);
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; flex: none; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-head); font-weight: 600; color: #06301A; transition: max-width .5s var(--ease-out); }
.wa-float:hover { transform: translateY(-3px); gap: 8px; }
.wa-float:hover .wa-float__label { max-width: 120px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ring 2.8s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }

/* Rendimiento: las animaciones en bucle se pausan cuando su sección
   no está en pantalla (JS añade .is-offscreen). */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- 20 Aparición al hacer scroll (solo si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js .reveal.is-revealed { opacity: 1; transform: none; }

/* ---------- 21 Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + 60px) 0 80px; background: linear-gradient(180deg, #F7F9FF, #fff 300px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal__back { display: inline-block; margin-bottom: 24px; color: var(--accent-btn); font-weight: 600; text-decoration: none; }
.header--simple .header__bar { padding-right: 8px; }

/* ---------- 21b Páginas interiores (servicios, trabajos, blog, contacto) ---------- */
.page-hero { padding: calc(var(--header-h) + 64px) 0 24px; text-align: center; background: linear-gradient(180deg, #F7F9FF, #fff); }
.page-hero h1 { font-size: clamp(2.2rem, 6.5vw, 3.6rem); }
.page-hero .section__lead { max-width: 640px; margin: 0 auto; }
.page-hero + .section { padding-top: 48px; }
main > .contact:first-child { padding-top: calc(var(--header-h) + 72px); }

/* ---------- 21c Blog ---------- */
.posts { display: grid; gap: 22px; margin-bottom: 24px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; text-decoration: none; color: inherit; }
.post-card h2 { font-size: 1.3rem; margin: 0; }
.post-card p { margin: 0; color: var(--ink-soft); flex: 1; }
.post-card__meta, .post__meta { font-size: .85rem; color: var(--ink-soft); font-weight: 600; margin: 0; }
.post { max-width: 760px; margin: 0 auto; padding: 56px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.post + .post { margin-top: 40px; }
.posts + .post { margin-top: 40px; }
.post h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-top: .3em; }
.post h3 { font-size: 1.2rem; margin-top: 1.6em; }
.post p, .post li { color: var(--ink-soft); }
.post ul { list-style: disc; padding-left: 1.3em; }
.post a { color: var(--accent-btn); font-weight: 600; }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   22 TABLET (≥ 720px)
   ========================================================= */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .chip { font-size: .8rem; padding: 10px 16px 10px 10px; }
  .chip strong { font-size: .88rem; }
  .chip--c { display: flex; }
  .problems { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .service--wide { grid-column: span 2; display: flex; gap: 24px; align-items: flex-start; }
  .service--band { grid-column: span 2; }
  .service--span2 { grid-column: span 2; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 6px 0 0; margin: 0; }
  .form { padding: 40px 36px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .section__head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =========================================================
   23 ESCRITORIO (≥ 1080px)
   ========================================================= */
@media (min-width: 1080px) {
  :root { --header-h: 84px; }
  .section { padding: 128px 0; }
  .section__head { margin-bottom: 64px; }

  /* Menú horizontal con indicador deslizante */
  .header { top: 16px; }
  .header__bar { height: 64px; padding: 0 8px 0 20px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 18px;
    padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__list { display: flex; gap: 2px; }
  .nav__link { padding: 9px 15px; border: 0; font-size: .95rem; font-weight: 500; border-radius: 99px; position: relative; z-index: 1; transition: color .3s; }
  .nav__link::after { content: none; }
  .nav__link.is-active { color: var(--navy); }
  .nav__indicator {
    display: block; position: absolute; z-index: 0; top: 0; left: 0; height: 100%;
    width: var(--iw, 0); transform: translateX(var(--ix, 0)); opacity: var(--io, 0);
    border-radius: 99px; background: rgba(38, 42, 94, .07);
    transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
  }
  .nav__cta { width: auto; margin: 0; min-height: 48px; padding: 10px 22px; }

  .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 96px; }
  .hero__inner { grid-template-columns: 1.02fr 1fr; gap: 40px; }
  .hero__title { font-size: clamp(3.4rem, 5.2vw, 5rem); }
  .chip--b { left: -8%; }
  .hero__scroll {
    display: block; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    width: 26px; height: 42px; border-radius: 99px; border: 2px solid rgba(38, 42, 94, .25);
  }
  .hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite; }
  @keyframes scrollDot { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

  .marquee li { font-size: 1.25rem; }

  .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .service { padding: 34px 30px; }
  .service--wide { grid-column: span 2; }
  .service--band { grid-column: span 3; flex-direction: row; align-items: center; gap: 24px; }
  .service--band .service__icon { margin: 0; }
  .service--band > div { flex: 1; }
  .service--band p { margin: 0; }
  .service--band .btn--dark { align-self: center; }

  .plans { grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: center; }
  .plan { padding: 40px 32px 32px; }
  .plan--featured { padding: 52px 34px 40px; }

  .timeline { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .timeline__line { left: 26px; right: 26px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .timeline__line span { background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: left; transform: scaleX(var(--tp, 0)); }
  .step { padding: 80px 12px 0 0; }
  .step h3 { padding-top: 0; }

  .projects { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
  .projects .project:nth-child(3n+2) { transform: translateY(40px); }  /* ritmo escalonado */
  .projects .project.reveal:nth-child(3n+2) { transform: translateY(68px); }
  .projects .project.reveal.is-revealed:nth-child(3n+2) { transform: translateY(40px); }
  #trabajos .container { padding-bottom: 40px; }

  .why { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .why__grid { gap: 20px; }
  .why__grid .feature:nth-child(even) { margin-top: 36px; margin-bottom: -36px; }

  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-wrap__head { position: sticky; top: calc(var(--header-h) + 40px); }

  .contact { padding: 140px 0; }
  .contact__inner { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }

  .wa-float { right: 28px; bottom: 28px; height: 62px; min-width: 62px; }
}

/* =========================================================
   24 MOVIMIENTO REDUCIDO
   Solo se desactiva lo verdaderamente intrusivo (bucles rápidos).
   Las micro-interacciones se mantienen a propósito (Windows trae
   esta opción activada por defecto en muchos equipos).
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}
