/* ============================================================
   Nube LaOtraRed — landing · "La topografía de la red"
   Cartografía geodésica: papel de plano con retícula, tinta,
   un solo naranja de señal. Archivo + Spline Sans Mono.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/spline-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/spline-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- tokens -------------------------------------------------- */
:root {
  --paper: #f5f1e8;
  --paper-2: #ece7da;
  --ink: #1a1d22;
  --ink-2: #34383f;
  --text: #262a30;
  --muted: #5a5e66;
  --line: rgba(26, 29, 34, 0.16);
  --line-strong: rgba(26, 29, 34, 0.34);
  --accent: #c2410c;
  --accent-deep: #9a3308;
  --accent-light: #e2804e;
  --accent-tint: #f6e4d4;
  --dark: #16191d;
  --dark-2: #1e2228;
  --paper-soft: rgba(245, 241, 232, 0.85);
  --paper-dim: rgba(245, 241, 232, 0.62);
  --paper-faint: rgba(245, 241, 232, 0.45);
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* --- base ---------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(26, 29, 34, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 29, 34, 0.04) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; }
img { max-width: 100%; }
a { color: inherit; }
[id] { scroll-margin-top: 5.5rem; }

::selection { background: var(--accent); color: #fff; }

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(1160px, calc(100% - clamp(2.5rem, 6vw, 3rem)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus-visible { left: 1rem; top: 1rem; outline-offset: 2px; }

/* --- buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, transform 0.18s ease-out;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }

.btn-ghost--light { border-color: rgba(245, 241, 232, 0.65); color: var(--paper); }
.btn-ghost--light:hover { background: rgba(245, 241, 232, 0.12); border-color: var(--paper); }

.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.04rem; }
.btn-xl { padding: 1.15rem 2.3rem; font-size: 1.08rem; }

/* --- header --------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); }
.brand-plate {
  width: 2.5rem; height: 2.5rem;
  background: var(--ink);
  padding: 0.3rem;
  display: grid; place-items: center;
  border-radius: 2px;
  flex: none;
}
.brand-plate img { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.22rem; }

.head-nav { display: flex; align-items: center; gap: 1.6rem; }
.head-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.head-link:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* --- hero ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: max(600px, 90svh);
  display: flex;
  flex-direction: column;
  color: var(--paper);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--dark); }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(115% 95% at 82% 88%, rgba(224, 156, 80, 0.16) 0%, rgba(224, 156, 80, 0.05) 48%, transparent 62%),
    linear-gradient(100deg, rgba(26, 17, 9, 0.66) 0%, rgba(26, 17, 9, 0.44) 40%, rgba(26, 17, 9, 0.08) 72%, rgba(26, 17, 9, 0.22) 100%);
}
.hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contour-grid line { stroke: rgba(245, 241, 232, 0.09); stroke-width: 1; }
.contour-lines path {
  fill: none;
  stroke: rgba(245, 241, 232, 0.5);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards;
}
.contour-ticks path { fill: none; stroke: rgba(245, 241, 232, 0.55); stroke-width: 1.5; }
@keyframes trace { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 9vh, 5rem) 2.5rem;
}
.hero-stamp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.75);
  margin-bottom: 1.5rem;
}
.hero-stamp::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 640px;
  margin-bottom: 1.4rem;
}
.hero-lede {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--paper-soft);
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-legend {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(245, 241, 232, 0.35);
  background: rgba(10, 12, 15, 0.68);
  padding-block: 1rem 1.1rem;
}
.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  color: rgba(245, 241, 232, 0.92);
}
.legend-coords { color: rgba(245, 241, 232, 0.62); }

/* --- sections ------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid var(--line); }

.section-h {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ¿Qué es? */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.prose p { max-width: 66ch; }
.prose p + p { margin-top: 1.15rem; }

.ficha {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  position: relative;
}
.ficha::before,
.ficha::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--accent);
}
.ficha::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.ficha::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.ficha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.ficha-head::after { content: ""; width: 7px; height: 7px; background: var(--accent); }
.ficha-head dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ficha-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.2rem;
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.ficha-row:last-child { border-bottom: 0; }
.ficha-row dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}
.ficha-row dd { font-size: 0.98rem; line-height: 1.5; }

/* Cómo funciona — registro */
.registry {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.registry-item {
  padding: 1.75rem 1.75rem 2.1rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.registry-no { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--accent); }
.registry-h { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; margin: 0.6rem 0 0.65rem; }
.registry-p { font-size: 0.96rem; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }

/* placa de las 5 regiones */
.map-plate {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  position: relative;
}
.map-plate::before,
.map-plate::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 0 solid var(--accent);
}
.map-plate::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.map-plate::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.map-plate svg { display: block; width: 100%; height: auto; }
.map-links { stroke: rgba(245, 241, 232, 0.32); }
.map-haul { stroke-dasharray: 4 6; opacity: 0.75; }
.map-nodes circle { stroke: var(--accent); stroke-width: 1.5; }
.map-nodes circle:first-child { fill: rgba(245, 241, 232, 0.07); }
.map-nodes circle:last-child { fill: var(--accent); stroke: none; }
.map-node-sc { stroke-width: 2.5; }
.map-node-label { fill: rgba(245, 241, 232, 0.78); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; }
.map-title { fill: rgba(245, 241, 232, 0.6); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; }
.map-legend { fill: rgba(245, 241, 232, 0.6); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; }
.map-plate figcaption {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
}

/* Registro de rutas — AS199343 (5 regiones) */
.mp2-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(245, 241, 232, 0.16); margin-bottom: 1.15rem; }
.mp2-asn { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.14em; color: rgba(245, 241, 232, 0.9); }
.mp2-head-right { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245, 241, 232, 0.5); text-align: right; }
.mp2-status { display: block; margin-top: 0.3rem; font-size: 0.66rem; letter-spacing: 0.16em; color: var(--accent-light); }
.mp2-spine { display: block; width: 100%; height: auto; margin-bottom: 1.1rem; }
.mp2-bracket { fill: none; }
.mp2-bracket-label { fill: rgba(245, 241, 232, 0.45); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; }
.mp2-haul { stroke-dasharray: 4 6; }
.mp2-core { fill: var(--accent); stroke: none; }
.mp2-ring-hybrid { fill: none; }
.mp2-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(245, 241, 232, 0.14); }
.mp2-row { display: grid; grid-template-columns: 1.5rem minmax(0, 11rem) minmax(0, 1fr) auto auto; align-items: center; gap: 0.4rem 1rem; padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(245, 241, 232, 0.14); }
.mp2-dot { position: relative; width: 9px; height: 9px; border: 1.5px solid var(--accent); border-radius: 50%; }
.mp2-dot::after { content: ""; position: absolute; inset: 2.75px; border-radius: 50%; background: var(--accent); }
.mp2-dot-hybrid { width: 10px; height: 10px; }
.mp2-dot-hybrid::before { content: ""; position: absolute; inset: 1.5px; border: 1.5px solid var(--accent); border-radius: 50%; }
.mp2-dot-hybrid::after { inset: 3.25px; }
.mp2-code { font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.04em; color: rgba(245, 241, 232, 0.85); }
.mp2-place { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 241, 232, 0.5); }
.mp2-chip { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 241, 232, 0.78); border: 1px solid rgba(245, 241, 232, 0.34); padding: 0.28rem 0.55rem; white-space: nowrap; }
.mp2-chip-hybrid { border-color: var(--accent-light); color: var(--accent-light); }
.mp2-note { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 241, 232, 0.4); }
@media (max-width: 640px) {
  .mp2-row { grid-template-columns: 1.5rem minmax(0, 1fr) auto; row-gap: 0.4rem; }
  .mp2-place { grid-column: 2 / 4; }
  .mp2-note { display: none; }
}

/* Para quién — placas */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.plate {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}
.plate-media img { display: block; width: 100%; height: auto; }
.plate-body { padding: 1.6rem 1.6rem 1.7rem; }
.plate-h { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.plate-body p { font-size: 0.97rem; line-height: 1.62; color: var(--ink-2); margin-bottom: 1.25rem; }
.plate-cap {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* El panel — banda oscura */
.panel-band {
  background: var(--dark);
  color: var(--paper);
  padding-block: clamp(4.5rem, 9vw, 7rem);
}
.section-h-light { color: var(--paper); }
.panel-band .estacion {
  display: grid;
  gap: 1.6rem;
}
.panel-band .estacion-stage {
  display: block;
  max-width: 1024px;
}
.panel-band .estacion-stage img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(245, 241, 232, 0.25);
}
.panel-band .estacion-stage .est-img {
  display: none;
}
.panel-band #est-dash:checked ~ .wrap .estacion-stage .est-img-dash,
.panel-band #est-inst:checked ~ .wrap .estacion-stage .est-img-inst,
.panel-band #est-create:checked ~ .wrap .estacion-stage .est-img-create {
  display: block;
}
.panel-band .estacion-idx {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.panel-band .estacion-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(245, 241, 232, 0.45);
  border: 1px solid rgba(245, 241, 232, 0.18);
  cursor: pointer;
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.panel-band .estacion-tab::before {
  content: "";
  width: 6px;
  height: 6px;
  background: transparent;
  transition: background 0.18s ease-out;
}
.panel-band .estacion-tab:hover {
  color: rgba(245, 241, 232, 0.85);
}
.panel-band #est-dash:checked ~ .wrap .estacion-tab[for="est-dash"],
.panel-band #est-inst:checked ~ .wrap .estacion-tab[for="est-inst"],
.panel-band #est-create:checked ~ .wrap .estacion-tab[for="est-create"] {
  color: var(--paper);
  border-color: rgba(245, 241, 232, 0.4);
}
.panel-band #est-dash:checked ~ .wrap .estacion-tab[for="est-dash"]::before,
.panel-band #est-inst:checked ~ .wrap .estacion-tab[for="est-inst"]::before,
.panel-band #est-create:checked ~ .wrap .estacion-tab[for="est-create"]::before {
  background: var(--accent);
}
.panel-band .estacion-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.panel-band #est-dash:focus-visible ~ .wrap .estacion-tab[for="est-dash"],
.panel-band #est-inst:focus-visible ~ .wrap .estacion-tab[for="est-inst"],
.panel-band #est-create:focus-visible ~ .wrap .estacion-tab[for="est-create"] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.panel-band .estacion-lb .est-img {
  display: none;
}
.panel-band #est-dash:checked ~ .estacion-lb .est-img-dash,
.panel-band #est-inst:checked ~ .estacion-lb .est-img-inst,
.panel-band #est-create:checked ~ .estacion-lb .est-img-create {
  display: block;
}
.panel-band .estacion-lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 15, 0.94);
  padding: clamp(1rem, 4vw, 2.5rem);
}
.panel-band .estacion-lb:target {
  display: flex;
}
.panel-band .estacion-lb-fig {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}
.panel-band .estacion-lb img {
  display: block;
  width: auto;
  max-width: min(92vw, 1024px);
  max-height: 80vh;
  border: 1px solid rgba(245, 241, 232, 0.3);
}
.panel-band .estacion-lb-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 232, 0.85);
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(245, 241, 232, 0.3);
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.panel-band .estacion-lb-close:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* Cómo empezar — trayecto */
.traverse {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.traverse::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 4%;
  right: 4%;
  border-top: 1px dashed var(--line-strong);
}
.station { position: relative; }
.station-no {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.station-h { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; margin: 1.15rem 0 0.6rem; }
.station-p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }
.station-p a { color: var(--accent); font-weight: 600; }
.station-p a:hover { color: var(--accent-deep); }

.decision { display: flex; gap: 1rem; flex-wrap: wrap; }

/* cierre */
.close {
  padding-block: clamp(5.5rem, 11vw, 8.5rem);
  text-align: center;
  border-top: 1px solid var(--line);
}
.close-h {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}
.close-p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 auto 2.5rem;
}
.close-ref {
  margin-top: 2.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* pie */
.site-foot { background: var(--dark); color: var(--paper); padding-block: 3.5rem 2.75rem; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.foot-brand { display: flex; gap: 1.1rem; align-items: flex-start; }
.foot-plate {
  flex: none;
  width: 56px; height: 56px;
  background: var(--dark-2);
  border: 1px solid rgba(245, 241, 232, 0.18);
  padding: 5px;
}
.foot-plate img { width: 100%; height: 100%; display: block; }
.foot-name { font-size: 0.98rem; line-height: 1.55; color: rgba(245, 241, 232, 0.72); max-width: 40ch; }
.foot-name a { color: var(--paper); }
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.foot-links a { color: rgba(245, 241, 232, 0.82); width: max-content; }
.foot-links a:hover, .foot-name a:hover { color: var(--accent-light); }
.foot-credit { font-size: 0.74rem; letter-spacing: 0.09em; color: rgba(245, 241, 232, 0.55); line-height: 1.7; }
.foot-credit a { color: rgba(245, 241, 232, 0.7); }
.foot-credit a:hover { color: var(--accent-light); }

/* instrumento de campo */
.instrument {
  position: fixed;
  top: 6.5rem;
  right: clamp(1rem, 2vw, 1.75rem);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  pointer-events: none;
}
.instrument.on { opacity: 1; transform: none; }
.instrument-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.instrument-label::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.instrument-rail { width: 2px; height: 72px; background: var(--line-strong); position: relative; overflow: hidden; }
.instrument-fill {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  background: var(--accent);
  transition: transform 0.35s ease-out;
}

/* --- responsive ---------------------------------------------- */
@media (max-width: 1024px) {
  .instrument { display: none; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .registry { grid-template-columns: 1fr; }

  .traverse { grid-template-columns: 1fr; gap: 2.7rem; }
  .traverse::before { display: none; }
  .station { padding-left: 4.4rem; }
  .station-no { position: absolute; left: 0; top: 0; }
  .station::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 2.7rem;
    bottom: -2.7rem;
    border-left: 1px dashed var(--line-strong);
  }
  .station:last-child::before { display: none; }
  .station-h { margin-top: 0.25rem; }

  .audience-grid { grid-template-columns: 1fr; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-credit { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .head-grid { min-height: 3.9rem; gap: 0.75rem; }
  .brand { gap: 0.6rem; }
  .head-nav { gap: 0.75rem; }
  .head-nav .btn { padding: 0.75rem 1.05rem; font-size: 0.9rem; }
  .head-link { display: none; }
  .brand-sub { display: none; }
  .hero { min-height: max(540px, 84svh); }
  .hero-actions .btn { flex: 1 1 auto; }
  .legend-coords { display: none; }
  .registry-item { padding: 1.45rem 1.25rem 1.75rem; }
  .ficha-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-credit { grid-column: auto; }
}

/* --- reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contour-lines path { animation: none; stroke-dashoffset: 0; }
  .btn, .btn:active, .instrument, .instrument-fill, .instrument-label { transition: none; transform: none; }
  .estacion-tab, .estacion-tab::before, .estacion-lb-close { transition: none; }
}
