/* ============================================================
   WIREFRAME v2 — Foro Nacional del Cáñamo · Mérida 2026
   Baja fidelidad, escala de grises, dos temas.
   Sin dependencias, sin build, sin CDN.
   ============================================================ */

/* ---------- 1. Tokens ----------------------------------------
   Neutros con sesgo frío muy leve (hacia 260°): un gris puro
   lee como no elegido. Ramp claro y ramp oscuro en crudo, luego
   tokens semánticos vía light-dark().
   ------------------------------------------------------------ */
:root {
  /* ramp claro */
  --bg-l:#ffffff;      --surf-l:#ffffff;    --surf2-l:#f6f6f8;
  --line-l:#e3e3e8;    --line2-l:#c5c5ce;   --text-l:#121217;
  --muted-l:#56565f;   --faint-l:#6b6b74;   --ink-l:#121217;    --onink-l:#ffffff;

  /* ramp oscuro */
  --bg-d:#0f0f13;      --surf-d:#17171d;    --surf2-d:#1d1d25;
  --line-d:#2b2b34;    --line2-d:#43434f;   --text-d:#f1f1f4;
  --muted-d:#a4a4ae;   --faint-d:#9c9ca6;   --ink-d:#f1f1f4;    --onink-d:#0f0f13;

  /* semánticos — fallback sin light-dark() */
  --bg:var(--bg-l); --surf:var(--surf-l); --surf2:var(--surf2-l);
  --line:var(--line-l); --line2:var(--line2-l); --text:var(--text-l);
  --muted:var(--muted-l); --faint:var(--faint-l);
  --ink:var(--ink-l); --onink:var(--onink-l);

  /* escala tipográfica fluida, razón 1.25 */
  --fs-3xs:.6875rem; --fs-2xs:.75rem; --fs-xs:.8125rem; --fs-sm:.875rem; --fs-md:1rem;
  --fs-lg:clamp(1.0625rem, .98rem + .38vw, 1.25rem);
  --fs-xl:clamp(1.1875rem, 1.05rem + .7vw, 1.5rem);
  --fs-2xl:clamp(1.375rem, 1.15rem + 1.1vw, 2rem);
  --fs-3xl:clamp(1.75rem, 1.3rem + 2.2vw, 3.25rem);

  /* espaciado base 4 */
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.5rem;
  --s6:2rem; --s7:3rem; --s8:4rem; --s9:6rem;

  --r:6px; --r-lg:10px; --r-pill:999px;
  --maxw:76rem;
  --gut:clamp(1rem, 4vw, 2rem);
  --util-h:38px; --nav-h:60px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light dark;
}

/* Sobrescritura explícita de tokens en los tres estados posibles.
   Deliberadamente NO se usa light-dark(): esa función se evalúa en el
   elemento que consume la variable, no donde se declara, y no vuelve a
   resolverse al cambiar data-theme en caliente — lo que produce texto
   de un tema sobre el fondo del otro. */

/* 1. Sistema en oscuro y el usuario no ha fijado claro. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:var(--bg-d); --surf:var(--surf-d); --surf2:var(--surf2-d);
    --line:var(--line-d); --line2:var(--line2-d); --text:var(--text-d);
    --muted:var(--muted-d); --faint:var(--faint-d);
    --ink:var(--ink-d); --onink:var(--onink-d);
  }
}

/* 2. El usuario fijó oscuro: gana sobre cualquier preferencia.
   `html…:root` eleva la especificidad a (0,2,1) para que estos dos
   bloques ganen sin depender del orden frente al media query. */
html[data-theme="dark"]:root {
  color-scheme: dark;
  --bg:var(--bg-d); --surf:var(--surf-d); --surf2:var(--surf2-d);
  --line:var(--line-d); --line2:var(--line2-d); --text:var(--text-d);
  --muted:var(--muted-d); --faint:var(--faint-d);
  --ink:var(--ink-d); --onink:var(--onink-d);
}

/* 3. El usuario fijó claro: restaura la rampa clara completa. */
html[data-theme="light"]:root {
  color-scheme: light;
  --bg:var(--bg-l); --surf:var(--surf-l); --surf2:var(--surf2-l);
  --line:var(--line-l); --line2:var(--line2-l); --text:var(--text-l);
  --muted:var(--muted-l); --faint:var(--faint-l);
  --ink:var(--ink-l); --onink:var(--onink-l);
}

/* ---------- 2. Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

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

:where(a) { color: inherit; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 3. Layout -------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* Ritmo variable: bloques densos, bloques de respiro. */
.band        { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.band--tight { padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.band--airy  { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.band--rule  { border-top: 1px solid var(--line); }
.band--fill  { background: var(--surf2); }

.stack   { display: flex; flex-direction: column; gap: var(--s4); }
.stack-2 { display: flex; flex-direction: column; gap: var(--s2); }
.row     { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.grid { display: grid; gap: var(--s3); }
.grid > * { min-width: 0; }

/* ---------- 4. Tipografía ---------------------------------- */
h1,h2,h3,h4 { margin: 0; line-height: 1.14; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
h4 { font-size: var(--fs-sm); letter-spacing: 0; }
p  { margin: 0; }

.prose { display: flex; flex-direction: column; gap: var(--s3); max-width: 62ch; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }

.lead    { font-size: var(--fs-lg); color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.micro   { font-size: var(--fs-2xs); color: var(--faint); }
.caption { font-size: var(--fs-xs); color: var(--muted); }

.eyebrow {
  font-size: var(--fs-3xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- 5. Barra de utilidades -------------------------- */
.util {
  height: var(--util-h);
  background: var(--surf2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-2xs);
}
.util .wrap { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: var(--s3); }
.util-group { display: flex; align-items: center; gap: var(--s1); }

/* Bajo 48rem las redes salen de la barra: sus targets quedarían en
   30 px y compiten por el ancho con idioma, tema y moneda. Siguen
   accesibles en el footer y en la barra de acción inferior. */
.util-group--social { display: none; }
@media (min-width: 48rem) {
  .util .wrap { justify-content: space-between; }
  .util-group--social { display: flex; }
}

.util-link {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: var(--r); color: var(--muted); text-decoration: none;
}
.util-link:hover { color: var(--text); background: var(--surf); }

/* Segmented control: idioma, tema, moneda */
.seg {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line2); border-radius: var(--r-pill);
  background: var(--surf); padding: 2px; gap: 2px;
}
.seg button {
  font: inherit; font-size: var(--fs-3xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); background: none; border: 0;
  border-radius: var(--r-pill); padding: 4px 10px; min-height: 24px;
  cursor: pointer; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--onink); }
.seg--icon button { padding: 4px 8px; display: grid; place-items: center; }
.util-sep { width: 1px; height: 18px; background: var(--line2); margin-inline: var(--s2); }

/* ---------- 6. Navegación ---------------------------------- */
.nav-sentinel { height: 1px; }

.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav .wrap { height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s4); }

.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  border: 1px dashed var(--line2); border-radius: var(--r);
  padding: 5px 10px; text-decoration: none;
  font-size: var(--fs-3xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}

/* Menú central: SOLO anclas de la página actual. */
.nav-menu { display: none; justify-self: center; }
.nav-menu ul { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 7px var(--s3); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 500; color: var(--muted); text-decoration: none;
  white-space: nowrap; transition: color .15s ease, background-color .15s ease;
}
.nav-menu a:hover { color: var(--text); background: var(--surf2); }
.nav-menu a[aria-current="true"] { color: var(--text); font-weight: 650; background: var(--surf2); }

.nav-end { display: flex; align-items: center; gap: var(--s2); justify-self: end; }
.nav-cta { display: none; }
.nav-cta.is-hidden { opacity: 0; pointer-events: none; }

.burger {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line2); border-radius: var(--r);
  background: var(--surf); color: var(--text); cursor: pointer;
}

/* Panel móvil */
.menu-panel {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: var(--s4) var(--gut) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.menu-panel[hidden] { display: none; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: var(--s5); }
.menu-panel__group + .menu-panel__group { margin-top: var(--s6); }
.menu-panel__group h4 { color: var(--faint); font-size: var(--fs-3xs); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s2); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; text-decoration: none; font-size: var(--fs-lg); font-weight: 600; }
.menu-panel__group--sub a { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); min-height: 46px; }

/* ---------- 7. Botones y pills ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: 0 var(--s5);
  border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: var(--onink);
  font: inherit; font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease;
}
.btn:hover { opacity: .86; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line2); }
.btn--outline:hover { background: var(--surf2); opacity: 1; }
.btn--quiet { background: transparent; color: var(--muted); border-color: transparent; }
.btn--quiet:hover { background: var(--surf2); color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 var(--s4); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px var(--s3); font-size: var(--fs-2xs); color: var(--muted);
  background: var(--surf); white-space: nowrap;
}

.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 15px; height: 15px; }
.ico--lg { width: 22px; height: 22px; }

/* ---------- 8. Placeholders de medios ----------------------- */
.ph {
  position: relative;
  border: 1px dashed var(--line2); border-radius: var(--r);
  background: var(--surf2);
  display: grid; place-items: center; text-align: center;
  padding: var(--s4); overflow: hidden;
}
.ph__label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: var(--fs-2xs); color: var(--muted); max-width: 42ch;
}
.ph__label b { font-size: var(--fs-3xs); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ph--16x9 { aspect-ratio: 16/9; }
.ph--4x5  { aspect-ratio: 4/5; }
.ph--1x1  { aspect-ratio: 1/1; }
.ph--wide { aspect-ratio: 21/9; }
.ph--logo { aspect-ratio: 3/1.4; padding: var(--s2); }
.ph--logo .ph__label { font-size: var(--fs-3xs); }

.ph__play {
  position: absolute; inset: 0; margin: auto;
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--line2); background: var(--surf);
  display: grid; place-items: center; color: var(--text);
}

/* ---------- 9. Tarjetas ------------------------------------- */
.card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surf); padding: var(--s4);
  display: flex; flex-direction: column; gap: var(--s2);
}
.card--fill   { background: var(--surf2); }
.card--dashed { border-style: dashed; background: transparent; }
.card--link   { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.card--link:hover { border-color: var(--line2); transform: translateY(-2px); }

/* Nota de wireframe: anotación dirigida al cliente, no contenido. */
.note {
  border: 1px solid var(--line2); border-left-width: 3px; border-radius: var(--r);
  background: var(--surf2); padding: var(--s3) var(--s4);
  font-size: var(--fs-2xs); color: var(--muted);
  display: flex; flex-direction: column; gap: 4px;
}
.note > b { font-size: var(--fs-3xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }

/* Marcador de dato pendiente, inline */
.tbd {
  font-size: .9em; font-weight: 600; letter-spacing: .04em;
  border: 1px dashed var(--line2); border-radius: 3px;
  padding: 0 5px; color: var(--faint); white-space: nowrap;
}

/* ---------- 10. Hero ---------------------------------------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.hero__grid { display: grid; gap: var(--s6); }
.hero__title { margin-bottom: var(--s4); }
.hero__kicker { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }

/* Datos clave: dato grande + etiqueta pequeña */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: var(--s5); }
.fact { background: var(--surf); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: 2px; }
.fact dt { order: 2; font-size: var(--fs-3xs); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fact dd { order: 1; margin: 0; font-size: var(--fs-sm); font-weight: 700; }

/* Tarjeta de registro compacta en el hero */
.signup { border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--surf); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.signup__head { display: flex; flex-direction: column; gap: var(--s1); }

/* ---------- 11. Formularios --------------------------------- */
.form { display: grid; gap: var(--s4); }
.form__pair { display: grid; gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: var(--fs-xs); font-weight: 600; }
.field .hint { font-size: var(--fs-2xs); color: var(--faint); }
.field :is(input, select, textarea) {
  font: inherit; font-size: var(--fs-md); /* 16px evita zoom en iOS */
  min-height: 46px; padding: 0 var(--s3);
  border: 1px solid var(--line2); border-radius: var(--r);
  background: var(--surf); color: var(--text); width: 100%;
}
.field textarea { min-height: 96px; padding-block: var(--s3); resize: vertical; line-height: 1.5; }
.field :is(input, select, textarea)::placeholder { color: var(--faint); }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-2xs); color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }

/* ---------- 12. Bento (argumento + definiciones) ------------ */
.bento { display: grid; gap: var(--s3); }
.bento__lead { display: flex; flex-direction: column; gap: var(--s4); justify-content: center; }

/* Acordeón: solo bajo 48rem. En desktop las definiciones son tarjetas. */
.defs { display: grid; gap: var(--s3); }
.def { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surf); }
.def > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 52px; padding: var(--s3) var(--s4);
  font-size: var(--fs-sm); font-weight: 650; cursor: pointer; list-style: none;
}
.def > summary::-webkit-details-marker { display: none; }
.def > summary::after { content: ""; width: 10px; height: 10px; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint); transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s ease; flex: none; }
.def[open] > summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.def__body { padding: 0 var(--s4) var(--s4); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 12b. Riel deslizable (móvil) --------------------
   Patrón compartido por programa y participantes: en pantallas
   angostas la lista se recorre en horizontal en vez de apilarse.
   ------------------------------------------------------------ */
.rail {
  display: grid; grid-auto-flow: column;
  gap: var(--s3);
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: thin;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  padding-bottom: var(--s3);
}
.rail > * { scroll-snap-align: start; }
.scroll-hint { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); color: var(--faint); margin-top: var(--s1); }

/* ---------- 13. Programa: 3 fases --------------------------- */
.phases { counter-reset: phase; grid-auto-columns: 84%; }
.phase { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surf); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.phase__head { display: flex; align-items: baseline; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.phase__n { counter-increment: phase; font-size: var(--fs-2xs); font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.phase__n::before { content: "Fase " counter(phase); }
.phase__range { margin-left: auto; font-size: var(--fs-2xs); color: var(--faint); font-variant-numeric: tabular-nums; }
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.slot { display: grid; grid-template-columns: 4.25rem 1fr; gap: var(--s3); padding-block: var(--s3); }
.slot + .slot { border-top: 1px solid var(--line); }
.slot__t { font-size: var(--fs-2xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.slot__n { font-size: var(--fs-sm); font-weight: 600; }
.slot__d { font-size: var(--fs-2xs); color: var(--faint); }

/* ---------- 14. Participantes: riel → rejilla --------------- */
.people { grid-auto-columns: 58%; }
.person { display: flex; flex-direction: column; gap: var(--s2); }
.person__name { font-size: var(--fs-sm); font-weight: 650; }
.person__role { font-size: var(--fs-2xs); color: var(--faint); }

/* ---------- 15. Rejilla de logos ---------------------------- */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s2); }
.logos--slot .ph { border-style: dashed; }
.logo-add { display: grid; place-items: center; aspect-ratio: 3/1.4; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--faint); background: transparent; }

/* ---------- 16. FAQ ----------------------------------------- */
.faq { display: grid; gap: var(--s2); align-content: start; }

/* ---------- 17. Tablas -------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: var(--fs-xs); }
th, td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surf2); font-size: var(--fs-3xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child :is(td, th) { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; }

/* ---------- 18. Niveles de patrocinio ----------------------- */
.tiers { display: grid; gap: var(--s3); align-items: start; }
.tier { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surf); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.tier--flag { border-color: var(--line2); border-width: 2px; }
.tier__price { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tier__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); font-size: var(--fs-xs); color: var(--muted); }
.tier__list li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s2); align-items: start; }
.tier__list svg { margin-top: 3px; color: var(--faint); }
.tier > .btn { margin-top: auto; }

/* ---------- 19. Barra de acción móvil ----------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: var(--s2) var(--gut);
  padding-bottom: calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  display: flex; gap: var(--s2); align-items: center;
}
.actionbar .btn { flex: 1; }
.actionbar__icon { width: 52px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r); color: var(--text); text-decoration: none; flex: none; background: var(--surf); }

/* ---------- 20. Footer -------------------------------------- */
.footer { background: var(--surf2); border-top: 1px solid var(--line); padding-block: var(--s7) var(--s6); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s5) var(--s4); }
.footer h4 { font-size: var(--fs-3xs); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: var(--s3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.footer a { font-size: var(--fs-xs); color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer__base { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; font-size: var(--fs-2xs); color: var(--faint); }
.social { display: flex; gap: var(--s2); }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r); color: var(--text); }

/* ---------- 21. Cintillos de estado ------------------------- */
.wf-banner {
  background: var(--ink); color: var(--onink);
  font-size: var(--fs-3xs); letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: 7px var(--s4);
}
.toast {
  position: fixed; left: 50%; translate: -50% 0; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 90; max-width: min(30rem, calc(100vw - 2rem));
  background: var(--ink); color: var(--onink);
  border-radius: var(--r); padding: var(--s3) var(--s4);
  font-size: var(--fs-2xs); text-align: center;
  box-shadow: 0 8px 28px rgb(0 0 0 / .22);
}
.toast[hidden] { display: none; }

.page-head { display: flex; flex-direction: column; gap: var(--s3); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); text-decoration: none; }

/* ============================================================
   Breakpoints
   ============================================================ */
/* Cancela el riel: la lista vuelve a ser rejilla. */
.rail--off {
  grid-auto-flow: row; overflow: visible; scroll-snap-type: none;
  margin-inline: 0; padding-inline: 0; padding-bottom: 0;
}

@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .form__pair { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .phases {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0,1fr));
    overflow: visible; scroll-snap-type: none;
    margin-inline: 0; padding-inline: 0; padding-bottom: 0;
  }
  .phases + .scroll-hint { display: none; }
  .logos { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .tiers { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .faq { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__cols { grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s6) var(--s5); }
  .defs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bento__lead { grid-column: span 2; }
  .media-split { display: grid; grid-template-columns: 8fr 4fr; gap: var(--s5); align-items: start; }
  .people { grid-auto-columns: 32%; }
}

@media (min-width: 64rem) {
  body { padding-bottom: 0; }
  .actionbar { display: none; }
  .toast { bottom: var(--s6); }
  .burger { display: none; }
  .nav-menu { display: block; }
  .nav-cta { display: inline-flex; }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s7); align-items: start; }
  .hero__aside { position: sticky; top: calc(var(--nav-h) + var(--s4)); }
  .bento { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .bento__lead { grid-column: span 4; }
  .defs { grid-template-columns: repeat(4, minmax(0,1fr)); }

  /* En desktop las definiciones dejan de ser acordeón: app.js les
     pone el atributo open y la clase .def--static. */
  .def--static > summary { cursor: default; pointer-events: none; border-bottom: 1px solid var(--line); }
  .def--static > summary::after { display: none; }
  .def--static .def__body { padding-top: var(--s3); }

  .people {
    grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0,1fr));
    overflow: visible; scroll-snap-type: none;
    margin-inline: 0; padding-inline: 0; padding-bottom: 0;
  }
  .scroll-hint { display: none; }
  .band--airy { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
}

@media print { .nav, .util, .actionbar, .toast { position: static; } }
