/* =====================================================================
   Congreso Nacional de CEAs 2026 — hoja de estilos
   Mundo visual: la vía nocturna. Asfalto azul-negro, amarillo
   retrorreflectivo, cinta tricolor como carriles, señalética vial.
   ===================================================================== */

/* Rubik (variable, subset latín) — la misma familia del flyer, autoalojada */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/rubik-variable-latin.woff2") format("woff2");
}

:root {
  /* Asfalto */
  --asphalt-900: #050E24;
  --asphalt-800: #071330;
  --asphalt-700: #0B1D4A;
  --asphalt-600: #0E2A6B;
  --asphalt-500: #14368A;

  /* Retrorreflectivo y tricolor */
  --gold: #F5B32B;
  --gold-600: #D9961A;
  --gold-200: #FFE39A;
  --blue: #1E3FE0;
  --blue-sign: #0B3FA6;
  --red: #E3202B;

  /* Texto sobre asfalto (teñido del azul, nunca gris) */
  --ink: #FFFFFF;
  --ink-2: #C9D4F2;
  --ink-3: #8FA3D9;

  /* Texto sobre placa blanca */
  --plate: #F7F8FC;
  --plate-ink: #0B1D4A;
  --plate-ink-2: #3A4C7E;

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65), 0 6px 14px -8px rgba(0, 0, 0, .5);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset y superficies del navegador ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--asphalt-800);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
strong { font-weight: 700; }
small { font-size: .82em; }

::selection { background: var(--gold); color: var(--asphalt-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--gold) var(--asphalt-900); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--asphalt-900); }
::-webkit-scrollbar-thumb { background: var(--gold); border: 3px solid var(--asphalt-900); border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--asphalt-900); padding: 10px 14px; font-weight: 700; border-radius: 8px;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* ---------- Iconos (un solo trazo, un solo peso) ---------- */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--btn { width: 18px; height: 18px; stroke-width: 2.4; margin-left: 2px; transition: transform .35s var(--ease-out); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: .005em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:hover .ico--btn { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--gold); color: var(--asphalt-900); border-color: var(--gold);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .7);
}
.btn--gold:hover { background: var(--gold-200); border-color: var(--gold-200); box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .75); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(201, 212, 242, .55); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.link { color: var(--gold); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--gold-200); }

/* =====================================================================
   Barra superior
   ===================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 19, 48, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 212, 242, .1);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.topbar__brand img { width: clamp(150px, 20vw, 220px); height: auto; }
.topbar__nav { display: flex; gap: 6px; margin-left: auto; }
.topbar__nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.topbar__nav a:hover { color: var(--ink); background: rgba(201, 212, 242, .08); }
.topbar__cta { margin-left: 4px; }
@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .topbar__cta { margin-left: auto; }
}
@media (max-width: 480px) {
  .topbar__cta { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(30, 63, 224, .35), transparent 60%),
    radial-gradient(700px 400px at 12% 90%, rgba(245, 179, 43, .12), transparent 60%),
    linear-gradient(180deg, var(--asphalt-700) 0%, var(--asphalt-800) 55%, var(--asphalt-900) 100%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: end;
  gap: 24px;
  padding-top: clamp(40px, 5.5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
  min-height: min(calc(100svh - 72px - 56px), 760px);
}
.hero__copy { position: relative; z-index: 2; max-width: 640px; padding-bottom: 8px; }

.hero__title {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title-accent { display: block; color: var(--gold); font-weight: 700; font-size: .62em; letter-spacing: -.015em; margin-top: .28em; }

.hero__lead {
  margin-top: clamp(20px, 2.6vw, 28px);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

/* Señal informativa (rectángulo azul con borde blanco) */
.sign--info {
  margin-top: clamp(24px, 3vw, 34px);
  display: inline-grid; gap: 12px; justify-items: start;
  padding: 16px 20px;
  background: var(--blue-sign);
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.sign__row { display: flex; align-items: flex-start; gap: 12px; }
.sign__row .ico { margin-top: 3px; color: var(--gold); }
.sign__row strong { display: block; font-size: 17px; line-height: 1.25; }
.sign__sub { display: block; color: var(--ink-2); font-size: 14.5px; margin-top: 3px; }
#countdown { color: var(--gold-200); font-weight: 500; }
#countdown:empty { display: none; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: clamp(24px, 3vw, 34px); }
.hero__note { color: var(--ink-2); font-size: 15px; }
.hero__note strong { color: var(--gold); }

/* La vía */
.hero__road {
  position: absolute; z-index: 1;
  top: 0; right: 0; bottom: 52px; /* la banda amarilla queda encima */
  width: 58%;
  pointer-events: none;
  /* la vía entra desde la izquierda en fundido, sale por el borde derecho */
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.road {
  position: absolute; right: -6%; bottom: -12%;
  width: 112%; height: auto;
  overflow: visible;
}
.road--mobile { display: none; }
.road path { fill: none; stroke-linecap: round; }
.road__base { stroke: var(--asphalt-500); stroke-width: 210; opacity: .55; }
.road__band { stroke-width: 48; }
.road__band--yellow { stroke: var(--gold); }
.road__band--blue { stroke: var(--blue); }
.road__band--red { stroke: var(--red); }
.road__edge { stroke: rgba(255, 255, 255, .55); stroke-width: 3; }
.road__dash {
  stroke: #fff; stroke-width: 6; stroke-linecap: butt;
  stroke-dasharray: 34 46;
  animation: chase 1.6s linear infinite;
}
.road__layer { will-change: transform; }
@keyframes chase { to { stroke-dashoffset: -80; } }

/* Banda amarilla: cupos limitados */
.band { position: relative; z-index: 2; background: var(--gold); color: var(--asphalt-900); padding: 14px var(--gutter); }
.band__inner { width: auto; max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.band__main { font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.band__date { font-weight: 500; font-size: 15px; color: var(--asphalt-700); }
.band__date--r { text-align: right; }

/* =====================================================================
   Ruta: riel vertical + secciones
   ===================================================================== */
.route { position: relative; --rail-x: calc((100% - min(var(--wrap), 100% - 2 * var(--gutter))) / 2 + 22px); }
.route__rail {
  position: absolute; top: 150px; bottom: clamp(18px, 2.5vw, 34px); /* termina dentro de la cinta final, que la cubre */
  left: var(--rail-x);
  width: 12px; pointer-events: none;
}
/* Rampa desde la banda hasta el riel */
.route__ramp {
  position: absolute; top: 0; left: var(--rail-x); height: 156px; width: min(60vw, 720px);
  pointer-events: none;
}
/* el svg recorta por arriba: la vía sale de debajo de la banda amarilla */
.route__ramp svg { width: 100%; height: 100%; overflow: hidden; }
.ramp__base, .ramp__dash { fill: none; vector-effect: non-scaling-stroke; }
.ramp__base { stroke: var(--asphalt-500); stroke-width: 12; }
.ramp__dash { stroke: #fff; stroke-width: 3; stroke-dasharray: 18 22; opacity: .85; }
.rail { width: 12px; height: 100%; }
.rail__base { stroke: var(--asphalt-500); stroke-width: 12; }
.rail__dash { stroke: #fff; stroke-width: 3; stroke-dasharray: 18 22; opacity: .85; }

.sec { position: relative; padding-block: clamp(48px, 6vw, 84px); scroll-margin-top: 72px; }
.sec--why { padding-top: clamp(64px, 8vw, 104px); }
.sec__grid { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.sec__post { position: sticky; top: 96px; display: flex; justify-content: center; }

/* Poste de kilometraje */
.post {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 64px; border-radius: 8px;
  background: var(--plate); color: var(--plate-ink);
  font-weight: 900; font-size: 22px; line-height: 1;
  box-shadow: var(--shadow);
  position: relative;
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.post b { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--plate-ink-2); margin-bottom: 3px; }
.post::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sec.is-here .post { background: var(--gold); color: var(--asphalt-900); }
.sec.is-here .post b { color: var(--asphalt-700); }

.h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08; font-weight: 900; letter-spacing: -.02em;
  text-wrap: balance; max-width: 22ch;
}
.h2--sm { font-size: clamp(24px, 2.8vw, 32px); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.62; color: var(--ink-2); max-width: 68ch; }
.lead strong { color: var(--ink); }
.lead--tight { margin-top: 40px; }

/* Sección 1: tres señales */
.signs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  margin-top: 48px;
}
.signs__item { display: grid; gap: 18px; justify-items: start; }
.signs__item p { color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 30ch; }
.signs__item p strong { color: var(--ink); }

.sign { display: grid; place-items: center; font-weight: 900; padding: 8px; }
.sign--info { display: inline-grid; place-items: start; font-weight: 400; padding: 16px 20px; }
.sign__big { font-size: 34px; line-height: 1; letter-spacing: -.03em; display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.sign__big small { font-size: .55em; font-weight: 700; }
.sign__arrow { width: .72em; height: .72em; stroke-width: 3; margin-inline: 5px; align-self: center; }
.sign__big--sm { font-size: 24px; letter-spacing: 0; }

/* Preventiva: rombo amarillo */
.sign--warn {
  width: 100px; height: 100px; margin: 16px; color: var(--asphalt-900);
  background: var(--gold); border-radius: 10px;
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 7px var(--gold), inset 0 0 0 10px var(--asphalt-900), var(--shadow);
}
.sign--warn .sign__big { transform: rotate(-45deg); }
/* Rectángulo informativo azul */
.sign--reg {
  min-width: 132px; height: 96px; padding: 0 20px; color: #fff;
  background: var(--blue-sign); border: 3px solid #fff; border-radius: 10px;
  box-shadow: var(--shadow);
}
/* Reglamentaria: círculo rojo */
.sign--stop {
  width: 124px; height: 124px; color: var(--plate-ink);
  background: var(--plate); border: 12px solid var(--red); border-radius: 50%;
  box-shadow: var(--shadow);
}

/* Sección 2: ejes */
.axes { margin-top: 40px; display: grid; }
.axis {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 30px 8px;
  border-top: 3px dashed rgba(255, 255, 255, .28);
}
.axis:last-child { border-bottom: 3px dashed rgba(255, 255, 255, .28); }
.axis__icon {
  width: 72px; height: 72px; display: grid; place-items: center;
  background: var(--gold); color: var(--asphalt-900); border-radius: 12px;
  transform: rotate(45deg) scale(.86); transition: transform .45s var(--ease-out);
}
.axis__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); }
.axis:hover .axis__icon { transform: rotate(45deg) scale(.94); }
.axis h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.axis p { margin-top: 8px; color: var(--ink-2); max-width: 62ch; }
.axis p strong { color: var(--ink); }

/* Sección 3: señal de destinos */
.dest {
  margin-top: 40px;
  background: var(--blue-sign); border: 4px solid #fff; border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.dest__head {
  padding: 14px 24px; font-size: 15px; font-weight: 700; letter-spacing: .01em;
  background: rgba(255, 255, 255, .12); color: var(--gold-200);
}
.dest__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dest__list li {
  display: grid; gap: 4px; padding: 18px 24px 18px 52px; position: relative;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.dest__list li::before {
  content: ""; position: absolute; left: 24px; top: 26px; width: 12px; height: 12px;
  border-right: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg);
}
.dest__list li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .18); }
.dest__list li:nth-child(-n+2) { border-top: 0; }
.dest__name { font-weight: 700; font-size: 19px; line-height: 1.2; }
.dest__desc { font-size: 14.5px; color: var(--ink-2); }
.dest__item--hl { grid-column: 1 / -1; background: var(--gold); color: var(--asphalt-900); border-right: 0 !important; }
.dest__item--hl::before { border-color: var(--asphalt-900); }
.dest__item--hl .dest__desc { color: var(--asphalt-700); }
.dest__item--hl em { font-style: normal; font-weight: 700; color: var(--asphalt-900); }

/* =====================================================================
   Sección 4: etapas de inscripción
   Cada etapa es una señal de peaje sobre la vía: la abierta va en dorado
   retrorreflectivo, las siguientes apagadas hasta que se anuncien.
   ===================================================================== */
.stages {
  margin-top: 40px;
  /* La columna ancha sigue a la etapa abierta (hoy, Etapa 2 = 2ª columna).
     Al avanzar de etapa, mover el valor 1.6fr a la columna correspondiente. */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px; align-items: stretch;
}
.stage { display: grid; align-content: start; gap: 6px; padding: 24px 22px; border-radius: 14px; }
.stage--open {
  background: var(--gold); color: var(--asphalt-900);
  box-shadow: var(--shadow);
}
.stage--closed { background: var(--asphalt-700); color: var(--ink-3); }
.stage--closed .stage__name { color: var(--ink-2); }
.stage--closed .stage__price { color: var(--ink-3); font-size: clamp(28px, 3vw, 34px); text-decoration: line-through; text-decoration-thickness: 2px; }
.stage__tag--done { background: rgba(255, 255, 255, .1); color: var(--ink-3); }
.stage--soon {
  background: transparent; color: var(--ink-3);
  border: 2px dashed rgba(201, 212, 242, .3);
  align-content: center; justify-items: center; text-align: center; gap: 4px;
}
.stage__tag {
  justify-self: start; margin-bottom: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--asphalt-900); color: var(--gold);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.stage__name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.stage--soon .stage__name { color: var(--ink-2); font-size: 17px; }
.stage__price { font-size: clamp(34px, 4vw, 46px); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.stage__price span { font-size: .6em; vertical-align: .18em; margin-right: 2px; }
.stage__when { font-size: 14.5px; font-weight: 500; color: var(--asphalt-700); }
.stage__soon { font-size: 14px; font-weight: 500; }
.stage--open .btn { margin-top: 14px; justify-self: start; }
.btn--dark { background: var(--asphalt-900); color: var(--gold); border-color: var(--asphalt-900); }
.btn--dark:hover { background: var(--asphalt-700); border-color: var(--asphalt-700); color: var(--gold-200); transform: translateY(-2px); }

/* Auxilio: señal preventiva triangular */
.aid { margin-top: 32px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: center; }
.aid__mark { width: 64px; height: 64px; display: grid; place-items: center; }
.aid__mark svg { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.aid__body h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.aid__body p { margin-top: 6px; color: var(--ink-2); max-width: 62ch; }
.aid__body p strong { color: var(--gold); }

/* Sección 5: logística y registro */
.reg { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.reg__where { display: grid; gap: 28px; }
.where { display: flex; gap: 14px; align-items: flex-start; }
.where .ico { color: var(--gold); margin-top: 4px; }
.where strong { display: block; font-size: 17px; margin-bottom: 4px; }
.where p { color: var(--ink-2); font-size: 16px; }
.where p strong { display: inline; font-size: inherit; color: var(--ink); }
.where .link { display: inline-block; margin-top: 6px; font-size: 15px; }

/* Los dos pasos son postes sobre un tramo de vía: sin caja, el tramo los une */
.steps { position: relative; display: grid; gap: 40px; padding-top: 6px; }
.steps::before {
  content: ""; position: absolute; left: 30px; top: 40px; bottom: 40px; width: 4px;
  border-left: 4px dashed rgba(255, 255, 255, .28);
}
.step {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start;
}
.step__lamp {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 26px; color: var(--ink-3);
  background: var(--asphalt-900); border: 3px solid var(--asphalt-500);
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .6s var(--ease-out);
}
.step.is-armed .step__lamp {
  background: var(--gold); color: var(--asphalt-900); border-color: var(--gold-200);
  box-shadow: 0 0 0 8px rgba(245, 179, 43, .16), 0 8px 18px -8px rgba(0, 0, 0, .7);
}
.step__body { padding-top: 6px; }
.step h3 { font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.step .btn { margin-top: 18px; }

/* Organiza / aliados: placa blanca */
.plate {
  margin-top: 28px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 20px 32px; align-items: center;
  background: var(--plate); color: var(--plate-ink);
  border-radius: 16px; padding: 28px 32px;
  box-shadow: var(--shadow);
}
.plate__group { display: grid; gap: 12px; justify-items: start; }
.plate__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plate-ink-2); }
.plate__group--org img { width: min(100%, 300px); height: auto; }
.plate__logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.plate__logos img:first-child { width: 96px; height: 96px; }
.plate__logos img:last-child { width: min(100%, 260px); height: auto; }
.plate__text { font-weight: 700; font-size: 20px; line-height: 1.15; }
.plate__text small { font-weight: 400; color: var(--plate-ink-2); }

/* =====================================================================
   Cierre
   ===================================================================== */
.close { position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 104px); }
.close__inner { position: relative; z-index: 1; padding-bottom: 24px; }

/* Señal de destino: panel informativo junto al riel, que termina en la cinta final */
.destsign { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: stretch; }
.destsign__panel {
  background: var(--blue-sign); border: 4px solid #fff; border-radius: 16px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow);
  position: relative;
}
.close__title {
  font-size: clamp(28px, 3.8vw, 48px); line-height: 1.06; font-weight: 900; letter-spacing: -.025em;
  max-width: 24ch; text-wrap: balance;
}
.destsign__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 28px; }
.close__meta { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.close__meta .ico { color: var(--gold); }
.close__road svg { width: 100%; height: clamp(160px, 22vw, 300px); }
.cr { fill: none; stroke-linecap: round; }
.cr--base { stroke: var(--asphalt-600); stroke-width: 110; }
.cr--red { stroke: var(--red); stroke-width: 26; }
.cr--blue { stroke: var(--blue); stroke-width: 26; }
.cr--yellow { stroke: var(--gold); stroke-width: 26; }
/* el periodo del patrón (26+34 = 60) debe coincidir con el desplazamiento del loop, si no "salta" */
.cr--dash { stroke: #fff; stroke-width: 4; stroke-linecap: butt; stroke-dasharray: 26 34; animation: chase-close 1.4s linear infinite; }
@keyframes chase-close { to { stroke-dashoffset: -60; } }

.foot { background: var(--asphalt-900); border-top: 1px solid rgba(201, 212, 242, .1); padding-block: 28px 100px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot img { width: 180px; height: auto; opacity: .9; }
.foot p { color: var(--ink-3); font-size: 14px; }
@media (min-width: 761px) { .foot { padding-bottom: 28px; } }

/* CTA fija en móvil */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 14, 36, 0), rgba(5, 14, 36, .92) 40%);
  display: none;
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.sticky .btn { width: 100%; }
.sticky.is-on { transform: none; }
@media (max-width: 760px) { .sticky { display: block; } }


/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-bottom: 0; }
  .hero__road {
    position: relative; inset: auto; width: 100%; height: clamp(220px, 40vw, 360px); margin-top: 8px;
    mask-image: none; -webkit-mask-image: none;
  }
  /* la cinta llena su caja, anclada abajo a la derecha, y sangra por ese borde */
  .road { position: absolute; inset: 0 -6% 0 0; width: 106%; height: 100%; }
  .reg { grid-template-columns: minmax(0, 1fr); }
  .plate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plate__group--support { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__grid { min-height: 0; padding-top: 40px; padding-bottom: 32px; }
  /* En celular la cinta cruza todo el ancho (como el pie del flyer): sin espacio vacío */
  .hero__road { height: clamp(150px, 46vw, 200px); margin-top: 12px; }
  .road:not(.road--mobile) { display: none; }
  .road--mobile { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .road--mobile .road__base { stroke-width: 100; }
  .road--mobile .road__band { stroke-width: 24; }
  .road--mobile .road__dash { stroke-width: 3.5; stroke-dasharray: 18 22; }
  .road--mobile .road__edge { stroke-width: 2; }
  .hero__actions .btn--lg { width: 100%; }
  .band__inner { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .band__main { font-size: 20px; }
  .band__date--r { display: none; }
  .band__date { text-align: center; font-size: 14px; }

  .route { --rail-x: calc(var(--gutter) + 6px); }
  .route__rail { width: 8px; top: 96px; }
  .route__ramp { height: 110px; width: 88vw; }
  .ramp__base { stroke-width: 10; }
  .ramp__dash { stroke-width: 3.5; opacity: 1; }
  .route__rail { top: 104px; }
  .rail { width: 8px; }
  .rail__base { stroke-width: 8; }
  .sec__grid { grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
  .sec__post { position: static; justify-content: flex-start; }
  .post { width: 40px; height: 46px; font-size: 15px; border-radius: 6px; }
  .post b { font-size: 12px; letter-spacing: .04em; margin-bottom: 2px; }
  .post::before { width: 6px; height: 6px; top: -6px; }

  .signs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .signs__item { grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 14px; }
  .signs__item p { max-width: none; }
  .sign--warn { width: 76px; height: 76px; margin: 14px; box-shadow: inset 0 0 0 6px var(--gold), inset 0 0 0 8px var(--asphalt-900), var(--shadow); }
  .sign--reg { min-width: 104px; height: 78px; padding: 0 12px; }
  .sign--stop { width: 100px; height: 100px; border-width: 9px; }
  .sign__big { font-size: 27px; }
  .sign__big--sm { font-size: 19px; }

  .axis { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .axis__icon { width: 56px; height: 56px; border-radius: 10px; }
  .axis__icon svg { width: 30px; height: 30px; }

  .dest__list { grid-template-columns: minmax(0, 1fr); }
  .dest__list li:nth-child(odd) { border-right: 0; }
  .dest__list li:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, .18); }
  .dest__list li { padding: 14px 18px 14px 44px; }
  .dest__list li::before { left: 18px; top: 22px; }

  .stages { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stage { padding: 20px 18px; }
  .stage--soon { padding: 14px 18px; grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: column; justify-items: start; text-align: left; align-items: center; }
  .stage--open .btn { width: 100%; justify-self: stretch; }
  .aid { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
  .aid__mark, .aid__mark svg { width: 48px; height: 48px; }
  .steps { gap: 32px; }
  .steps::before { left: 22px; top: 30px; bottom: 30px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .step__lamp { width: 48px; height: 48px; font-size: 20px; }
  .step .btn { width: 100%; }

  .destsign { grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
  .destsign__row .btn { width: 100%; white-space: normal; text-align: center; padding-inline: 18px; }
  .destsign__panel { padding: 24px 20px; }

  .plate { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 24px; }
  .plate__group--org img { width: min(100%, 240px); }
  .plate__logos img:last-child { width: min(100%, 220px); }
}
@media (max-width: 340px) {
  .signs__item { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Movimiento reducido
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road__dash, .cr--dash { animation: none; }
  .road__layer { transform: none !important; }
  .btn, .ico--btn, .axis__icon { transition: none; }
}
