/* =====================================================================
   MYEKO — Prototipo 2 · Estilo "Apple" · TEMA OSCURO + NEGATIVO AMARILLO
   ---------------------------------------------------------------------
   Sistema de SUPERFICIES (cada bloque define sus propios colores):
     · Superficie OSCURA (por defecto): fondo negro, texto blanco,
       amarillo de marca para resaltar (acentos, enlaces, iconos).
     · Superficie NEGATIVO (.section--brand / .tile--brand / nav):
       fondo amarillo de marca, tipografía negra.
   Layout y "aire" inspirados en apple.com. Tipografía: Geist.
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Marca */
  --brand:    #F2D126;   /* amarillo MYEKO */
  --brand-hi: #ffe04d;   /* amarillo claro (hover) */
  --ink:      #282828;   /* negro corporativo */

  /* SUPERFICIE OSCURA = contexto por defecto */
  --page:     #161616;   /* fondo de página */
  --surf:     #161616;   /* fondo de sección */
  --surf-alt: #0e0e0e;   /* sección alterna (más profunda) */
  --card:     #1f1f1f;   /* tarjetas sobre oscuro */
  --txt:      #f5f5f7;   /* texto principal (blanco) */
  --txt-soft: #a8a8ad;   /* texto secundario */
  --link:     var(--brand);          /* enlaces/acentos = amarillo */
  --line:     rgba(255,255,255,0.14);/* divisorias */

  --nav-h: 60px;
  --maxw:  1024px;
  --maxw-wide: 1200px;
  --radius: 18px;
  --radius-lg: 28px;

  --fs-hero: clamp(2.6rem, 7vw, 5.6rem);
  --fs-h2:   clamp(2rem, 4.5vw, 3.5rem);
  --fs-h3:   clamp(1.5rem, 3vw, 2.25rem);
  --fs-lead: clamp(1.15rem, 2vw, 1.6rem);
  --fs-body: clamp(1rem, 1.4vw, 1.2rem);

  --ease: cubic-bezier(.28,.11,.32,1);
}

/* Contexto NEGATIVO: fondo amarillo, tipografía negra.
   Lo aplican .section--brand, .tile--brand y .nav. */
.section--brand,
.tile--brand,
.nav {
  --surf: var(--brand);
  --card: #ffffff;
  --txt: var(--ink);
  --txt-soft: #5a5320;
  --link: var(--ink);
  --line: rgba(40,40,40,0.18);
}

/* --brand como propiedad <color> para que pueda INTERPOLARSE (transición).
   Sin esto, cambiar --brand vía JS sería un salto; con esto, todo lo que usa
   var(--brand) (nav, acentos, secciones negativas…) vira de color en suave. */
@property --brand {
  syntax: "<color>";
  inherits: true;
  initial-value: #F2D126;
}
:root { transition: --brand 1s ease-in-out; }

/* Barrido cromático al scrollear rápido: recorre una gama armónica con el
   amarillo de marca (warm → coral → magenta → violeta → azul → teal) y
   VUELVE al brand. Saturación/valor parecidos para que pegue con la marca. */
@keyframes brandSweep {
  0%   { --brand: #F2D126; }  /* brand */
  14%  { --brand: #F2A341; }  /* ámbar */
  28%  { --brand: #F2785C; }  /* coral */
  43%  { --brand: #E0639E; }  /* magenta suave */
  57%  { --brand: #9B6DE0; }  /* violeta */
  71%  { --brand: #5B8DEF; }  /* azul */
  86%  { --brand: #3FC9A3; }  /* verde-teal */
  100% { --brand: #F2D126; }  /* vuelve a brand */
}
.brand-sweep { animation: brandSweep 2.4s ease-in-out; }

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--page);
  color: var(--txt);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Enlace "chevron" estilo Apple: «Más información ›» */
.chevron-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-body);
  white-space: nowrap;
  color: var(--link);
}
.chevron-link::after { content: "›"; font-size: 1.1em; line-height: 0; transform: translateY(.04em); }
.chevron-link:hover { text-decoration: none; }
.chevron-link:hover .underline-on-hover { text-decoration: underline; }

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--maxw-wide); }

.section { padding: clamp(70px, 11vw, 130px) 0; text-align: center; background: var(--surf); color: var(--txt); }
.section--alt { background: var(--surf-alt); }
.section--dark { background: var(--surf); }     /* alias del contexto oscuro */
.section--brand { background: var(--surf); }    /* negativo amarillo (vars arriba) */
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }

.eyebrow {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--txt-soft);
  margin-bottom: 6px;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; color: var(--txt); }

.h2 { font-size: var(--fs-h2); font-weight: 600; }
.h3 { font-size: var(--fs-h3); font-weight: 600; }

.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  color: var(--txt-soft);
  max-width: 32ch;
  margin: 18px auto 0;
  line-height: 1.3;
}

.actions { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- 4. BOTONES PÍLDORA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--brand);     /* amarillo: resalta sobre oscuro */
  color: var(--ink);
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { background: var(--brand-hi); color: var(--ink); text-decoration: none; }
.btn--brand { background: var(--brand); color: var(--ink); }
.btn--brand:hover { background: var(--brand-hi); color: var(--ink); }
/* Secundario: contorno que se adapta a la superficie */
.btn--secondary {
  background: transparent;
  color: var(--txt);
  border-color: var(--txt);
}
.btn--secondary:hover { background: var(--txt); color: var(--surf); }
/* En NEGATIVO (fondo amarillo) el botón primario pasa a negro */
.section--brand .btn { background: var(--ink); color: #fff; }
.section--brand .btn:hover { background: #000; color: #fff; }

/* ---------- 5. NAV (amarillo de marca, tipografía negra) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 9000;
  background: color-mix(in srgb, var(--brand) 85%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(40,40,40,0.16);
}
.nav.scrolled { background: color-mix(in srgb, var(--brand) 96%, transparent); }
.nav-inner {
  max-width: var(--maxw-wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo .logo-svg { height: 22px; width: auto; aspect-ratio: 1505/300; fill: var(--ink); }
.nav-list { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); list-style: none; }
.nav-list a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity .2s;
}
.nav-list a:hover { opacity: 1; text-decoration: none; }
/* CTA de la nav: píldora NEGRA (contrasta sobre el amarillo) */
.nav-cta {
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 980px;
  opacity: 1 !important;
}
.nav-cta:hover { background: #000; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 26px; height: 26px; color: var(--ink);
}

.page { padding-top: var(--nav-h); }

/* ---------- 6. HERO (vídeo a todo el ancho, duotono amarillo) ---------- */
.hero {
  position: relative;
  min-height: clamp(600px, calc(100svh - var(--nav-h)), 1100px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
  padding: 0 22px;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
.hero-duo {
  position: absolute; inset: 0; z-index: 1;
  background: var(--brand);
  mix-blend-mode: multiply;
  opacity: 0.68;
  pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.12) 32%,
    rgba(20,20,20,0.12) 64%, rgba(20,20,20,0.62) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 16px; z-index: 3;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 4; max-width: 62ch; }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.hero .eyebrow { color: #fff; opacity: 0.92; }
.hero .hero-sub { font-size: var(--fs-lead); color: rgba(255,255,255,0.92); font-weight: 400; margin-top: 14px; }
.hero .actions { margin-top: 24px; }
.hero .hero-links { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero .hero-links .chevron-link { font-size: var(--fs-lead); color: #fff; }

/* Acento amarillo como subrayado fino (no un "parche" de fondo) */
.hl {
  background: linear-gradient(transparent 86%, var(--brand) 86%, var(--brand) 95%, transparent 95%);
  padding: 0 .02em;
}
.hero .hl { color: #fff; }

/* ---------- 7. TILES 2-UP ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: var(--maxw-wide);
  margin: 12px auto 0;
  padding: 0 22px;
}
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: clamp(360px, 40vw, 480px);
  padding: clamp(36px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  color: var(--txt);
  border: 1px solid var(--line);   /* bordecillo como las tarjetas de abajo */
}
.tile--dark { color: #f5f5f7; }    /* usa var(--card) #1f1f1f, igual que las tarjetas */
.tile--brand { background: var(--brand); color: var(--ink); }  /* vars en bloque negativo */
.tile--full { grid-column: 1 / -1; }
/* Icono en "chip" amarillo, igual lenguaje que las tarjetas de servicios */
.tile-ico {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--brand);
  color: var(--ink);
  margin-bottom: 24px;
}
.tile--brand .tile-ico { background: var(--ink); color: var(--brand); }
.tile-ico svg { width: 34px; height: 34px; }
.tile .eyebrow { color: var(--txt-soft); }
.tile h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; color: inherit; margin-top: 2px; }
.tile .tile-sub { font-size: var(--fs-body); margin-top: 10px; color: var(--txt-soft); max-width: 32ch; }
.tile--dark .tile-sub { color: #a8a8ad; }
.tile .chevron-link { margin-top: 18px; color: var(--link); }

/* ---------- 7b. MORPH DE FIGURAS (ligado al scroll, dentro del manifiesto) ---------- */
.morph {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(420px, 100%);
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: transparent;
}
.morph-svg {
  width: clamp(110px, 14vw, 160px);
  height: clamp(110px, 14vw, 160px);
  display: block;
}
.morph-svg #morphP2 { fill: var(--ink); }   /* tinta negra sobre el amarillo del manifiesto */
/* Caption: las tres líneas se apilan en el mismo punto y se cruzan por opacidad (la activa la pone el JS). */
.morph-cap {
  position: relative;
  margin-top: 18px;
  min-height: 1.4em;
  width: 100%;
  font-family: var(--mono, "Geist Mono", ui-monospace, monospace);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.morph-cap-line {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

/* ---------- 8. MÉTRICAS ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 64px) auto 0;
}
.metric { padding: 18px clamp(16px, 3vw, 40px); position: relative; }
.metric + .metric::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%;
  width: 1px; background: var(--line);
}
.metric .metric-num {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--txt);
}
/* En oscuro, el número se tiñe de amarillo para resaltar */
.section:not(.section--brand) .metric .metric-num { color: var(--brand); }
.metric .metric-desc { margin-top: 10px; font-size: 1rem; color: var(--txt-soft); }

/* ---------- 9. SERVICIOS (tarjetas) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 64px) auto 0;
  text-align: left;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  color: var(--txt);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.card-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: var(--ink);
  margin-bottom: 20px;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; color: var(--txt); }
.card p { color: var(--txt-soft); font-size: 1.02rem; line-height: 1.45; }
.card .chevron-link { margin-top: 16px; color: var(--brand); }

/* ---------- 10. PROCESO ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 64px) auto 0;
  text-align: left;
}
.step { position: relative; padding-top: 22px; border-top: 4px solid var(--brand); }
.step .step-n { font-size: 0.85rem; font-weight: 700; color: var(--txt-soft); letter-spacing: 0.04em; }
.step h4 { font-size: 1.3rem; font-weight: 600; margin: 8px 0; color: var(--txt); }
.step p { color: var(--txt-soft); font-size: 0.98rem; line-height: 1.45; }

/* ---------- 11. PLANES ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--maxw-wide);
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 0 22px;
  text-align: left;
  align-items: stretch;   /* todas las tarjetas de la fila igualan altura */
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--txt);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.plan.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand); background: #232017; }
.plan .plan-name { font-size: 1.3rem; font-weight: 600; color: var(--txt); }
.plan .plan-desc { color: var(--txt-soft); font-size: 0.98rem; line-height: 1.45; min-height: 2.8em; }
.plan .plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.plan .plan-price .amount { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--txt); }
.plan .plan-price .per { color: var(--txt-soft); font-size: 0.95rem; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan ul li { display: flex; gap: 10px; font-size: 0.96rem; color: var(--txt); line-height: 1.35; }
.plan ul li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }
.plan .plan-toggle { margin-top: 6px; width: 100%; font-family: inherit; }

/* Categoría del plan (eyebrow pequeño) */
.plan-cat {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand);
}

/* Indicador de CAPACIDAD DEL EQUIPO (urgencia, dentro de la marca).
   Comunica: etiqueta + % reservado + barra + estado. El % da sentido a la
   barra (a más relleno, menos hueco). "Casi al completo" pulsa para urgir. */
.plan-avail { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.avail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.avail-cap {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--txt-soft);
}
.avail-pct { font-size: 0.82rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
/* Slots de capacidad: bloques ocupados (marca) vs libres (tenues) */
.avail-slots { display: flex; gap: 5px; }
.avail-slots .slot {
  flex: 1; height: 9px; border-radius: 3px;
  background: rgba(255,255,255,0.12);
  transition: background .4s var(--ease);
}
.avail-slots .slot.on { background: var(--brand); }
.avail-state {
  font-size: 0.82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--txt-soft);
}
.avail-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--brand); }
/* "Casi al completo" → estado destacado + punto pulsante (urgencia) */
.plan-avail[data-level="low"] .avail-state { color: var(--txt); font-weight: 700; }
.plan-avail[data-level="low"] .avail-state::before { animation: availPulse 1.5s ease-in-out infinite; }
@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 0%, transparent); }
}
.plan--feature { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .plan--feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
  .plan--feature .plan-foot { display: flex; flex-direction: column; gap: 14px; }
}

/* Resumen pegajoso (oscuro translúcido) */
.plan-summary {
  position: sticky;
  bottom: 16px;
  z-index: 60;
  width: min(var(--maxw), calc(100% - 44px));
  margin: 36px auto 0;
  background: rgba(31,31,31,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  text-align: left;
  color: var(--txt);
}
.plan-summary .sum-count { font-size: 0.9rem; color: var(--txt-soft); }
.plan-summary .sum-amount { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--txt); }
.plan-summary .sum-next { font-size: 0.82rem; color: var(--txt-soft); display: block; margin-top: 2px; }

/* ---------- 12. FOOTER (oscuro) ---------- */
.footer {
  background: #0b0b0b;
  color: var(--txt-soft);
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 48px 0 24px;
}
.footer .wrap-wide { max-width: var(--maxw-wide); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 26px; margin-bottom: 20px;
}
.footer-cols h5 { font-size: 0.78rem; color: #f5f5f7; font-weight: 600; margin-bottom: 12px; }
.footer-cols ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-cols a { color: #a8a8ad; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-logo .logo-svg { height: 16px; width: auto; aspect-ratio: 1505/300; fill: #a8a8ad; }
.footer-by strong { color: var(--brand); font-weight: 700; }

/* ---------- 13. REVELADO AL SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; gap: 28px; }
  .metric + .metric::before { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-list { display: none; }
  .nav-list.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: color-mix(in srgb, var(--brand) 98%, transparent);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(40,40,40,0.16);
    padding: 8px 22px 16px;
  }
  .nav-list.open li { width: 100%; }
  .nav-list.open a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(40,40,40,0.16); width: 100%; }
  /* La CTA (Contacto) sigue siendo píldora: ni barra a todo el ancho ni línea inferior. */
  .nav-list.open .nav-cta {
    display: inline-block;
    margin: 14px 0 4px;
    padding: 10px 22px;
    width: auto;
    border-bottom: none;
  }
  .nav-toggle { display: grid; place-items: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .plan:hover { transform: none; }
}
