/* ===== Kit de marca NEXO — tema oscuro (variables) ===== */
:root {
  /* Superficies */
  --bg-page: #05070D;
  --bg-surface: #10182B;
  --bg-card: #141C30;
  --border: rgba(148, 163, 184, 0.18);

  /* Texto */
  --text-primary: #F2F5FB;
  --text-secondary: #9AA7C0;
  --text-inverse: #FFFFFF;

  /* Acentos de marca */
  --color-navy: #1B3A66;
  --color-blue: #3FC4F5;
  --color-terracotta: #FF8B5C;
  --color-terracotta-dark: #E2703A;
  --color-lime: #D7F24E;
  --color-lime-dim: #A8BC3A;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;

  --font-display: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  --max-width: 1100px;
}

/* ===== Reset base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--text-primary); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; position: relative; }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--color-navy); color: var(--text-inverse);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 20px; top: 20px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-lime); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hairline, .reveal-words .word-inner { opacity: 1 !important; transform: none !important; transition: none !important; }
  .escenario-paso { animation: none !important; }
  .escenario-link::after { animation: none !important; opacity: 0 !important; }
  /* NEXO Lab: imágenes visibles y quietas, sin trayectorias, bucles ni máscaras. */
  .lab-grid.is-ready .lab-visual img,
  .lab-grid.is-ready .lab-item h3,
  .lab-grid.is-ready .lab-item p {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .lab-item, .lab-visual img { transition: none !important; }
  .lab-item:hover { transform: none !important; }
  .lab-item:hover .lab-visual img { scale: 1 !important; }
  .lab-hit, .lab-core, .lab-rise, .lab-tap, .lab-beam,
  .lab-route-line, .lab-route-dot {
    animation: none !important; opacity: 0 !important;
  }
  .faq-item summary::after { transition: none !important; }
  .btn-arrow::after { transition: none !important; }
  .btn-arrow:hover::after { transform: none !important; }
  .hiw-frame { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hiw-status { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hiw-scan, .hiw-dot, .hiw-hot, .hiw-col, .hiw-pulse, .hiw-sweep::before {
    animation: none !important; opacity: 0 !important;
  }
  .hiw-mod, .hiw-link, .hiw-card, .hiw-sweep {
    animation: none !important; transform: none !important;
  }
  .hiw-mod { opacity: .9 !important; }
  .hiw-link { stroke-dashoffset: 0 !important; opacity: .85 !important; }
  .hiw-mod--opt { opacity: .5 !important; }
  .hiw-link--opt { opacity: .45 !important; }
  .hiw-card { opacity: .38 !important; }
  .hiw-sweep { opacity: 1 !important; }
  .hiw-rail-fill { transition: none !important; }
  /* Los logos se ven completos y quietos: sin barridos, sin recortes, sin desenfoque,
     y las cuatro tarjetas al 100 % (sin foco que cambie con el scroll). */
  .brand-card .brand-tile,
  .brand-card .brand-tile img {
    animation: none !important; opacity: 1 !important;
    transform: none !important; filter: none !important;
    clip-path: none !important; transition: none !important;
  }
  .brand-edge, .brand-sweep, .brand-line { animation: none !important; opacity: 0 !important; }
  .portfolio-grid.is-ready.has-focus .brand-card,
  .portfolio-grid.is-ready .brand-card.is-focus {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .brand-glow { transition: none !important; }
  .brand-card:hover .brand-tile img,
  .brand-card:focus-within .brand-tile img,
  .brand-card.is-focus .brand-tile img { scale: 1 !important; }
}

/* ===== Grano sutil (calidad "invisible") ===== */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* ===== Hairlines animadas entre secciones clave ===== */
.hairline {
  display: block; height: 1px; width: min(420px, 60%);
  margin: 0 auto 40px; transform: scaleX(0); transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--color-terracotta), transparent);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.hairline.is-visible { transform: scaleX(1); }

/* ===== Reveal palabra por palabra (solo hero, uso restringido) ===== */
.reveal-words .word-inner {
  display: inline-block; opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-words.is-visible .word-inner { opacity: 1; transform: none; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 999px; padding: 12px 22px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-primary { background: var(--color-lime); color: var(--bg-page); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--color-lime-dim); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--color-blue); }
.btn-arrow { transition: transform .15s ease, box-shadow .25s ease, border-color .25s ease; }
.btn-arrow::after { content: "→"; font-size: .95em; transition: transform .25s ease; }
.btn-arrow:hover { border-color: var(--color-lime); box-shadow: 0 0 22px rgba(215, 242, 78, .18); }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-whatsapp { background: var(--color-whatsapp); color: var(--text-inverse); box-shadow: var(--shadow); }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }
.btn .icon { width: 20px; height: 20px; fill: currentColor; }

/* ===== Header / Navegación ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; position: relative; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 36px; width: auto; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  width: 38px; height: 38px; background: none; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; padding: 0 8px;
}
.nav-toggle-bar { width: 100%; height: 2px; background: var(--text-primary); }

.site-nav {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 8px 20px 16px;
}
.site-nav[data-state="open"] { display: flex; }
.site-nav a {
  padding: 10px 4px; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: var(--text-primary); border-bottom: 1px solid var(--border);
}
.site-nav a:last-of-type { border-bottom: none; }
.nav-whatsapp { margin-top: 10px; text-align: center; border-bottom: none !important; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: 20px;
    position: static; background: none; border: none; box-shadow: none; padding: 0;
  }
  .site-nav a { padding: 0; border-bottom: none; font-size: .88rem; }
  .nav-whatsapp { margin-top: 0; padding: 9px 16px; font-size: .85rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 480px; display: flex; align-items: center;
  padding: 64px 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(5,7,13,.55) 0%, rgba(5,7,13,.72) 55%, rgba(5,7,13,.92) 100%),
              url("../assets/hero-network.webp") center / cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  font-family: var(--font-body); font-size: .85rem; font-weight: 700;
  color: var(--color-terracotta); margin: 0 0 10px;
}
.eyebrow-light { color: var(--color-blue); }
.hero-copy h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 auto; max-width: 24ch; }
.hero-tags { margin: 16px auto 0; max-width: 40ch; color: var(--text-secondary); font-size: .88rem; }
.hero-actions {
  display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: center; gap: 10px; margin-top: 28px;
}
.hero-actions .btn-lg { padding: 12px 18px; font-size: .92rem; }

@media (min-width: 420px) {
  .hero-actions { gap: 12px; }
  .hero-actions .btn-lg { padding: 14px 24px; font-size: 1rem; }
}
@media (min-width: 700px) {
  .hero { min-height: 560px; }
  .hero-copy h1 { font-size: 2.5rem; max-width: 34ch; }
  .hero-tags { font-size: 1rem; }
  .hero-actions .btn-lg { padding: 16px 30px; font-size: 1.05rem; }
}

/* ===== Secciones genéricas ===== */
.section { padding: 56px 0; scroll-margin-top: 70px; position: relative; }
.hero { scroll-margin-top: 70px; }
.section h2 { font-size: 1.6rem; max-width: 28ch; }
@media (min-width: 700px) { .section h2 { font-size: 2.1rem; } }

/* ===== CTA repetida ===== */
.cta-repeat { margin-top: 32px; text-align: center; }

/* ===== Resultados / Portfolio ===== */
.portfolio { background: var(--bg-surface); }
.portfolio-grid { margin-top: 28px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.brand-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1),
              border-color .45s ease, box-shadow .45s ease;
}
/* Cada marca aporta su propio acento; el resto de la tarjeta se mantiene sobrio. */
.brand--casaviva { --accent: 150, 214, 184; }
.brand--mercado  { --accent: 0, 190, 200; }
.brand--cuyana   { --accent: 216, 144, 48; }
.brand--zaldivar { --accent: 0, 200, 150; }

/* Sin texto debajo, el tile es la tarjeta entera: un muro de logos, sin doble marco. */
.brand-tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 120px; padding: 26px 28px; overflow: hidden;
  background: linear-gradient(158deg, #1B2440 0%, #0E1526 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* Los logos mantienen su proporción original: contain, nunca cover.
   El hover usa `scale` (propiedad independiente) para no chocar con el `transform`
   que las animaciones de entrada dejan fijado con animation-fill-mode. */
.brand-tile img {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: scale .45s cubic-bezier(.16,1,.3,1);
}
/* Halo del color de la marca: apagado en reposo, respira al tomar el foco. */
.brand-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(120% 90% at 50% 115%, rgba(var(--accent), .22), transparent 70%);
}

/* -- Tarjeta con el foco: gana presencia; las demás ceden sin desaparecer -- */
.portfolio-grid.is-ready.has-focus .brand-card { opacity: .62; }
.portfolio-grid.is-ready .brand-card.is-focus {
  opacity: 1; transform: translateY(-4px);
  border-color: rgba(var(--accent), .45);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38), 0 0 0 1px rgba(var(--accent), .12);
}
.brand-card.is-focus .brand-glow { opacity: 1; }
.brand-card.is-focus .brand-tile img { scale: 1.02; }

/* Casa Viva: aparece enfocándose, con un acento cálido que recorre el borde una vez */
.is-ready .brand--casaviva .brand-tile img { opacity: 0; transform: scale(.94); filter: blur(6px); }
.is-ready .brand--casaviva.is-in .brand-tile img {
  animation: brand-focus .8s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes brand-focus {
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.brand-edge {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.brand-edge::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 0turn, transparent 0 60%, rgba(255, 139, 92, .95) 76%, transparent 90%);
}
.is-ready .brand--casaviva.is-in .brand-edge { animation: brand-edge-on 1.9s .45s ease-out forwards; }
.is-ready .brand--casaviva.is-in .brand-edge::before { animation: brand-edge-spin 1.5s .45s ease-in-out forwards; }
@keyframes brand-edge-on {
  0% { opacity: 0; } 12% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes brand-edge-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Mercado 23 y 28: el logo se revela en horizontal y el tile da un pulso al terminar */
.is-ready .brand--mercado .brand-tile img { clip-path: inset(0 100% 0 0); }
.is-ready .brand--mercado.is-in .brand-tile img { animation: brand-wipe .75s .1s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes brand-wipe { to { clip-path: inset(0 0 0 0); } }
.is-ready .brand--mercado.is-in .brand-tile { animation: brand-pulse .7s .85s ease-out 1; }
@keyframes brand-pulse {
  0% { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 0 rgba(0, 190, 200, 0); }
  35% { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 3px rgba(0, 190, 200, .45); }
  100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 0 rgba(0, 190, 200, 0); }
}

/* Cuyana: entra lateralmente y recibe un destello de luz, una sola vez */
.is-ready .brand--cuyana .brand-tile img { opacity: 0; transform: translateX(-12px); }
.is-ready .brand--cuyana.is-in .brand-tile img { animation: brand-slide .7s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes brand-slide { to { opacity: 1; transform: none; } }
.brand-sweep {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%);
  transform: translateX(-100%);
}
.is-ready .brand--cuyana.is-in .brand-sweep { animation: brand-sweep-run 1.25s .5s ease-out forwards; }
@keyframes brand-sweep-run {
  0% { opacity: 0; transform: translateX(-100%); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* Zaldívar: una línea recorre el tile y va descubriendo el logotipo completo */
.is-ready .brand--zaldivar .brand-tile img { opacity: 0; transform: translateX(-10px); clip-path: inset(0 100% 0 0); }
.is-ready .brand--zaldivar.is-in .brand-tile img { animation: brand-build .85s .15s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes brand-build {
  0% { opacity: 0; transform: translateX(-10px); clip-path: inset(0 100% 0 0); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.brand-line { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; }
.brand-line::before {
  content: ""; position: absolute; top: 12%; bottom: 12%; left: 0; width: 2px;
  background: linear-gradient(180deg, transparent, #00C896 30%, #00C896 70%, transparent);
  box-shadow: 0 0 12px rgba(0, 200, 150, .6);
}
.is-ready .brand--zaldivar.is-in .brand-line { animation: brand-line-run 1s .15s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes brand-line-run {
  0% { opacity: 0; transform: translateX(0); }
  12% { opacity: .9; }
  80% { opacity: .9; }
  100% { opacity: 0; transform: translateX(100%); }
}

@media (min-width: 620px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .brand-tile { height: 140px; }
  .brand-tile { height: 112px; }
}
/* En desktop las cuatro caben en una fila, así que el scroll las enfocaría todas a la
   vez: ahí manda el puntero y en reposo se ven las cuatro al 100 %. */
@media (hover: hover) and (min-width: 1000px) {
  .portfolio-grid.is-ready.has-focus .brand-card,
  .portfolio-grid.is-ready .brand-card.is-focus {
    opacity: 1; transform: none; border-color: var(--border); box-shadow: none;
  }
  .brand-card.is-focus .brand-glow { opacity: 0; }
  .brand-card.is-focus .brand-tile img { scale: 1; }

  .portfolio-grid.is-ready:hover .brand-card,
  .portfolio-grid.is-ready:focus-within .brand-card { opacity: .62; }
  .portfolio-grid.is-ready:hover .brand-card:hover,
  .portfolio-grid.is-ready:focus-within .brand-card:focus-within {
    opacity: 1; transform: translateY(-4px);
    border-color: rgba(var(--accent), .45);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .38), 0 0 0 1px rgba(var(--accent), .12);
  }
  .brand-card:hover .brand-glow,
  .brand-card:focus-within .brand-glow { opacity: 1; }
  .brand-card:hover .brand-tile img,
  .brand-card:focus-within .brand-tile img { scale: 1.02; }
}

/* ===== Cómo funciona (experiencia narrativa) ===== */
.hiw { background: var(--bg-surface); }
.hiw-lead { margin-top: 4px; color: var(--text-secondary); max-width: 52ch; }
.hiw-track { position: relative; margin-top: 8px; }

/* -- Rail de progreso (solo desktop) -- */
.hiw-rail { display: none; }

/* -- Paso -- */
.hiw-step { padding: 40px 0; }
.hiw-copy { max-width: 46ch; }
.hiw-num {
  display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: var(--text-secondary); opacity: .55;
  transition: color .3s ease, opacity .3s ease, text-shadow .3s ease;
}
.hiw-step.is-active .hiw-num {
  color: var(--color-lime); opacity: 1; text-shadow: 0 0 18px rgba(215, 242, 78, .35);
}
.hiw-copy h3 { font-size: 1.15rem; margin: 6px 0; }
.hiw-copy > p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

.hiw-status {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px !important; font-size: .84rem; font-weight: 700;
  color: var(--color-lime) !important;
  transition: opacity .5s ease, transform .5s ease;
}
.is-ready .hiw-status { opacity: 0; transform: translateY(6px); }
.is-ready .hiw-step.is-seen .hiw-status { opacity: 1; transform: none; transition-delay: 1.8s; }
.hiw-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-lime);
  box-shadow: 0 0 10px rgba(215, 242, 78, .7);
}

/* -- Visual -- */
.hiw-visual { margin-top: 20px; }
.hiw-frame {
  position: relative; margin: 0; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-page);
  transition: opacity .5s ease, transform .5s ease, border-color .5s ease;
}
.is-ready .hiw-frame { opacity: .45; transform: scale(.985) translateZ(0); }
.is-ready .hiw-step.is-active .hiw-frame {
  opacity: 1; transform: none; border-color: rgba(63, 196, 245, .35);
}
.hiw-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hiw-layer, .hiw-wire { position: absolute; inset: 0; pointer-events: none; }
.hiw-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 10px; font-size: .68rem; text-align: center;
  color: var(--text-secondary); background: rgba(5, 7, 13, .72);
}

/* -- 01: barrido de diagnóstico -- */
.hiw-hot {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 10px; opacity: 0;
  box-shadow: 0 0 0 1.5px rgba(215, 242, 78, .75), 0 0 26px rgba(215, 242, 78, .3) inset;
}
.hiw-step.is-active .hiw-hot { animation: hiw-hot 5s var(--d) ease-in-out infinite; }
@keyframes hiw-hot {
  0%, 100% { opacity: 0; }
  3% { opacity: 1; }
  10% { opacity: .85; }
  18% { opacity: 0; }
}
.hiw-scan { position: absolute; inset: 0; opacity: 0; }
.hiw-scan::before {
  content: ""; position: absolute; left: -13%; top: -17.3%;
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 196, 245, .34) 0%, rgba(63, 196, 245, .12) 55%, transparent 72%);
  box-shadow: 0 0 0 1px rgba(63, 196, 245, .35) inset;
}
.hiw-step.is-active .hiw-scan { animation: hiw-scan 5s linear infinite; }
@keyframes hiw-scan {
  0% { transform: translate(15.9%, 19.4%); opacity: 0; }
  4% { transform: translate(15.9%, 19.4%); opacity: 1; }
  21% { transform: translate(15.9%, 19.4%); opacity: 1; }
  25% { transform: translate(13.9%, 53.6%); }
  41% { transform: translate(13.9%, 53.6%); }
  45% { transform: translate(84.2%, 18.6%); }
  61% { transform: translate(84.2%, 18.6%); }
  65% { transform: translate(87.9%, 54.3%); }
  81% { transform: translate(87.9%, 54.3%); }
  85% { transform: translate(67.1%, 83%); opacity: 1; }
  94% { transform: translate(67.1%, 83%); opacity: 0; }
  100% { transform: translate(15.9%, 19.4%); opacity: 0; }
}

/* -- 02: arquitectura modular -- */
.hiw-mod {
  fill: none; stroke: var(--color-lime); stroke-width: 2;
  opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.94);
}
.hiw-mod--opt { stroke: var(--color-blue); stroke-dasharray: 6 5; }
.hiw-step.is-seen .hiw-mod { animation: hiw-mod-in .5s var(--d) cubic-bezier(.16,1,.3,1) forwards; }
@keyframes hiw-mod-in {
  to { opacity: .9; transform: none; }
}
.hiw-step.is-seen .hiw-mod--opt { animation-name: hiw-mod-in-opt; }
@keyframes hiw-mod-in-opt {
  to { opacity: .5; transform: none; }
}
.hiw-link {
  fill: none; stroke: var(--color-lime); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 160; stroke-dashoffset: 160; opacity: .85;
}
.hiw-link--opt { stroke: var(--color-blue); stroke-width: 2; opacity: .45; stroke-dasharray: 6 5; }
.hiw-step.is-seen .hiw-link { animation: hiw-draw .55s var(--d) ease-out forwards; }
@keyframes hiw-draw { to { stroke-dashoffset: 0; } }
.hiw-step.is-seen .hiw-link--opt { animation: none; }
.hiw-pulse {
  fill: none; stroke: var(--color-lime); stroke-width: 2; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.hiw-step.is-seen .hiw-pulse { animation: hiw-pulse 1.1s 1.9s ease-out 1; }
@keyframes hiw-pulse {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* -- 03: flujo operando -- */
.hiw-col {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 12px; opacity: 0;
  box-shadow: 0 0 0 2px rgba(215, 242, 78, .8), 0 0 30px rgba(215, 242, 78, .28) inset;
}
.hiw-step.is-active .hiw-col { animation: hiw-col 7.2s var(--d) ease-in-out infinite; }
@keyframes hiw-col {
  0%, 100% { opacity: 0; }
  6% { opacity: 1; }
  12% { opacity: 1; }
  20% { opacity: 0; }
}
.hiw-dot { position: absolute; inset: 0; opacity: 0; }
.hiw-dot::before {
  content: ""; position: absolute; left: -1.1%; top: -1.5%;
  width: 2.2%; aspect-ratio: 1; border-radius: 50%;
  background: var(--color-lime); box-shadow: 0 0 14px 4px rgba(215, 242, 78, .55);
}
.hiw-step.is-active .hiw-dot { animation: hiw-dot 7.2s ease-in-out infinite; }
@keyframes hiw-dot {
  0% { transform: translate(9.6%, 52.2%); opacity: 0; }
  3% { opacity: 1; }
  12.5% { transform: translate(9.6%, 52.2%); }
  20.8% { transform: translate(25.6%, 52.2%); }
  29.2% { transform: translate(25.6%, 52.2%); }
  37.5% { transform: translate(41.6%, 52.2%); }
  45.8% { transform: translate(41.6%, 52.2%); }
  54.2% { transform: translate(58.1%, 52.2%); }
  62.5% { transform: translate(58.1%, 52.2%); }
  70.8% { transform: translate(74.9%, 52.2%); }
  79.2% { transform: translate(74.9%, 52.2%); }
  87.5% { transform: translate(90.9%, 52.2%); opacity: 1; }
  94% { transform: translate(90.9%, 52.2%); opacity: 0; }
  100% { transform: translate(90.9%, 52.2%); opacity: 0; }
}

/* -- 04: resultados -- */
.hiw-card {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 12px; opacity: 0; transform: translateY(8px);
  box-shadow: 0 0 0 1.5px rgba(215, 242, 78, .6), 0 0 26px rgba(215, 242, 78, .18) inset;
}
.hiw-step.is-seen .hiw-card { animation: hiw-card-in .7s var(--d) cubic-bezier(.16,1,.3,1) forwards; }
@keyframes hiw-card-in {
  0% { opacity: 0; transform: translateY(8px); }
  55% { opacity: 1; transform: none; }
  100% { opacity: .38; transform: none; }
}
.hiw-sweep {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 999px; opacity: 0; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(215, 242, 78, .5);
}
.hiw-sweep::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(215, 242, 78, .32), transparent);
  transform: translateX(-100%);
}
.hiw-step.is-seen .hiw-sweep { animation: hiw-sweep-on .5s var(--d) ease forwards; }
.hiw-step.is-seen .hiw-sweep::before { animation: hiw-sweep-move 1.4s calc(var(--d) + .2s) ease-out forwards; }
@keyframes hiw-sweep-on { to { opacity: 1; } }
@keyframes hiw-sweep-move { to { transform: translateX(100%); } }

@media (min-width: 980px) {
  .hiw-track { padding-left: 40px; }
  .hiw-rail {
    display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  }
  .hiw-rail-inner { position: sticky; top: 45vh; height: 150px; }
  .hiw-rail-line {
    position: absolute; left: 5px; top: 5px; height: 140px; width: 2px;
    background: var(--border); border-radius: 2px; overflow: hidden;
  }
  .hiw-rail-fill {
    display: block; width: 100%; height: var(--hiw-progress, 0%);
    background: var(--color-lime); transition: height .5s cubic-bezier(.16,1,.3,1);
  }
  .hiw-rail-dot {
    position: absolute; left: 0; width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg-surface); border: 2px solid var(--border);
    transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease;
  }
  .hiw-rail-dot span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .hiw-rail-dot:nth-of-type(1) { top: 0; }
  .hiw-rail-dot:nth-of-type(2) { top: 46px; }
  .hiw-rail-dot:nth-of-type(3) { top: 92px; }
  .hiw-rail-dot:nth-of-type(4) { top: 138px; }
  .hiw-rail-dot:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }
  .hiw-rail-dot.is-on {
    border-color: var(--color-lime); background: var(--color-lime);
    box-shadow: 0 0 12px rgba(215, 242, 78, .5); transform: scale(1.15);
  }
  .hiw-step {
    display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 48px; align-items: start; min-height: 88vh; padding: 56px 0;
  }
  .hiw-copy { position: sticky; top: 30vh; padding-top: 8px; }
  .hiw-num { font-size: 2.2rem; }
  .hiw-copy h3 { font-size: 1.5rem; }
  .hiw-copy > p { font-size: 1rem; }
  .hiw-visual { margin-top: 0; position: sticky; top: 104px; }
  .hiw-caption { font-size: .74rem; }
}

/* ===== Escenarios ===== */
.escenarios { background: var(--bg-page); padding-top: 36px; }
.escenarios-title { margin-top: 0; }
.escenario { margin-top: 40px; }
.escenario:first-of-type { margin-top: 30px; }
.escenario h3 { font-size: 1.15rem; margin-bottom: 16px; font-weight: 500; font-style: italic; color: var(--text-secondary); }
.escenario-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0; row-gap: 10px; }
.escenario-paso {
  font-size: .85rem; font-weight: 600; color: var(--text-primary);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px;
  animation: escenario-highlight 4.8s ease-in-out infinite;
}
.escenario-paso-final { background: var(--color-lime); color: var(--bg-page); border-color: var(--color-lime); animation: none; }
.escenario-link {
  position: relative; width: 26px; height: 2px; margin: 0 6px;
  background: var(--border); flex-shrink: 0;
}
.escenario-link::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--color-terracotta); opacity: 0;
  animation: escenario-pulse 4.8s ease-in-out infinite;
}
.escenario-resultado { margin: 16px 0 0; font-size: .88rem; color: var(--color-lime); }

@keyframes escenario-highlight {
  0%, 25%, 100% { background: var(--bg-card); color: var(--text-primary); border-color: var(--border); transform: scale(1); }
  10% { background: var(--color-lime); color: var(--bg-page); border-color: var(--color-lime); transform: scale(1.08); }
}
@keyframes escenario-pulse {
  0%, 100% { opacity: 0; transform: translateX(0); }
  4% { opacity: 1; transform: translateX(0); }
  22% { opacity: 0; transform: translateX(20px); }
}

@media (min-width: 700px) {
  .escenario-link { width: 40px; }
  .escenario-link::after { animation-name: escenario-pulse-lg; }
}
@keyframes escenario-pulse-lg {
  0%, 100% { opacity: 0; transform: translateX(0); }
  4% { opacity: 1; transform: translateX(0); }
  22% { opacity: 0; transform: translateX(34px); }
}

/* ===== NEXO Lab =====
   Las seis comparten el mismo lenguaje: ciclo de 10 s, misma curva, misma
   intensidad de glow y el mismo tipo de capas. Lo que cambia es qué cuenta
   cada una, no cómo se mueve. */
.nexo-lab { background: var(--bg-surface); }
.lab-grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 620px) { .lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .lab-grid { grid-template-columns: repeat(3, 1fr); } }

.lab-item {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ciclo: 10s;
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s ease, box-shadow .35s ease;
}

/* -- Visual: 16/9 exacto, que es la proporción nativa de las seis -- */
.lab-visual {
  position: relative; margin: 0; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--bg-page);
}
.lab-visual img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: scale .5s var(--ease);
}
.lab-fx, .lab-route { position: absolute; inset: 0; pointer-events: none; }

/* -- Entrada, una sola vez por tarjeta -- */
.lab-grid.is-ready .lab-visual img { opacity: 0; transform: translateY(24px) scale(.985); }
.lab-grid.is-ready .lab-item.is-in .lab-visual img { animation: lab-in .75s var(--ease) forwards; }
@keyframes lab-in { to { opacity: 1; transform: none; } }

.lab-grid.is-ready .lab-item h3,
.lab-grid.is-ready .lab-item p { opacity: 0; transform: translateY(12px); }
.lab-grid.is-ready .lab-item.is-in h3 { animation: lab-in .7s .12s var(--ease) forwards; }
.lab-grid.is-ready .lab-item.is-in p { animation: lab-in .7s .2s var(--ease) forwards; }

/* -- Capas de secuencia: solo corren mientras la tarjeta está a la vista -- */
.lab-hit, .lab-core, .lab-rise, .lab-tap, .lab-beam { opacity: 0; }

.lab-hit {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 10px;
  box-shadow: 0 0 0 1.5px rgba(63, 196, 245, .75), inset 0 0 26px rgba(63, 196, 245, .22);
}
.lab-hit--amber { box-shadow: 0 0 0 1.5px rgba(255, 178, 97, .8), inset 0 0 26px rgba(255, 139, 92, .22); }
.lab-hit--ok { box-shadow: 0 0 0 1.5px rgba(45, 210, 126, .85), inset 0 0 26px rgba(45, 210, 126, .2); }
.lab-hit--round { border-radius: 999px; }
.lab-item.is-live .lab-hit { animation: lab-hit var(--ciclo) var(--d) ease-in-out infinite; }
@keyframes lab-hit {
  0%, 100% { opacity: 0; }
  2% { opacity: 1; }
  7% { opacity: .85; }
  13% { opacity: 0; }
}

/* Núcleo: respira muy poco (máx. 2 %) y da un pulso cuando le toca el turno */
.lab-core {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px rgba(63, 196, 245, .7), 0 0 34px rgba(63, 196, 245, .3);
}
.lab-item.is-live .lab-core { animation: lab-core var(--ciclo) var(--d) ease-in-out infinite; }
@keyframes lab-core {
  0%, 100% { opacity: 0; transform: scale(1); }
  2% { opacity: 1; transform: scale(1.02); }
  9% { opacity: .8; transform: scale(1); }
  16% { opacity: 0; transform: scale(1); }
}

/* Gráfico que se revela de abajo hacia arriba */
.lab-rise {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 8px; transform-origin: bottom;
  background: linear-gradient(0deg, rgba(63, 196, 245, .2), transparent 75%);
  box-shadow: inset 0 -1.5px 0 rgba(63, 196, 245, .6);
}
.lab-item.is-live .lab-rise { animation: lab-rise var(--ciclo) var(--d) ease-out infinite; }
@keyframes lab-rise {
  0%, 100% { opacity: 0; transform: scaleY(.2); }
  3% { opacity: 1; }
  10% { opacity: 1; transform: scaleY(1); }
  18% { opacity: 0; transform: scaleY(1); }
}

/* Pulso corto sobre un botón, una sola vez por ciclo */
.lab-tap {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(63, 196, 245, .8);
}
.lab-item.is-live .lab-tap { animation: lab-tap var(--ciclo) var(--d) ease-in-out infinite; }
@keyframes lab-tap {
  0%, 100% { opacity: 0; transform: scale(1); }
  2% { opacity: 1; transform: scale(1); }
  5% { transform: scale(1.03); }
  8% { transform: scale(1); }
  12% { opacity: 0; }
}

/* Punto que recorre la escena; el translate % va contra el tamaño del marco */
.lab-beam { position: absolute; inset: 0; }
.lab-beam::before {
  content: ""; position: absolute; left: -.7%; top: -1.25%;
  width: 1.4%; aspect-ratio: 1; border-radius: 50%;
  background: #3FC4F5; box-shadow: 0 0 16px 5px rgba(63, 196, 245, .55);
}
.lab-beam--amber::before { background: #FFB661; box-shadow: 0 0 16px 5px rgba(255, 139, 92, .5); }
.lab-item.is-live .lab-beam { animation: lab-beam var(--ciclo) var(--d) cubic-bezier(.22, 1, .36, 1) infinite; }
@keyframes lab-beam {
  0% { transform: translate(var(--bx1), var(--by)); opacity: 0; }
  3% { opacity: 1; }
  36% { transform: translate(var(--bx2), var(--by)); opacity: 1; }
  43% { transform: translate(var(--bx2), var(--by)); opacity: 0; }
  100% { transform: translate(var(--bx1), var(--by)); opacity: 0; }
}

/* Ruta de mensajería: se dibuja sola y un punto la recorre */
.lab-route-line {
  fill: none; stroke: #3FC4F5; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 200; stroke-dashoffset: 200; opacity: 0;
}
.lab-item.is-live .lab-route-line { animation: lab-route var(--ciclo) 3s ease-out infinite; }
@keyframes lab-route {
  0%, 100% { stroke-dashoffset: 200; opacity: 0; }
  3% { opacity: .9; }
  19% { stroke-dashoffset: 0; opacity: .9; }
  26% { stroke-dashoffset: 0; opacity: 0; }
}
/* El punto recorre la misma curva vía offset-path, así queda bajo control de CSS
   (se detiene fuera de pantalla y con reduced-motion) en vez de animación SMIL. */
.lab-route-dot {
  fill: #3FC4F5; opacity: 0;
  offset-path: path("M823 398 C 858 432, 884 378, 913 398 C 944 420, 962 452, 999 436");
  offset-rotate: 0deg; offset-distance: 0%;
}
.lab-item.is-live .lab-route-dot { animation: lab-dot var(--ciclo) 3.1s ease-in-out infinite; }
@keyframes lab-dot {
  0% { opacity: 0; offset-distance: 0%; }
  4% { opacity: 1; offset-distance: 0%; }
  19% { opacity: 1; offset-distance: 100%; }
  24% { opacity: 0; offset-distance: 100%; }
  100% { opacity: 0; offset-distance: 100%; }
}

.lab-body { padding: 18px 20px; }
.lab-item h3 { color: var(--text-primary); font-size: 1.05rem; margin: 0 0 6px; }
.lab-item p { color: var(--text-secondary); font-size: .92rem; margin: 0; }

/* Hover solo con puntero fino, y contenido: 4 px y 1.5 % de zoom como máximo */
@media (hover: hover) and (pointer: fine) {
  .lab-item:hover {
    transform: translateY(-4px);
    border-color: rgba(63, 196, 245, .45);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
  }
  .lab-item:hover .lab-visual img { scale: 1.015; }
}

/* ===== Planes ===== */
.planes { background: var(--bg-surface); }
.planes-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 860px) { .planes-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column;
}
.plan-destacado {
  border-color: var(--color-lime);
  box-shadow: 0 0 0 1px var(--color-lime), var(--shadow);
}
.plan-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--color-lime); color: var(--bg-page);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 4px; }
.plan-precio { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.plan-precio span { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.plan-precio-sec { font-size: .88rem; color: var(--color-terracotta); font-weight: 600; margin: 2px 0 12px; }
.plan-desc { color: var(--text-secondary); font-size: .92rem; margin-bottom: 16px; }
.plan-incluye { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; flex: 1; }
.plan-incluye li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--text-primary); }
.plan-incluye li::before { content: "✓"; position: absolute; left: 0; color: var(--color-blue); font-weight: 700; }
.plan-cta { width: 100%; }
.planes-nota { margin-top: 24px; text-align: center; color: var(--text-secondary); font-size: .9rem; }

/* ===== FAQ ===== */
.faq { background: var(--bg-page); }
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--text-primary); font-size: .98rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; line-height: 1; color: var(--color-lime); flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }

/* ===== Contacto / intake ===== */
.contacto { background: var(--bg-page); position: relative; overflow: hidden; }
.contacto::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 139, 92, 0.16), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
.contacto.cursor-active::before { opacity: 1; }
.contacto .wrap { position: relative; z-index: 1; }
.eyebrow-center { text-align: center; }
.contacto-lead { max-width: 62ch; color: var(--text-secondary); }
.contacto-lead-center { text-align: center; margin-left: auto; margin-right: auto; }
.intake-form {
  /* Centrado igual que el encabezado que tiene encima. */
  margin: 28px auto 0; max-width: 560px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.intake-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .intake-row { grid-template-columns: 1fr 1fr; } }

.intake-field { display: flex; flex-direction: column; gap: 7px; border: none; padding: 0; margin: 0; min-width: 0; }
.intake-field label, .intake-field legend {
  font-weight: 700; font-size: .82rem; letter-spacing: .01em;
  color: var(--text-secondary); padding: 0;
}
.intake-legend-center { width: 100%; text-align: center; }

/* Misma altura, mismo radio y mismo foco en todos los campos. */
.intake-field input[type="text"],
.intake-field input[type="tel"],
.intake-field textarea {
  width: 100%; font-family: var(--font-body); font-size: .98rem;
  padding: 13px 15px; min-height: 48px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(5, 7, 13, .55); color: var(--text-primary);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.intake-field input::placeholder, .intake-field textarea::placeholder {
  color: rgba(154, 167, 192, .55);
}
.intake-field input[type="text"]:hover,
.intake-field input[type="tel"]:hover,
.intake-field textarea:hover { border-color: rgba(148, 163, 184, .34); }
.intake-field input[type="text"]:focus,
.intake-field input[type="tel"]:focus,
.intake-field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: rgba(5, 7, 13, .75);
  box-shadow: 0 0 0 3px rgba(63, 196, 245, .16);
}
.intake-field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }

.intake-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.intake-chips label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; font-weight: 600; font-size: .86rem; text-align: center;
  color: var(--text-secondary);
  background: rgba(5, 7, 13, .45); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.intake-chips label:hover { border-color: rgba(148, 163, 184, .34); color: var(--text-primary); }
.intake-chips input[type="checkbox"] { accent-color: var(--color-lime); margin: 0; }
.intake-chips label:has(input:checked) {
  background: rgba(215, 242, 78, .12); border-color: var(--color-lime); color: var(--color-lime);
}
/* Son siete: el último ocupa la fila entera para que el bloque no quede cojo. */
.intake-chips label:last-child { grid-column: 1 / -1; }
@media (min-width: 480px) { .intake-chips { grid-template-columns: repeat(3, 1fr); } }

.intake-submit { align-self: center; margin-top: 4px; }
.contacto-alt { margin-top: 18px; text-align: center; font-size: .92rem; color: var(--text-secondary); }
.contacto-alt a { color: var(--color-terracotta); font-weight: 700; text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { padding: 32px 0; text-align: center; background: var(--bg-page); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo { height: 30px; opacity: .85; }
.site-footer p { font-size: .82rem; color: var(--text-secondary); margin: 0; }

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-whatsapp); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.whatsapp-float .icon { width: 28px; height: 28px; fill: var(--text-inverse); }
@media (min-width: 960px) { .whatsapp-float { display: none; } }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
