/* ============================================================================
   NERA CHILE — Central de despacho 24/7
   Sistema visual: negro de carretera, rojo de despacho, amarillo de señalética.
   ---------------------------------------------------------------------------
   01 Tokens y derivadas      06 Marca / cabecera / barra de despacho
   02 Reset y base            07 Hero
   03 Utilidades              08 Secciones
   04 Tipografía              09 Detalle de servicio / interiores
   05 Movimiento              10 Pie, responsive y accesibilidad
   ========================================================================== */

/* 01 — Tokens y derivadas -------------------------------------------------- */
:root {
  --bg: var(--ink, #000000);
  --bg-2: var(--carbon, #0a0a0a);
  --surface: var(--panel, #111111);
  --surface-2: var(--panel-2, #181818);
  --edge: var(--line, #2a2a2a);
  --red-c: var(--red, #f50f13);
  --red-d: var(--red-deep, #bd141e);
  --yellow-c: var(--yellow, #ffe200);
  --steel-c: var(--steel, #474747);
  --muted-c: var(--muted, #72777e);
  --fg: var(--text, #f2f2f2);
  --fg-dim: var(--text-dim, #a9aeb5);

  --font-display: 'Chakra Petch', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-text: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --header-h: 76px;
  --bar-h: 76px;
  --radius: 0;
  --hazard: repeating-linear-gradient(135deg, var(--red-c) 0 18px, var(--yellow-c) 18px 36px);
}

/* 02 — Reset y base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.06rem);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--yellow-c); color: #000; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; }

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

/* 03 — Utilidades ---------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--yellow-c);
  color: #000;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

.mono { font-family: var(--font-mono); }

/* 04 — Tipografía ---------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow-c);
}
.eyebrow--light { color: var(--yellow-c); }

.eyebrow-code {
  display: inline-block;
  padding: 0.15em 0.5em;
  background: var(--red-c);
  color: #fff;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  margin-right: 0.2rem;
}

.section-head { margin-bottom: clamp(1.75rem, 3.5vw, 3rem); max-width: 62ch; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.85rem);
  margin-bottom: 0.7rem;
}
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end;
  max-width: none;
}
.section-lead {
  color: var(--fg-dim);
  margin: 0;
  max-width: 54ch;
  font-size: 1rem;
}

.block-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  margin: 2.2rem 0 0.5rem;
}
.block-title span { color: var(--red-c); }

.prose { color: var(--fg-dim); max-width: 68ch; }
.prose p { margin: 0 0 1.05em; }
.prose strong { color: var(--fg); }
.prose a { color: var(--yellow-c); }

.section-foot { margin-top: clamp(1.5rem, 2.5vw, 2.25rem); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--yellow-c);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 226, 0, 0.35);
  padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--yellow-c); }

/* Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.3rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow-c); color: #000; }
.btn-primary:hover { background: #fff; color: #000; }
.btn-emergency {
  background: var(--yellow-c);
  color: #000;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  padding: 0.8rem 1.4rem;
}
.btn-emergency:hover { background: #fff; }
.btn-ghost { border-color: var(--edge); color: var(--fg); }
.btn-ghost:hover { border-color: var(--yellow-c); color: var(--yellow-c); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.78rem; }

/* LED de estado ---------------------------------------------------------- */
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
  animation: led-pulse 2.2s ease-in-out infinite;
}
.led--on { color: var(--yellow-c); }
.led--disponible { color: var(--yellow-c); }
.led--en-ruta { color: var(--red-c); animation-duration: 1.1s; }
.led--base { color: var(--steel-c); animation: none; }
.led--alert { color: var(--red-c); animation-duration: 1.4s; }
.led--dark { color: #000; width: 6px; height: 6px; animation: none; }

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 05 — Movimiento ---------------------------------------------------------- */
@keyframes ticker-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 06 — Cabecera ------------------------------------------------------------ */
.ticker {
  background: var(--red-d);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.ticker-viewport { overflow: hidden; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  min-height: 30px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: ticker-run 70s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.9rem;
  white-space: nowrap;
}
.ticker-item a { color: #fff; text-decoration: none; }
.ticker-item a:hover { text-decoration: underline; }
.ticker-sep { opacity: 0.45; }
.ticker .led { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
  flex: 0 0 auto;
}
.brand-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand-name b { color: var(--yellow-c); font-weight: 700; }
.brand-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--yellow-c); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--yellow-c);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--edge);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.header-call:hover { border-color: var(--red-c); background: var(--surface-2); }
.header-call-text { display: flex; flex-direction: column; line-height: 1.1; }
.header-call small {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.header-call strong {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--yellow-c);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.55rem 0.8rem;
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-bars { display: grid; gap: 3px; }
.nav-bars i { display: block; width: 16px; height: 2px; background: var(--yellow-c); }

/* Barra fija de despacho ------------------------------------------------- */
.dispatch {
  position: sticky;
  bottom: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.97);
  border-top: 1px solid var(--edge);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.65);
}
.dispatch::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--hazard);
}
.dispatch-inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.dispatch-status { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.dispatch-status-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dispatch-status-text strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dispatch-status-text span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.dispatch-call {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-left: auto;
  padding: 0.6rem 1.1rem;
  background: var(--yellow-c);
  color: #000;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color 0.16s ease;
}
.dispatch-call:hover { background: #fff; }
.dispatch-call-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dispatch-call-number {
  font-family: var(--font-mono);
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}
.dispatch-actions { display: flex; align-items: center; gap: 0.4rem; }
.dispatch-btn {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--edge);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.dispatch-btn:hover { border-color: var(--yellow-c); color: var(--yellow-c); }
.dispatch-btn--quiet { color: var(--fg-dim); }

/* 07 — Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--edge);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9px;
  background: var(--hazard);
  z-index: 2;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 85%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 62% at 78% 62%, rgba(245, 15, 19, 0.3), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(189, 20, 30, 0.16), transparent 70%);
}
.hero-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(245, 15, 19, 0.14) 0 10px, transparent 10px 26px);
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 30% 100%);
}
.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 4.25rem) clamp(1.75rem, 3.5vw, 3rem);
}
.hero-copy { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.014em !important;
}
.hero-lead {
  max-width: 50ch;
  color: var(--fg-dim);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.13rem);
  margin-bottom: clamp(1.4rem, 2.5vw, 2rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.9rem;
}
.hero-call {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 1.6rem 0.9rem 1.9rem;
  background: var(--yellow-c);
  color: #000;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.hero-call:hover { background: #fff; transform: translateY(-2px); }
.hero-call-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--red-c);
}
.hero-call-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-call-number {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.hero-call-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}
.hero-cta-alt { align-self: center; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.hero-badges li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--edge);
  background: rgba(17, 17, 17, 0.7);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.hero-unit {
  position: relative;
  margin: 0 0 0 auto;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
}
.hero-unit-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  height: auto;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.75));
}
.hero-unit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 226, 0, 0.18);
  border-radius: 50%;
}
.hero-unit-ring::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(245, 15, 19, 0.3);
  border-radius: 50%;
}
.hero-unit-tag {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: #000;
  border: 1px solid var(--red-c);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--fg);
  text-transform: uppercase;
}
.hero-unit-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 2;
}
.hero-unit-corner--tl { top: 4px; left: -6px; border-top: 2px solid var(--red-c); border-left: 2px solid var(--red-c); }
.hero-unit-corner--br { bottom: 26px; right: -6px; border-bottom: 2px solid var(--yellow-c); border-right: 2px solid var(--yellow-c); }

.hero-status {
  position: relative;
  border-top: 1px solid var(--edge);
  background: linear-gradient(90deg, rgba(245, 15, 19, 0.16), rgba(0, 0, 0, 0) 62%);
}
.hero-status-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* 08 — Secciones ----------------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(2.85rem, 5.2vw, 5.25rem);
}
.section--ink { background: var(--bg); }
.section--carbon { background: var(--bg-2); border-block: 1px solid var(--edge); }
.section--tight { padding-block: clamp(2rem, 3.5vw, 3.25rem); }

/* Franja de certificaciones ------------------------------------------------- */
.seals {
  background: var(--bg-2);
  border-bottom: 1px solid var(--edge);
  padding-block: 1.1rem;
}
.seals-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.seals-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.seals-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.seal { display: flex; align-items: center; gap: 0.6rem; }
.seal-mark { display: flex; color: var(--yellow-c); }
.seal-text { display: flex; flex-direction: column; line-height: 1.25; }
.seal-text strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.seal-text span { font-size: 0.72rem; color: var(--fg-dim); }

/* Cifras -------------------------------------------------------------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.figure {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.25rem 1.5rem;
  background: var(--bg);
  position: relative;
}
.figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow-c);
  transition: width 0.6s ease;
}
.figure.is-visible::before { width: 100%; }
.figure-value {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  color: var(--yellow-c);
  margin: 0;
}
.figure-body { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.figure-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.figure-detail { font-size: 0.82rem; line-height: 1.45; color: var(--fg-dim); }

/* Tablero de unidades ------------------------------------------------------ */
.board .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: #0c0c0c;
  border: 1px solid var(--edge);
  border-bottom: 0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.board-clock {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--yellow-c);
  margin: 0;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.unit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--surface);
  overflow: hidden;
  transition: background-color 0.2s ease;
}
.unit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(245, 15, 19, 0.07) 9px 11px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.unit:hover { background: var(--surface-2); }
.unit:hover::after { opacity: 1; }
.unit-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.unit-code { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--red-c); }
.unit-led {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.unit-type {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.15 !important;
  color: #fff;
}
.unit-detail { font-size: 0.82rem; color: var(--fg-dim); line-height: 1.4; }
.unit-base {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted-c);
}
.board-note {
  margin: 1.15rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted-c);
  text-transform: uppercase;
}

/* Servicios ---------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.3rem 1.15rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.2s ease;
}
.svc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 226, 0, 0.11), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.svc-card:hover { background: var(--surface-2); }
.svc-card:hover::after { left: 130%; }
.svc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.svc-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--yellow-c);
}
.svc-unit {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-c);
  text-align: right;
}
.svc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  line-height: 1.1;
  color: #fff;
  margin-top: 0.15rem;
}
.svc-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.svc-excerpt { font-size: 0.87rem; line-height: 1.5; color: var(--fg-dim); }
.svc-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--edge);
}
.svc-eta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-c);
}
.svc-eta-detail { font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted-c); }
.svc-go {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--fg-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}
.svc-card:hover .svc-go { transform: translateX(4px); color: var(--yellow-c); }
.service-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-card--compact { min-height: 148px; }

/* Banda de operación (full-bleed) ------------------------------------------ */
.op-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 9vw, 8.5rem);
  background: #000;
  border-block: 1px solid var(--edge);
}
.op-band-media { position: absolute; inset: 0; z-index: -3; }
.op-band-media picture,
.op-band-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.04) brightness(0.66);
}
.op-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.66) 46%, rgba(0, 0, 0, 0.22) 100%);
}
.op-band-grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.op-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.op-band-title {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.98;
  max-width: 18ch;
  margin-bottom: 1rem;
}
.op-band-text { max-width: 48ch; color: #d9d9d9; }
.op-band-specs {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.op-band-specs > div { padding: 0.85rem 1rem; background: rgba(0, 0, 0, 0.74); }
.op-band-specs dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.op-band-specs dd { margin: 0.3rem 0 0; font-size: 0.95rem; color: #fff; }
.op-band-cut {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--hazard);
  opacity: 0.9;
}

/* Cobertura ---------------------------------------------------------------- */
.cov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.base-list { list-style: none; margin: 0; padding: 0; }
.base {
  position: relative;
  margin-left: 3.4rem;
  padding: 1.15rem 0 1.15rem 1.7rem;
  border-left: 1px solid var(--edge);
  transition: border-color 0.25s ease;
}
.base:hover { border-color: var(--red-c); }
.base-code {
  position: absolute;
  left: -3.4rem;
  top: 1.15rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted-c);
}
.base-node {
  position: absolute;
  left: -5px;
  top: 1.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-c);
  box-shadow: 0 0 0 4px rgba(245, 15, 19, 0.14);
}
.base-body { display: flex; flex-direction: column; gap: 0.25rem; }
.base-city {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: #fff;
  line-height: 1.1;
}
.base-region {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow-c);
}
.base-detail { font-size: 0.86rem; color: var(--fg-dim); }

.cov-zones {
  display: grid;
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  align-content: start;
}
.zone {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.25rem;
  background: var(--surface);
}
.zone-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.zone-detail { font-size: 0.85rem; color: var(--fg-dim); }
.cov-note {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--red-c);
  font-size: 0.82rem;
  color: var(--muted-c);
  max-width: 78ch;
}

/* Protocolo / pasos -------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--edge);
}
.steps li:first-child { border-top: 1px solid var(--edge); }
.step-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--red-c);
}
.steps strong { font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.steps p { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--fg-dim); max-width: 62ch; }
.steps--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.steps--grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.4rem 1.3rem;
  background: var(--surface);
  border: 0;
}
.steps--grid li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--yellow-c);
  transition: width 0.55s ease;
}
.steps--grid li.is-visible::before { width: 100%; }
.steps--grid p { font-size: 0.85rem; }

/* Historia ----------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: start;
}
.story-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); margin-bottom: 1rem; }
.story-figure {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--edge);
  padding: 0.6rem;
}
.story-figure picture,
.story-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.05) brightness(0.94);
}
.story-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted-c);
  padding: 0.6rem 0.2rem 0.1rem;
  text-transform: uppercase;
}
.story-frame {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 46px;
  height: 46px;
  border-top: 2px solid var(--red-c);
  border-right: 2px solid var(--red-c);
  z-index: 2;
}
.story-quote {
  margin: 1.35rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border-left: 3px solid var(--yellow-c);
}
.story-quote p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}
.story-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}

/* Flota -------------------------------------------------------------------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.fleet-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
}
.fleet-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.24) contrast(1.05) brightness(0.96);
}
.fleet-media--unit {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 0.75rem 1.25rem;
  background: radial-gradient(70% 90% at 50% 100%, #1b1b1b, #0a0a0a 70%);
  border-bottom: 1px solid var(--edge);
}
.fleet-media--unit img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7));
}
.fleet-media--blank {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  aspect-ratio: 16 / 9;
  padding: 1.1rem 1.2rem;
  background:
    repeating-linear-gradient(135deg, rgba(255, 226, 0, 0.05) 0 10px, transparent 10px 26px),
    linear-gradient(150deg, #141414, #0b0b0b);
  border-bottom: 1px solid var(--edge);
}
.fleet-blank-code {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--steel-c);
  letter-spacing: 0.1em;
}
.fleet-blank-note {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.fleet-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.35rem 1.35rem 1.5rem; }
.fleet-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.fleet-code { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--yellow-c); }
.fleet-uso {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-c);
  text-align: right;
}
.fleet-body h3 { font-size: 1.18rem; }
.fleet-body p { margin: 0; font-size: 0.87rem; color: var(--fg-dim); }

/* FAQ ---------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.faq-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.faq-item { border-bottom: 1px solid var(--edge); }
.faq-item:first-child { border-top: 1px solid var(--edge); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { max-width: 56ch; }
.faq-icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 0.25rem; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--yellow-c);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-item[open] summary { color: var(--yellow-c); }
.faq-a { margin: 0; padding: 0 0 1.15rem; color: var(--fg-dim); max-width: 70ch; font-size: 0.92rem; }

/* Banda CTA ---------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5.5vw, 4.75rem);
  background:
    linear-gradient(115deg, rgba(189, 20, 30, 0.5) 0%, rgba(0, 0, 0, 0) 52%),
    var(--bg-2);
  border-top: 1px solid var(--edge);
}
.cta-band-band {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(38vw, 520px);
  background: var(--hazard);
  opacity: 0.14;
  clip-path: polygon(0 0, 100% 0, 58% 100%, 0 100%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin-bottom: 0.6rem; }
.cta-band p { color: var(--fg-dim); max-width: 52ch; }
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.cta-phone {
  display: block;
  padding: 0.85rem 1.5rem;
  background: var(--yellow-c);
  color: #000;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background-color 0.16s ease;
}
.cta-phone:hover { background: #fff; }
.cta-phone-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cta-phone-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
}
.cta-phone-alt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-c);
  text-decoration: none;
}
.cta-phone-alt:hover { color: var(--yellow-c); }
.cta-band--inline { margin-top: clamp(2rem, 4vw, 3.5rem); border: 1px solid var(--edge); padding: 1.75rem; }

/* 09 — Interiores ---------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2.25rem, 5vw, 4rem);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(189, 20, 30, 0.22), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--edge);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(100% 90% at 20% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(100% 90% at 20% 0%, #000 20%, transparent 80%);
  pointer-events: none;
}
.page-head-route {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--hazard);
  z-index: 2;
}
.page-head > .wrap { position: relative; z-index: 1; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--red-c); }
.crumbs a { color: var(--muted-c); text-decoration: none; }
.crumbs a:hover { color: var(--yellow-c); }
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.page-head-copy h1 {
  font-size: clamp(1.95rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  margin-bottom: 1rem;
  max-width: 20ch;
}
.page-head .lead {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  color: var(--fg-dim);
  max-width: 58ch;
  margin: 0;
}
.page-head-aside {
  padding-left: clamp(0rem, 2vw, 1.75rem);
  border-left: 1px solid var(--edge);
}
.page-head-aside .k {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.page-head-aside .v {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  color: var(--yellow-c);
}
.page-head-aside .hint { margin-top: 0.55rem; }
.page-head-aside--call .v { display: block; }
.page-head-aside .btn { margin-top: 0.9rem; }
.hint { font-size: 0.78rem; color: var(--muted-c); margin: 0.5rem 0 0; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.two-col h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.text-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.panel-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--edge);
}
.panel-card + .panel-card { margin-top: 1rem; }
.panel-title {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.panel-title span { color: var(--red-c); }
.panel-note { margin: 0.85rem 0 0; font-size: 0.76rem; line-height: 1.5; color: var(--muted-c); }
.panel-note a { color: var(--yellow-c); }

.spec-list { margin: 0; display: grid; }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--edge);
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.spec-list dd { margin: 0; font-size: 0.86rem; text-align: right; color: var(--fg); }
.spec-list dd a { color: var(--yellow-c); text-decoration: none; }
.spec-list dd a:hover { text-decoration: underline; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
  text-decoration: none;
}
.link-list a::before { content: "→"; color: var(--red-c); }
.link-list a:hover { color: var(--yellow-c); }

/* Detalle de servicio ------------------------------------------------------ */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.detail-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.detail-figure { margin: 1.75rem 0 0; }
.detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.15) contrast(1.05);
  border: 1px solid var(--edge);
}
.detail-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.5rem; }
.detail-gallery img { width: 100%; height: auto; object-fit: cover; border: 1px solid var(--edge); }

.check-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--fg-dim);
}
.check {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.22rem;
  border: 1px solid var(--red-c);
}
.check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--yellow-c);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0.6rem 0 0; padding: 0; }
.chip {
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Lista bitácora ----------------------------------------------------------- */
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--edge);
}
.log-list li:last-child { border-bottom: 1px solid var(--edge); }
.log-index { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--red-c); }
.log-list strong { font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.log-list p { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--fg-dim); max-width: 72ch; }

/* Aviso -------------------------------------------------------------------- */
.alert {
  position: relative;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--edge);
  overflow: hidden;
}
.alert-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red-c); }
.alert-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.35rem 1.5rem 1.35rem 1.75rem;
}
.alert-title { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.alert-body p { margin: 0; color: var(--fg-dim); font-size: 0.9rem; max-width: 72ch; }
.alert ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--fg-dim); font-size: 0.88rem; }
.alert--error { border-color: var(--red-c); }

/* Contacto ----------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-form-col h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
.contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.contact-aside .panel-card + .panel-card { margin-top: 0; }
.contact-phone {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  color: var(--yellow-c);
  text-decoration: none;
}
.contact-phone:hover { color: #fff; }
.panel-card--call { border-top: 2px solid var(--red-c); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: #0c0c0c;
  border: 1px solid var(--edge);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow-c);
  box-shadow: 0 0 0 1px var(--yellow-c);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form select { appearance: none; background-image: none; }
.contact-form .hint { margin: 0.15rem 0 0; }
.req { color: var(--red-c); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--fg-dim);
}
.contact-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--yellow-c);
}
.consent a { color: var(--yellow-c); }
.form-actions { margin-top: 1.25rem; }
.form-note {
  margin: 0.8rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Búsqueda ----------------------------------------------------------------- */
.search-form { display: flex; gap: 0.6rem; margin-top: 1.5rem; max-width: 640px; }
.search-form input {
  flex: 1 1 auto;
  padding: 0.8rem 0.95rem;
  background: #0c0c0c;
  border: 1px solid var(--edge);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 1rem;
  border-radius: 0;
}
.search-form input:focus { outline: none; border-color: var(--yellow-c); }
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.result-list a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}
.result-list a:hover { background: var(--surface-2); }
.result-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: #fff; }
.result-excerpt { font-size: 0.85rem; color: var(--fg-dim); }

/* Hero de gracias ---------------------------------------------------------- */
.hero-callbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-callbar--inline { margin-top: 1.75rem; }
.hero-callbar-note { font-size: 0.8rem; color: var(--muted-c); max-width: 44ch; }

/* 10 — Pie, rail, responsive ----------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--edge);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
}
.footer-route {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  display: flex;
}
.footer-route span { flex: 1; background: var(--red-c); opacity: 0.85; }
.footer-route span:nth-child(even) { background: var(--yellow-c); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer-seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 1rem;
}
.footer-claim {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.6rem;
}
.footer-note { font-size: 0.85rem; color: var(--fg-dim); max-width: 36ch; margin: 0; }
.footer-title {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-c);
}
.footer-title span { color: var(--red-c); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--fg-dim); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--yellow-c); }
.footer-desk li { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-desk .k {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.footer-desk .v { font-size: 0.88rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--edge);
  font-size: 0.75rem;
  color: var(--muted-c);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { color: var(--muted-c); text-decoration: none; }
.footer-legal a:hover { color: var(--yellow-c); }

/* Rail de ruta (progreso de lectura) --------------------------------------- */
.rail {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 38vh;
  z-index: 30;
  display: none;
}
.rail-track {
  position: absolute;
  inset: 0;
  width: 1px;
  margin-left: 1px;
  background: var(--edge);
}
.rail-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--red-c), var(--yellow-c));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.15s linear;
}
.rail-mark {
  position: absolute;
  left: -4px;
  width: 9px;
  height: 1px;
  background: var(--steel-c);
}
.rail-mark--a { top: 20%; }
.rail-mark--b { top: 50%; }
.rail-mark--c { top: 80%; }

.rail-progress[data-progress="1"] { transform: scaleY(0.1); }
.rail-progress[data-progress="2"] { transform: scaleY(0.2); }
.rail-progress[data-progress="3"] { transform: scaleY(0.3); }
.rail-progress[data-progress="4"] { transform: scaleY(0.4); }
.rail-progress[data-progress="5"] { transform: scaleY(0.5); }
.rail-progress[data-progress="6"] { transform: scaleY(0.6); }
.rail-progress[data-progress="7"] { transform: scaleY(0.7); }
.rail-progress[data-progress="8"] { transform: scaleY(0.8); }
.rail-progress[data-progress="9"] { transform: scaleY(0.9); }
.rail-progress[data-progress="10"] { transform: scaleY(1); }

@media (min-width: 1240px) {
  .rail { display: block; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav a { padding-inline: 0.55rem; font-size: 0.76rem; }
  .header-call { display: none; }
}

@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-unit { order: 2; justify-content: flex-start; margin: 0; width: 100%; }
  .hero-unit-img { max-width: 520px; }
  .hero-copy { order: 1; }
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid,
  .cov-grid,
  .faq-grid,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .text-aside { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .page-head-grid { grid-template-columns: 1fr; align-items: start; }
  .page-head-aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--edge); padding-top: 1rem; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .op-band-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-status-text strong { font-size: 0.74rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; --bar-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: #000;
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.25rem; font-size: 0.86rem; border-bottom: 1px solid var(--edge); }
  .nav a[aria-current="page"]::after { display: none; }
  .header-inner { position: relative; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .dispatch-inner { min-height: var(--bar-h); gap: 0.6rem; }
  .dispatch-status { display: none; }
  .dispatch-call { margin-left: 0; flex: 1 1 auto; justify-content: center; }
  .dispatch-actions { gap: 0.35rem; }
  .dispatch-btn--quiet { display: none; }
  .cta-inner { align-items: flex-start; }
}

@media (max-width: 620px) {
  .service-grid,
  .service-grid--compact,
  .unit-grid,
  .steps--grid,
  .figures { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-call { width: 100%; }
  .hero-badges { margin-top: 1.1rem; }
  .hero-unit-ring { display: none; }
  .hero-unit-corner { display: none; }
  .brand-sub { display: none; }
  .brand-seal { width: 44px; height: 44px; }
  .brand-name { font-size: 1.05rem; }
  .seals-inner { gap: 0.75rem; }
  .seals-label { width: 100%; }
  .base { margin-left: 2.9rem; }
  .base-code { left: -2.9rem; }
  .log-list li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; }
  .steps li { grid-template-columns: 1fr; gap: 0.35rem; }
  .search-form { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-phone { width: 100%; }
  .cta-actions { width: 100%; }
  .board-clock { display: none; }
}

/* Accesibilidad ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .steps--grid li::before,
  .figure::before { width: 100%; }
  .ticker-track { animation: none; }
  .led { opacity: 1; }
}

@media (prefers-contrast: more) {
  :root {
    --fg-dim: #d5d7da;
    --muted-c: #a9aeb5;
    --edge: #4a4a4a;
  }
}

/* ==========================================================================
   11 — Gráfica propia: mapa de ruta y tablero de unidades
   ========================================================================== */
.mapa {
  position: relative;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 3.5vw, 3rem);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(189, 20, 30, 0.14), transparent 62%),
    linear-gradient(160deg, #0d0d0d, #050505 64%);
  border: 1px solid var(--edge);
}
.mapa::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--hazard);
  z-index: 2;
}
.mapa-wide,
.mapa-narrow { padding: clamp(0.6rem, 1.4vw, 1rem); }
.mapa-narrow { display: none; }
.mapa-svg { display: block; width: 100%; height: auto; color: #d3d6da; }
.mapa-reticula { fill: none; stroke: currentColor; stroke-opacity: 0.07; stroke-width: 1; }
.mapa-kicker {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  fill: #fff;
  letter-spacing: 0.02em;
}
.mapa-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--yellow-c);
  letter-spacing: 0.12em;
}
.mapa-meta--end { fill: var(--muted-c); }
.mapa-via-calzada {
  fill: none;
  stroke: #383838;
  stroke-width: 18;
  stroke-linecap: round;
}
.mapa-via-eje {
  fill: none;
  stroke: var(--yellow-c);
  stroke-width: 1.6;
  stroke-dasharray: 10 8;
  stroke-opacity: 0.72;
}
.mapa-nodo-halo {
  fill: none;
  stroke: var(--red-c);
  stroke-width: 1.2;
  stroke-opacity: 0.4;
}
.mapa-nodo-punto { fill: var(--yellow-c); }
.mapa-nodo--central .mapa-nodo-punto { fill: var(--red-c); }
.mapa-nodo--central .mapa-nodo-halo {
  stroke: var(--red-c);
  stroke-opacity: 0.75;
  animation: led-pulse 1.9s ease-in-out infinite;
}
.mapa-ciudad {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  fill: #fff;
  letter-spacing: 0.01em;
}
.mapa-region {
  font-family: var(--font-mono);
  font-size: 11.5px;
  fill: var(--yellow-c);
  letter-spacing: 0.1em;
}
.mapa-codigo {
  font-family: var(--font-mono);
  font-size: 11.5px;
  fill: var(--muted-c);
  letter-spacing: 0.14em;
}
.mapa-desvio-linea {
  fill: none;
  stroke: var(--red-c);
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
  stroke-opacity: 0.65;
}
.mapa-cordillera {
  fill: rgba(245, 15, 19, 0.14);
  stroke: var(--red-c);
  stroke-width: 1.2;
}
.mapa-desvio-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--muted-c);
  letter-spacing: 0.14em;
}
.mapa-pie-linea { stroke: var(--edge); stroke-width: 1; }
.mapa-pie-texto {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted-c);
  letter-spacing: 0.1em;
}
.mapa-pie-texto--end { fill: var(--steel-c); }

/* variante vertical (móvil) */
.mapa-narrow-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--muted-c);
  letter-spacing: 0.1em;
}
.mapa-narrow-meta--end { fill: var(--yellow-c); }
.mapa-narrow-calzada {
  fill: none;
  stroke: #383838;
  stroke-width: 6;
  stroke-linecap: round;
}
.mapa-narrow-eje {
  fill: none;
  stroke: var(--yellow-c);
  stroke-width: 1.2;
  stroke-dasharray: 7 6;
  stroke-opacity: 0.68;
}
.mapa-narrow-t {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--yellow-c);
  letter-spacing: 0.2em;
}
.mapa-ciudad--fila { font-size: 18px; }
.mapa-region--fila { font-size: 10.5px; }
.mapa-narrow-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--red-c);
  letter-spacing: 0.14em;
}
.mapa-narrow-base {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--muted-c);
  letter-spacing: 0.18em;
}
.mapa-narrow-nota {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--muted-c);
  letter-spacing: 0.06em;
}

.mapa-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(0.6rem, 1.4vw, 1rem) 0.85rem;
  border-top: 1px solid var(--edge);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-c);
}

/* Tablero de despacho ------------------------------------------------------ */
.tablero {
  position: relative;
  margin: 0 auto clamp(1.25rem, 2.5vw, 1.9rem);
  max-width: 1120px;
  background: #0b0b0b;
  border: 1px solid var(--edge);
}
.tablero-techo { height: 5px; background: var(--hazard); }
.tablero-scroll {
  overflow: hidden;
  scrollbar-width: none;
}
.tablero-scroll::-webkit-scrollbar { display: none; }
.tablero-svg { display: block; width: 100%; height: auto; }
.tablero-marco { fill: #0d0d0d; stroke: var(--edge); stroke-width: 1; }
.tablero-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  fill: #fff;
  letter-spacing: 0.02em;
}
.tablero-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--muted-c);
  letter-spacing: 0.12em;
}
.tablero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted-c);
  letter-spacing: 0.12em;
}
.tablero-meta--end { fill: var(--steel-c); }
.tablero-clock {
  font-family: var(--font-mono);
  font-size: 16px;
  fill: var(--yellow-c);
  letter-spacing: 0.14em;
}
.tablero-col {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted-c);
  letter-spacing: 0.16em;
}
.tablero-linea { stroke: var(--edge); stroke-width: 1; }
.tablero-linea--pie { stroke: var(--steel-c); }
.tablero-grid {
  stroke: var(--edge);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: 0.75;
}
.tablero-code {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--red-c);
  letter-spacing: 0.16em;
}
.tablero-tipo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  fill: #fff;
  letter-spacing: 0.01em;
}
.tablero-estado {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--fg-dim);
  letter-spacing: 0.08em;
}
.tablero-base {
  font-family: var(--font-mono);
  font-size: 11.5px;
  fill: var(--muted-c);
  letter-spacing: 0.1em;
}
.tablero-led { fill: var(--steel-c); }
.tablero-led--on { fill: var(--yellow-c); animation: led-pulse 2.2s ease-in-out infinite; }
.tablero-led--disponible { fill: var(--yellow-c); }
.tablero-led--en-ruta { fill: var(--red-c); animation: led-pulse 1.1s ease-in-out infinite; }
.tablero-led--base { fill: var(--steel-c); }
.tablero-nota {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--muted-c);
  letter-spacing: 0.1em;
}
.tablero-nota--end { fill: var(--yellow-c); letter-spacing: 0.14em; }
.tablero-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem 0.75rem;
  border-top: 1px solid var(--edge);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.tablero-resumen { display: none; color: var(--yellow-c); }
.tablero-angosto { display: none; }
.tablero-angosto-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  fill: #fff;
  letter-spacing: 0.02em;
}
.tablero-angosto-sub,
.tablero-angosto-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--muted-c);
  letter-spacing: 0.1em;
}
.tablero-angosto-clock {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--yellow-c);
  letter-spacing: 0.14em;
}
.tablero-angosto-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  fill: var(--red-c);
  letter-spacing: 0.16em;
}
.tablero-angosto-estado {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--fg-dim);
  letter-spacing: 0.06em;
}
.tablero-angosto-tipo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  fill: #fff;
}
.tablero-angosto-base {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--muted-c);
  letter-spacing: 0.1em;
}
.tablero-angosto-nota {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--muted-c);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   12 — Transiciones de página (View Transitions)
   ========================================================================== */
@view-transition { navigation: auto; }

.site-header { view-transition-name: sitio-header; }
.dispatch { view-transition-name: barra-despacho; }
.app-dock { view-transition-name: barra-app; }

::view-transition-group(sitio-header),
::view-transition-group(barra-despacho),
::view-transition-group(barra-app) {
  animation-duration: 0.42s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

::view-transition-old(root) {
  animation: nera-vt-salida 0.42s linear both;
}
::view-transition-new(root) {
  animation: nera-vt-entrada 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes nera-vt-salida {
  0%, 58% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-5px) scale(0.998); filter: blur(1px); }
}
@keyframes nera-vt-entrada {
  0% { opacity: 1; transform: translateY(6px); clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  48% { opacity: 1; transform: translateY(2px); clip-path: polygon(0 0, 64% 0, 44% 100%, 0 100%); }
  100% { opacity: 1; transform: none; clip-path: polygon(0 0, 116% 0, 100% 100%, 0 100%); }
}

/* ==========================================================================
   13 — Capa app: bajo 860 px el sitio es una aplicación, no un responsive
   ========================================================================== */
.app-dock { display: none; }
.ticker-app { display: none; }
.carrusel-pie { display: none; }
.nav-sheet-kicker,
.nav-sheet-call,
.nav-sheet-note,
.nav-sheet-mark { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 62px; }

  html { scroll-behavior: smooth; }
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
  }
  html.menu-open,
  body.menu-open { overflow: hidden; }

  /* --- franja de despacho compacta: reemplaza el marquesina que se cortaba --- */
  .ticker { border-bottom: 1px solid rgba(0, 0, 0, 0.55); }
  .ticker-track { display: none; }
  .ticker-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 32px;
    padding-inline: var(--gutter);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
  }
  .ticker-app-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .ticker-app-call {
    color: #fff;
    text-decoration: none;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  /* --- cabecera de app --- */
  .site-header {
    background: #000;
    backdrop-filter: none;
    z-index: 130;
  }
  .header-inner { min-height: var(--header-h); }
  .brand { position: relative; z-index: 200; }
  .brand-sub { display: none; }
  .brand-seal { width: 42px; height: 42px; }
  .brand-name { font-size: 1.02rem; }
  .header-actions { display: none; }
  .nav-toggle {
    position: relative;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--edge);
    color: #fff;
  }
  .nav-toggle[aria-expanded="true"] { border-color: var(--yellow-c); color: var(--yellow-c); }
  .nav-bars i { transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  /* --- menú a pantalla completa, hoja de app --- */
  .nav { display: none; }
  .nav.is-open {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 3rem + env(safe-area-inset-top)) var(--gutter) calc(1.2rem + env(safe-area-inset-bottom));
    background:
      radial-gradient(90% 60% at 100% 0%, rgba(245, 15, 19, 0.22), transparent 62%),
      repeating-linear-gradient(135deg, rgba(245, 15, 19, 0.05) 0 12px, transparent 12px 30px),
      #000;
    border: 0;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    counter-reset: nav-hoja;
    animation: nera-hoja 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .nav.is-open::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + 2.4rem + env(safe-area-inset-top));
    height: 6px;
    background: var(--hazard);
  }
  .nav.is-open .nav-sheet-mark {
    display: block;
    position: absolute;
    left: var(--gutter);
    bottom: calc(8.5rem + env(safe-area-inset-bottom));
    z-index: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(5rem, 22vw, 8rem);
    line-height: 0.8;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.04);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
  }
  .nav-sheet-kicker {
    display: block;
    margin: 0.9rem 0 0.15rem;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow-c);
  }
  .nav.is-open > a:not(.nav-sheet-call) {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--edge);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 6.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: none;
    text-decoration: none;
    counter-increment: nav-hoja;
    transition: color 0.15s ease;
  }
  .nav.is-open > a:not(.nav-sheet-call)::before {
    content: "0" counter(nav-hoja);
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--red-c);
  }
  .nav.is-open > a:not(.nav-sheet-call)::after {
    content: "→";
    margin-left: auto;
    font-family: var(--font-mono);
    color: var(--steel-c);
  }
  .nav.is-open > a:not(.nav-sheet-call)[aria-current="page"] { color: var(--yellow-c); }
  .nav.is-open > a:not(.nav-sheet-call)[aria-current="page"]::after { color: var(--yellow-c); }
  .nav.is-open .nav-sheet-call {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: auto;
    padding: 0.9rem 1rem;
    background: var(--yellow-c);
    color: #000;
    text-decoration: none;
    border-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  }
  .nav-sheet-call-text { display: flex; flex-direction: column; line-height: 1.1; }
  .nav-sheet-call-text small {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .nav-sheet-call-text strong { font-family: var(--font-mono); font-size: 1.18rem; font-weight: 400; }
  .nav-sheet-call-go { margin-left: auto; font-family: var(--font-mono); font-size: 1.1rem; }
  .nav.is-open .nav-sheet-note {
    display: block;
    margin: 0.9rem 0 0;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-c);
  }
  @keyframes nera-hoja {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
  }

  /* --- portada a sangre --- */
  .hero::before { height: 7px; }
  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    line-height: 1.5;
  }
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0;
  }
  .hero-copy { padding-block: 1.55rem 1.3rem; }
  .hero-title {
    font-size: clamp(2.1rem, 9.2vw, 2.8rem);
    line-height: 1.12 !important;
    letter-spacing: -0.012em !important;
  }
  .hero-lead { font-size: 0.99rem; margin-bottom: 1.25rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero-call { width: 100%; min-height: 58px; padding: 0.9rem 1.2rem 0.85rem 1.45rem; }
  .hero-call-number { font-size: clamp(1.5rem, 6.8vw, 1.9rem); }
  .hero-cta-alt { min-height: 50px; width: 100%; justify-content: center; }
  .hero-badges { gap: 0.35rem; margin-top: 1.1rem; }
  .hero-badges li { font-size: 0.58rem; padding: 0.28rem 0.5rem; }
  .hero-unit {
    width: auto;
    max-width: none;
    margin: 0 calc(var(--gutter) * -1);
    min-height: 0;
    display: block;
    padding: 0.5rem 0 0;
    background: radial-gradient(62% 70% at 50% 62%, rgba(245, 15, 19, 0.24), transparent 72%);
  }
  .hero-unit-img { width: 100%; max-width: none; }
  .hero-unit-ring,
  .hero-unit-corner { display: none; }
  .hero-unit-tag { left: var(--gutter); bottom: 0.7rem; }
  .hero-status-inner {
    align-items: flex-start;
    min-height: 0;
    padding-block: 0.65rem;
    font-size: 0.6rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }
  .hero-status-inner .led { margin-top: 0.35rem; }

  /* --- cifras en dos columnas --- */
  .section { padding-block: clamp(2.35rem, 7.5vw, 3.2rem); }
  .section-head { margin-bottom: 1.5rem; }
  .section-head h2 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 1.05rem 0.9rem 1.15rem; min-height: 132px; }
  .figure-value { font-size: clamp(1.35rem, 6vw, 1.85rem); }
  .figure-detail { font-size: 0.78rem; }
  .figures > .figure:last-child:nth-child(odd) { grid-column: span 2; }

  /* --- carrusel de servicios con scroll-snap --- */
  .carrusel-pie {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.7rem;
  }
  .carrusel-num {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: var(--yellow-c);
  }
  .carrusel-dots {
    display: flex;
    flex: 1 1 auto;
    gap: 4px;
  }
  .carrusel-dots span {
    width: 16px;
    height: 3px;
    background: var(--edge);
    transition: background-color 0.2s ease, width 0.2s ease;
  }
  .carrusel-dots span.is-on { background: var(--yellow-c); width: 24px; }
  .carrusel-hint {
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    color: var(--muted-c);
    text-transform: uppercase;
  }
  .service-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-auto-rows: 1fr;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 0 var(--gutter) 4px;
    margin-inline: calc(var(--gutter) * -1);
    background: transparent;
    border: 0;
    border-radius: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .svc-card {
    height: 100%;
    min-height: 250px;
    border: 1px solid var(--edge);
    scroll-snap-align: start;
    padding: 1.1rem 1.05rem 1rem;
  }
  .svc-card--compact { min-height: 172px; }
  .svc-title { font-size: 1.2rem; }
  .svc-excerpt { font-size: 0.85rem; }
  .svc-foot { padding-top: 0.8rem; flex-wrap: nowrap; }
  .svc-eta-detail { display: none; }

  /* --- tablero y unidades para el pulgar --- */
  .tablero {
    max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
  }
  .tablero-ancho { display: none; }
  .tablero-angosto {
    display: block;
    max-width: 460px;
    margin-inline: auto;
  }
  .tablero-pie {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    padding-inline: 0.7rem;
  }
  .tablero-resumen { display: inline; }
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .unit {
    padding: 0.95rem 0.85rem 1rem;
    gap: 0.35rem;
    min-height: 176px;
    border: 0;
  }
  .unit-code { font-size: 0.64rem; letter-spacing: 0.1em; }
  .unit-led { font-size: 0.58rem; letter-spacing: 0.08em; }
  .unit-type { font-size: 0.95rem; }
  .unit-detail { font-size: 0.76rem; line-height: 1.4; }
  .unit-base { font-size: 0.55rem; letter-spacing: 0.1em; }
  .unit-top { gap: 0.4rem; }
  .board-note { font-size: 0.6rem; }

  /* --- cobertura y protocolo legibles --- */
  .mapa {
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
  }
  .mapa-wide { display: none; }
  .mapa-narrow {
    display: block;
    max-width: 460px;
    margin-inline: auto;
  }
  .mapa-pie {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    padding-inline: 0.7rem;
  }
  .base { margin-left: 2.8rem; padding: 1rem 0 1rem 1.45rem; }
  .base-code { left: -2.8rem; top: 1rem; font-size: 0.6rem; }
  .base-node { top: 1.32rem; }
  .base-city { font-size: 1.05rem; }
  .base-region { font-size: 0.6rem; }
  .base-detail { font-size: 0.83rem; }
  .cov-zones .zone { padding: 1rem 1rem 1.05rem; }
  .zone-name { font-size: 0.95rem; }
  .zone-detail { font-size: 0.83rem; }
  .cov-note { font-size: 0.79rem; }
  .steps { grid-template-columns: 1fr; }
  .steps--grid {
    display: block;
    border: 0;
    background: transparent;
  }
  .steps--grid li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
    padding: 1.05rem 1rem 1.1rem 2.85rem;
    background: var(--surface);
    border: 1px solid var(--edge);
  }
  .steps--grid li::before {
    top: 1.15rem;
    left: 1.24rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red-c);
    box-shadow: 0 0 0 4px rgba(245, 15, 19, 0.16);
    transition: none;
  }
  .steps--grid li.is-visible::before { width: 9px; }
  .steps--grid li::after {
    content: "";
    position: absolute;
    left: calc(1.24rem + 4px);
    top: 2.1rem;
    bottom: -0.6rem;
    width: 1px;
    background: var(--edge);
  }
  .steps--grid li:last-child { margin-bottom: 0; }
  .steps--grid li:last-child::after { display: none; }
  .steps strong { font-size: 1rem; }
  .steps p { font-size: 0.85rem; }

  /* --- sellos y galerías a sangre --- */
  .seals-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .seals-list::-webkit-scrollbar { display: none; }
  .seal { flex: 0 0 auto; scroll-snap-align: start; }
  .story-figure,
  .detail-figure {
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
  }
  .story-figure { padding: 0; }
  .story-figure figcaption { padding: 0.6rem var(--gutter) 0.3rem; }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* --- barra inferior de acciones (la app) --- */
  .dispatch { display: none; }
  .app-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 96;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.72fr;
    gap: 2px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--edge);
  }
  .app-dock::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--hazard);
  }
  .app-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 5px 2px;
    color: var(--muted-c);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s ease, transform 0.12s ease;
  }
  .app-dock-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .app-dock-item:active { transform: scale(0.93); }
  .app-dock-item.is-active { color: var(--yellow-c); }
  .app-dock-item.is-active .app-dock-icon { filter: drop-shadow(0 0 6px rgba(255, 226, 0, 0.35)); }
  .app-dock-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    padding: 6px 10px;
    background: var(--yellow-c);
    color: #000;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
    transition: background-color 0.16s ease, transform 0.12s ease;
  }
  .app-dock-cta:active { transform: scale(0.96); }
  .app-dock-cta-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .app-dock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-c);
    animation: dock-latido 1.6s ease-out infinite;
  }
  @keyframes dock-latido {
    0% { box-shadow: 0 0 0 0 rgba(245, 15, 19, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(245, 15, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 15, 19, 0); }
  }
  .app-dock-cta-num {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  /* --- interiores y formularios --- */
  .page-head { padding-block: 1.1rem 2rem; }
  .page-head-copy h1 { font-size: clamp(1.85rem, 8.2vw, 2.4rem); }
  .page-head-aside {
    margin-top: 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--edge);
    border-top: 1px solid var(--edge);
    background: var(--surface);
  }
  .page-head-aside .v { font-size: clamp(1.25rem, 6vw, 1.55rem); }
  .page-head-aside .hint { font-size: 0.72rem; }
  .page-head-aside .btn { width: 100%; min-height: 48px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 50px;
    font-size: 16px;
  }
  .contact-form textarea { min-height: 130px; }
  .contact-form .btn { min-height: 50px; width: 100%; }
  .contact-phone { font-size: clamp(1.6rem, 7vw, 1.9rem); }
  .cta-inner { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .cta-phone { width: 100%; min-height: 54px; display: block; }
  .cta-phone-number { font-size: clamp(1.4rem, 6.4vw, 1.85rem); }
  .cta-phone-alt { font-size: 0.66rem; }
  .cta-actions .btn { min-height: 50px; }
  .faq-item summary { min-height: 44px; padding: 1.05rem 0; }
  .faq-a { font-size: 0.89rem; }
  .panel-card { padding: 1.15rem; }
  .site-footer { padding-top: 2.3rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .footer-col a { font-size: 0.9rem; }
}

/* --- composición: palabras huérfanas y tarjetas parejas --- */
@media (max-width: 340px) {
  .app-dock { grid-template-columns: 1fr 1fr 1fr 1.92fr; }
  .app-dock-cta { padding-inline: 8px; }
  .app-dock-cta-num { font-size: 0.56rem; }
  .app-dock-item { font-size: 0.54rem; letter-spacing: 0.05em; }
}
@media (max-height: 760px) {
  .nav.is-open .nav-sheet-mark { display: none; }
}

p,
li,
dd { text-wrap: pretty; }
h1,
h2,
h3,
.svc-title,
.unit-type,
.figure-label,
.panel-title,
.step-code + strong { text-wrap: balance; }
.svc-card { height: 100%; }
.steps--grid li { height: 100%; }
.fleet-card { height: 100%; }
.svc-foot { margin-top: auto; }
.section-lead,
.hero-lead,
.faq-a,
.svc-excerpt,
.unit-detail,
.zone-detail,
.base-detail,
.op-band-text,
.footer-note,
.alert-body p,
.cta-band p { text-wrap: pretty; }
.prose,
.section-lead,
.hero-lead,
.faq-a,
.base-detail,
.zone-detail,
.footer-desk .v { overflow-wrap: break-word; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* === ajuste-tipografico === */
/* Titulares: el tilde de la Ñ, las tildes y la diéresis necesitan aire vertical.
   Se conserva la tensión del diseño (tracking cerrado) sin que los acentos se
   monten sobre la línea anterior ni se recorten en la primera línea. */
:where(h1, h2, h3, h4, h5, h6, .hero-title, [class*="hero-title"], [class*="display-title"], [class*="titular"]) {
  line-height: 1.17 !important;
  padding-block-start: 0.1em;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: manual;
  font-kerning: normal;
}
:where(h1, h2:not(.footer-title):not(.alert-title):not(.block-title), .hero-title, .op-band-title, [class*="hero-title"]) {
  line-height: 1.2 !important;
  letter-spacing: -0.012em !important;
  padding-block-start: 0.14em;
}
/* Rótulos y etiquetas en mayúsculas: mismo cuidado con el tilde */
:where(.eyebrow, .kicker, .overline, .label, .tag) {
  line-height: 1.5 !important;
}
/* === fin ajuste-tipografico === */

/* ==========================================================================
   14 — Corrección de identidad · proporción de color, firma y telemetría
   Concepto: «sala de control, no folleto». El color señala estado; no decora.
   Sustituye valores de las capas 04–13 y se deja al final para que la
   corrección sea un bloque reversible y rastreable (ver docs/IDENTIDAD.md).
   ========================================================================== */

/* 14.1 — El amarillo deja de ser rótulo, enlace y cifra.
   Sobrevive en la llamada de emergencia (portada, cabecera, barra de despacho,
   barra de app, banda de cierre), en el estado vivo (LED, reloj, ficha en ruta)
   y en las gráficas de tablero y cobertura, donde codifica operación. */
.eyebrow,
.eyebrow--light { color: var(--fg-dim); }
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--steel-c);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--fg); }
.link-arrow { color: var(--fg); border-bottom-color: var(--steel-c); }
.link-arrow:hover { border-color: var(--fg); }
.btn-primary { background: #f2f2f2; color: #000; }
.btn-primary:hover { background: #fff; }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.seal-mark { color: var(--steel-c); }
.figure::before { background: var(--steel-c); }
.figure-value { color: #fff; }
.svc-code { color: var(--fg-dim); }
.svc-eta { color: var(--fg-dim); }
.svc-card:hover .svc-go { color: var(--fg); }
.fleet-code { color: var(--fg-dim); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { background: #fff; }
.nav-bars i { background: #fff; }
.crumbs a:hover { color: #fff; }
.link-list a:hover { color: #fff; }
.panel-note a,
.spec-list dd a { color: var(--fg); }
.cta-phone-alt:hover { color: var(--fg); }
.footer-col a:hover,
.footer-legal a:hover,
.footer-desk a:hover { color: #fff; }
.footer-title { color: var(--fg-dim); }
.nav-sheet-kicker { color: var(--fg-dim); }
.nav-toggle[aria-expanded="true"] { border-color: var(--fg); color: #fff; }
.carrusel-num { color: var(--fg-dim); }
.carrusel-dots span.is-on { background: var(--fg-dim); }

/* 14.2 — El rojo deja de ser ornamento: queda para alerta, en ruta y cinta. */
.eyebrow-code { background: #f2f2f2; color: #000; }
.block-title span,
.panel-title span,
.footer-title span { color: var(--steel-c); }
.crumbs li + li::before { color: var(--steel-c); }
.link-list a::before { color: var(--steel-c); }
.check { border-color: var(--steel-c); }
.check::after { border-color: #fff; }
.log-index { color: var(--fg-dim); }
.step-code { color: var(--fg-dim); }
.faq-icon::before,
.faq-icon::after { background: var(--fg-dim); }
.faq-item[open] .faq-icon::before { background: #fff; }
.faq-item[open] summary { color: #fff; }
.steps--grid li::before { background: var(--steel-c); }
.footer-route span,
.footer-route span:nth-child(even) { background: var(--steel-c); opacity: 0.5; }
.rail-progress { background: linear-gradient(180deg, #fff, var(--steel-c)); }

/* 14.3 — La cinta de peligro acordona, no empapela.
   Se queda en los bordes de página (portada, interior, barra de despacho,
   barra de app) y sale de la banda de cierre y de los marcos internos. */
.cta-band-band { display: none; }
.mapa::before { height: 2px; background: var(--edge); }
.tablero-techo { background: none; }
.nav.is-open::before { display: none; }

/* 14.4 — Un solo retículo: el tablero comparte el ancho del sitio (1320). */
.tablero { max-width: none; }

/* 14.5 — Telemetría legible: piso de 0,64 rem y contraste de dato.
   El microtexto de 9–10 px en #72777e no se lee en la mano ni en la cabina. */
.spec-list dt { font-size: 0.66rem; color: var(--fg-dim); }
.svc-unit { font-size: 0.66rem; color: var(--fg-dim); }
.svc-sub { font-size: 0.66rem; }
.svc-eta { font-size: 0.66rem; }
.svc-eta-detail { font-size: 0.66rem; }
.footer-desk .k { font-size: 0.64rem; color: var(--fg-dim); }
.footer-bottom { color: var(--fg-dim); }
.footer-legal a { color: var(--fg-dim); }
.dispatch-status-text span { font-size: 0.62rem; color: var(--fg-dim); }
.tablero-pie,
.mapa-pie { font-size: 0.64rem; color: var(--fg-dim); }

@media (max-width: 860px) {
  .nav.is-open > a:not(.nav-sheet-call)[aria-current="page"] { color: #fff; }
  .nav.is-open > a:not(.nav-sheet-call)[aria-current="page"]::after { color: var(--fg-dim); }
  .nav.is-open > a:not(.nav-sheet-call)::before { color: var(--steel-c); }
  .app-dock-item.is-active .app-dock-icon { filter: none; }
}

/* ==========================================================================
   15 — Agenda de citas: adaptación al sistema NERA
   agenda.css (hoja base del motor) se carga antes que esta y define los
   tokens --primary / --on-dark / --accent. Aquí se reescribe para el tema:
   negro y carbón, esquinas rectas, telemetría mono y el amarillo reservado
   a la llamada de emergencia. La agenda es mantención: su acción es blanca.
   ========================================================================== */

:root {
  --primary: #f2f2f2;          /* relleno de la acción de agenda: blanco, no urgencia */
  --on-dark: #000000;          /* texto sobre ese relleno */
  --accent: var(--yellow-c);   /* foco y aviso */
}

/* --- cabecera: entrada en la barra (desktop) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-agenda {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--edge);
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.header-agenda-mark {
  width: 6px;
  height: 6px;
  border: 1px solid var(--steel-c);
  flex: 0 0 auto;
}
.header-agenda:hover,
.header-agenda[aria-current="page"] { border-color: var(--fg); color: #fff; }
.header-agenda:hover .header-agenda-mark,
.header-agenda[aria-current="page"] .header-agenda-mark { border-color: #fff; background: #fff; }

/* --- entrada en el menú: en la hoja móvil y en el tramo donde la cabecera
       ya no admite el botón (861–1180 px, donde también se oculta el teléfono) --- */
.nav-agenda { display: none; }
.nav-sheet-agenda-note { display: none; }

@media (min-width: 861px) and (max-width: 1240px) {
  .header-agenda { display: none; }
  .nav-agenda { display: inline-flex; }
}
@media (min-width: 861px) {
  .header-call { flex: 0 0 auto; }
}

@media (max-width: 860px) {
  .header-actions { display: none; }
  .nav.is-open .nav-sheet-agenda-note {
    display: block;
    margin: 0.55rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    line-height: 1.5 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-dim);
  }
}

/* --- retícula: la misma del sitio (1320) --- */
.ag-wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); }

/* --- cabecera de la agenda: mismo tratamiento que .page-head --- */
.ag-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2.25rem, 5vw, 4rem);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(189, 20, 30, 0.22), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--edge);
}
.ag-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--hazard);
}
.ag-hero--small { padding-block: clamp(1.5rem, 3vw, 2rem) clamp(1.8rem, 3.5vw, 2.6rem); }
.ag-crumbs {
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--muted-c);
}
.ag-crumbs a { color: var(--muted-c); }
.ag-crumbs a:hover { color: #fff; }
.ag-crumbs span[aria-hidden="true"] { color: var(--steel-c); }
.ag-crumbs [aria-current="page"] { color: var(--fg-dim); }
.ag-eyebrow {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
}
.ag-hero h1 {
  margin: 0 0 1rem;
  max-width: 26ch;
  font-size: clamp(1.95rem, 4.4vw, 3.4rem);
  letter-spacing: 0;
}
.ag-lead {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  color: var(--fg-dim);
}
.ag-facts {
  gap: 0 1.4rem;
  max-width: 58ch;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.ag-facts strong { color: #fff; font-weight: 400; font-variant-numeric: tabular-nums; }

/* --- cuerpo y pasos: raíl de hairlines, no cuatro tarjetas iguales --- */
.ag-body { padding-block: clamp(2rem, 4vw, 3.2rem) clamp(2.4rem, 5vw, 4rem); }
.ag-grid {
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: clamp(1.5rem, 3vw, 2.8rem);
}
.ag-main { gap: 0; }
.ag-step {
  padding: 1.6rem 0 1.9rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--edge);
  border-radius: 0;
}
.ag-step:first-child { padding-top: 0; border-top: 0; }
.ag-step-head {
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.ag-step-head--inline { margin-top: 2rem; margin-bottom: 1rem; }
.ag-step-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.15em;
  padding: 0.16em 0.42em;
  border: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.ag-step-head h2 { font-size: 1.45rem; letter-spacing: 0; }

/* --- servicios: rejilla de instrumento (1 px de separación) --- */
.ag-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.ag-service {
  position: relative;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--bg-2);
  border: 0;
  border-radius: 0;
}
.ag-service::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  transition: background-color 0.16s ease;
}
.ag-service:hover { background: var(--surface-2); }
.ag-service.is-active { background: var(--surface-2); box-shadow: none; }
.ag-service.is-active::after { background: #fff; }
.ag-service-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #fff;
}
.ag-service-detail { font-size: 0.82rem; line-height: 1.45; color: var(--fg-dim); }
.ag-service-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--muted-c);
}
.ag-simple-form label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-c); }
.ag-simple-form input {
  border: 1px solid var(--edge);
  border-radius: 0;
  background: var(--surface);
  color: var(--fg);
  min-height: 46px;
}
.ag-simple-form input:focus { outline: none; border-color: var(--yellow-c); }

/* --- calendario: dos meses como una sola tabla --- */
.ag-months {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.ag-month {
  padding: 0.85rem 0.9rem 1rem;
  background: var(--bg-2);
  border: 0;
  border-radius: 0;
}
.ag-month-head {
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ag-month-nav {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 0;
  color: var(--muted-c);
  font-family: var(--font-mono);
}
.ag-month-nav:hover { background: var(--surface-2); border-color: var(--steel-c); color: #fff; }
.ag-cal { font-size: 0.82rem; }
.ag-cal th { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--muted-c); }
.ag-cal td { height: 40px; }
.ag-day {
  border-radius: 0;
  aspect-ratio: auto;
  height: 100%;
  min-height: 40px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
a.ag-day:hover { background: var(--surface-2); }
.ag-day.is-selected { background: #f2f2f2; color: #000; font-weight: 700; }
.ag-day.is-off { color: var(--steel-c); }

/* --- horas: fichas de telemetría --- */
.ag-chosen {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}
.ag-slots {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
  margin-bottom: 0.9rem;
  background: none;
  border: 0;
}
.ag-slot { background: none; }
.ag-slot span {
  min-height: 44px;
  padding: 0.6rem 0.4rem;
  background: var(--bg-2);
  border: 1px solid var(--edge);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.ag-slot input:hover + span { border-color: var(--steel-c); color: #fff; }
.ag-slot input:checked + span { background: #f2f2f2; border-color: #f2f2f2; color: #000; }
.ag-slot input:focus-visible + span { outline: 2px solid var(--yellow-c); outline-offset: -2px; }
.ag-hint { font-size: 0.9rem; color: var(--fg-dim); }

/* --- datos --- */
.ag-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted-c);
}
.ag-field input,
.ag-field textarea {
  border: 1px solid var(--edge);
  border-radius: 0;
  background: var(--surface);
  color: var(--fg);
}
.ag-field input:focus,
.ag-field textarea:focus {
  border-color: var(--yellow-c);
  box-shadow: 0 0 0 1px var(--yellow-c);
}
.ag-consent { color: var(--muted-c); }
.ag-consent input { accent-color: var(--yellow-c); }
.ag-consent a { color: var(--fg); }

/* --- botones: la acción de agenda es blanca; el teléfono es lo único amarillo --- */
.ag-btn {
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  background: #f2f2f2;
  color: #000;
  border: 1px solid #f2f2f2;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.ag-btn:hover { background: #fff; opacity: 1; }
.ag-btn-ghost { background: transparent; color: var(--fg); border-color: var(--edge); clip-path: none; }
.ag-btn-ghost:hover { border-color: var(--fg); color: #fff; opacity: 1; }
.ag-btn-block { width: 100%; }
.ag-form > .ag-btn {
  min-width: 260px;
  min-height: 52px;
  font-size: 0.95rem;
}
a.ag-btn-ghost[href^="tel:"] {
  padding-inline: 0.8rem;
  background: var(--yellow-c);
  border-color: var(--yellow-c);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
a.ag-btn-ghost[href^="tel:"]:hover { background: #fff; border-color: #fff; color: #000; }
.ag-note { font-size: 0.76rem; color: var(--fg-dim); }

/* --- lateral: mismas tarjetas de panel que el resto del sitio --- */
.ag-aside { gap: 1rem; top: calc(var(--header-h) + 1.5rem); }
.ag-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 0;
}
.ag-card--soft { background: var(--surface); }
.ag-card-title {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted-c);
}
.ag-card-title::before { content: "/"; color: var(--steel-c); }
.ag-summary { gap: 0; font-size: 0.86rem; }
.ag-summary > div { padding: 0.55rem 0; border-bottom: 1px solid var(--edge); }
.ag-summary dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.ag-summary dd { color: var(--fg); font-variant-numeric: tabular-nums; }
.ag-summary--wide > div { display: block; padding: 0.6rem 0; }
.ag-summary--wide dt { margin-bottom: 0.3rem; }
.ag-summary--wide dd { text-align: left; }
.ag-contact span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--muted-c);
}
.ag-contact a { color: var(--fg); }

/* --- ticket de reserva --- */
.ag-ticket {
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 0;
}
.ag-ticket-head { padding-bottom: 1.1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--edge); }
.ag-ticket-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--muted-c);
}
.ag-ticket-code { font-family: var(--font-mono); color: #fff; letter-spacing: 0.14em; }
.ag-ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ag-ticket-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-c);
  animation: led-pulse 2.2s ease-in-out infinite;
}
.ag-ticket-notes { font-size: 0.88rem; color: var(--fg-dim); }
.ag-next h2 { font-size: 1.15rem; letter-spacing: 0; }
.ag-next-list { color: var(--fg-dim); }

/* --- alertas: estado, no tarjeta de plantilla clara --- */
.ag-alert {
  padding: 0.9rem 1.1rem;
  background: #140a0b;
  border: 1px solid var(--red-c);
  border-left-width: 3px;
  border-radius: 0;
  color: #fff;
  font-size: 0.88rem;
}
.ag-alert strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-c);
}

/* --- agenda en la ficha de servicio --- */
.panel-agenda { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--edge); }
.btn-agenda { justify-content: space-between; gap: 0.6rem; color: var(--fg); }
.btn-agenda:hover { border-color: var(--fg); color: #fff; }
.btn-agenda-go { margin-left: auto; color: var(--steel-c); transition: transform 0.16s ease, color 0.16s ease; }
.btn-agenda:hover .btn-agenda-go { transform: translateX(3px); color: #fff; }
.panel-note--agenda { font-size: 0.68rem; line-height: 1.5; color: var(--muted-c); }

/* --- barra inferior: cinco accesos, el de llamada conserva el amarillo --- */
@media (max-width: 860px) {
  .app-dock { grid-template-columns: 1fr 1fr 1fr 1fr 1.66fr; }
}
@media (max-width: 1000px) {
  .ag-grid { grid-template-columns: 1fr; }
  .ag-aside { position: static; }
  .ag-body { padding-bottom: clamp(2.4rem, 5vw, 4rem); }
  .ag-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ag-months { grid-template-columns: 1fr; }
  .ag-services { grid-template-columns: 1fr; }
  .ag-step-head h2 { font-size: 1.25rem; }
  .ag-hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.4rem); }
  .ag-facts { font-size: 0.64rem; letter-spacing: 0.08em; }
  .ag-btn { width: 100%; }
}
@media (max-width: 340px) {
  .app-dock { grid-template-columns: 1fr 1fr 1fr 1fr 1.9fr; }
}

/* ==========================================================================
   16 — Detalle: botón y hoja de menú, mapa de ruta, tablero y flota
   Concepto «sala de control, no folleto»: el color señala estado y emergencia;
   la geografía, la ruta y las columnas se leen como instrumentos, no como
   lámina. Capa final y reversible, igual que §14 y §15.
   ========================================================================== */

/* 16.1 — Botón de menú: 42×42, icono de 19 px, nombre solo para lectores.
   Abierto, el botón se rellena de rojo: es estado activo, no adorno. */
@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-height: 0;
    padding: 0;
    margin-left: auto;
    border: 1px solid var(--edge);
    border-radius: 0;
    background: transparent;
    color: #fff;
    flex: 0 0 auto;
  }
  .nav-toggle:hover { border-color: var(--steel-c); }
  .nav-toggle[aria-expanded="true"] {
    background: var(--red-c);
    border-color: var(--red-c);
    color: #fff;
  }
  .nav-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 19px;
    height: 19px;
    gap: 0;
  }
  .nav-bars i { width: 19px; height: 2px; background: #fff; }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}

/* 16.2 — Hoja de menú: 100dvh con scroll propio, enlaces 1,2–1,35 rem y paso
   libre para el último enlace (nada de barras tapando la hoja). */
@media (max-width: 860px) {
  .nav.is-open {
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(var(--header-h) + 2.4rem + env(safe-area-inset-top)) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-block: 1rem calc(1.5rem + env(safe-area-inset-bottom));
    animation: none;
  }
  .nav.is-open > a:not(.nav-sheet-call) {
    font-size: clamp(1.2rem, 5.1vw, 1.35rem);
    line-height: 1.15;
    letter-spacing: 0.005em;
    padding: 0.82rem 0;
  }
  .nav.is-open > a:not(.nav-sheet-call)::before {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }
  .nav.is-open > a:not(.nav-sheet-call)::after { font-size: 0.9rem; }
  .nav.is-open .nav-sheet-kicker { margin-top: 0.3rem; }
  .nav.is-open .nav-sheet-call { margin-top: auto; }
  .nav.is-open .nav-sheet-agenda-note { margin-top: 0.5rem; }
  .nav.is-open .nav-sheet-note { margin-top: 0.75rem; }
  .nav.is-open .nav-sheet-mark { bottom: calc(7.5rem + env(safe-area-inset-bottom)); }

  /* La barra de app y la de despacho salen de escena mientras la hoja está
     abierta: no tapan enlaces ni compiten con la llamada de la hoja. Se ocultan
     sin colapsar su caja para que sus iconos no queden a 0×0. */
  html.menu-open .app-dock,
  body.menu-open .app-dock,
  html.menu-open .dispatch,
  body.menu-open .dispatch {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* 16.3 — Mapa de ruta: carta de operación, no retícula con una línea.
   Ruta 5 continua con línea central discontinua, escudos de ruta, nodos con
   anillo, costa y cordillera de referencia, norte y escala. */
.mapa {
  margin: 0;
  background: #060606;
  border: 1px solid var(--edge);
}
.mapa::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--edge);
  z-index: 2;
}
.mapa-barra {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--edge);
  background: #0a0a0a;
}
.mapa-rotulo {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.mapa-dato {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.mapa-dato--fin { margin-left: auto; color: var(--muted-c); white-space: nowrap; }
.mapa-lienzo {
  padding: 0.55rem;
  background:
    radial-gradient(78% 58% at 52% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
    #060606;
}
.mapa-svg { display: block; width: 100%; height: auto; color: #d3d6da; }

.mapa-mar { fill: #090c0f; }
.mapa-costa { fill: none; stroke: #394046; stroke-width: 1; }
.mapa-cordillera-area { fill: #0b0b0b; }
.mapa-cordillera { fill: none; stroke: #3a3a3a; stroke-width: 1.1; stroke-linejoin: round; }
.mapa-cordillera-hachure { fill: none; stroke: #303030; stroke-width: 1; }
.mapa-rio { fill: none; stroke: #2b3a42; stroke-width: 1.1; }
.mapa-geo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #7b838a;
  letter-spacing: 0.16em;
}
.mapa-geo-label--mar { letter-spacing: 0.3em; }
.mapa-geo-label--rio { letter-spacing: 0.12em; fill: #6f7c85; }

.mapa-via-borde { fill: none; stroke: #040404; stroke-width: 15; stroke-linecap: round; }
.mapa-via-calzada { fill: none; stroke: #3b3b3b; stroke-width: 11; stroke-linecap: round; }
.mapa-via-eje {
  fill: none;
  stroke: #e3e6e9;
  stroke-width: 1.1;
  stroke-dasharray: 6 5;
  stroke-linecap: butt;
}
.mapa-acceso-borde { fill: none; stroke: #040404; stroke-width: 9; stroke-linecap: round; }
.mapa-acceso-calzada { fill: none; stroke: #343434; stroke-width: 6; stroke-linecap: round; }
.mapa-acceso-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #737a81;
  letter-spacing: 0.18em;
}

.mapa-escudo rect { fill: #000; stroke: #6d7379; stroke-width: 1; }
.mapa-escudo text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: #fff;
  letter-spacing: 0;
}

.mapa-nodo-anillo { fill: #0a0a0a; stroke: #d9dde1; stroke-width: 1.3; }
.mapa-nodo-punto { fill: #e7eaed; }
.mapa-nodo-halo { fill: none; stroke: var(--red-c); stroke-width: 1; stroke-opacity: 0.45; }
.mapa-nodo--central .mapa-nodo-anillo { stroke: var(--red-c); stroke-width: 1.6; }
.mapa-nodo--central .mapa-nodo-punto { fill: var(--red-c); }
.mapa-nodo--central .mapa-nodo-halo {
  stroke: var(--red-c);
  stroke-opacity: 0.75;
  animation: led-pulse 1.9s ease-in-out infinite;
}
.mapa-ciudad {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  fill: #fff;
  letter-spacing: 0.01em;
}
.mapa-codigo {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #a2a8ae;
  letter-spacing: 0.12em;
}
.mapa-central {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--red-c);
  letter-spacing: 0.1em;
}

.mapa-norte circle { fill: none; stroke: #5a6066; stroke-width: 1; }
.mapa-norte-aguja { fill: #dfe2e5; }
.mapa-norte text {
  font-family: var(--font-display);
  font-size: 12px;
  fill: #a2a8ae;
  letter-spacing: 0.08em;
}
.mapa-escala text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #a2a8ae;
  letter-spacing: 0.04em;
}
.mapa-escala rect { fill: #c9ced3; }
.mapa-escala .mapa-escala-alt { fill: #4b5055; }

.mapa-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
  padding: 0.65rem 0.8rem 0.7rem;
  border-top: 1px solid var(--edge);
}
.mapa-leyenda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.64rem;
  color: var(--fg-dim);
}
.mapa-leyenda li { display: inline-flex; align-items: center; gap: 0.45rem; }
.mapa-muestra { flex: 0 0 auto; position: relative; display: inline-block; }
.mapa-muestra--eje {
  width: 24px;
  height: 9px;
  background: #3b3b3b;
}
.mapa-muestra--eje::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed #e3e6e9;
}
.mapa-muestra--base,
.mapa-muestra--central { width: 9px; height: 9px; border-radius: 50%; background: #0a0a0a; }
.mapa-muestra--base { border: 1.3px solid #d9dde1; }
.mapa-muestra--central { border: 1.5px solid var(--red-c); background: rgba(245, 15, 19, 0.22); }
.mapa-muestra--acceso { width: 24px; height: 0; border-top: 2px solid #3b3b3b; }
.mapa-nota {
  margin: 0 0 0 auto;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-c);
}

/* La sección de cobertura pone el mapa a la par de las bases: dos columnas que
   terminan casi a la misma altura y ninguna cuña muerta bajo las zonas. */
.cov-grid--mapa {
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.cov-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 2.6vw, 2.1rem);
  min-width: 0;
}
.cov-col--mapa .mapa { max-width: 100%; }
.cov-col--datos .cov-zones { border-top: 0; }
.cov-note { border-left-color: var(--steel-c); }

.base-region { color: var(--fg-dim); }
.base-node {
  background: #000;
  border: 1.3px solid #cfd3d7;
  box-shadow: none;
}
.base:first-child .base-node {
  border-color: var(--red-c);
  box-shadow: 0 0 0 4px rgba(245, 15, 19, 0.12);
}
.base:hover { border-color: var(--steel-c); }

/* 16.4 — Tablero de unidades: tabla real, LED en una sola columna, reloj vivo. */
.tablero-techo { height: 2px; background: var(--edge); }
.tablero-cuerpo { padding: 0; }
.tablero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--edge);
}
.tablero-ident { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.tablero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}
.tablero-sub {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.tablero-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  white-space: nowrap;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.tablero-clock {
  margin-left: 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--yellow-c);
  font-variant-numeric: tabular-nums;
}
.tablero-columnas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 190px;
  gap: 1rem;
  padding: 0.55rem 1.15rem;
  border-bottom: 1px solid var(--edge);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.tablero-filas { list-style: none; margin: 0; padding: 0; }
.tablero-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 190px;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border-bottom: 1px solid var(--edge);
}
.tablero-fila:last-child { border-bottom: 0; }
.tablero-unidad { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.tablero-code {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  line-height: 1.2;
}
.tablero-tipo {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}
.tablero-estado {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  white-space: nowrap;
}
.tablero-base {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-c);
  white-space: nowrap;
}
.tablero-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 1.15rem 0.7rem;
  border-top: 1px solid var(--edge);
}
.tablero-nota {
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-c);
}
.tablero-resumen {
  display: inline;
  margin-left: auto;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  white-space: nowrap;
}

/* 16.5 — Flota: la foto (o el recorte de la unidad) ocupa siempre el mismo
   marco 16:9, así los cuerpos de las tarjetas arrancan alineados. El recorte
   PNG va posicionado dentro del marco y con tamaño explícito: si se deja en
   auto, el navegador usa el tamaño intrínseco y desborda la tarjeta. */
.fleet-media { overflow: hidden; }
.fleet-media--unit { position: relative; }
.fleet-media--unit img {
  position: absolute;
  inset: 0;
  width: calc(100% - 2.5rem);
  height: calc(100% - 1.5rem);
  margin: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* 16.6 — Identidad: el acento no decora. Rojos y amarillos quedan en la
   llamada de emergencia, el estado vivo y la cinta de borde. */
.brand-name b { color: #fff; }
.skip-link { background: #f2f2f2; }
.hero-glow {
  background:
    radial-gradient(52% 62% at 78% 62%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(255, 255, 255, 0.045), transparent 70%);
}
.hero-glow::before { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 10px, transparent 10px 26px); }
.hero-unit-ring { border-color: rgba(255, 255, 255, 0.14); }
.hero-unit-ring::before { border-color: rgba(255, 255, 255, 0.1); }
.hero-unit-corner--tl { border-color: var(--steel-c); }
.hero-unit-corner--br { border-color: var(--steel-c); }
.hero-unit-tag { border-color: var(--steel-c); }
.story-quote { border-left-color: var(--steel-c); }
.story-frame { border-color: var(--steel-c); }
.svc-card::after { background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.07), transparent); }
.unit::after { background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.045) 9px 11px); }
.unit-code { color: var(--fg-dim); }
.op-band-cut { display: none; }

/* 16.7 — Ajustes de móvil para mapa, tablero y cobertura. */
@media (max-width: 860px) {
  .mapa { border-inline: 0; margin-inline: calc(var(--gutter) * -1); margin-bottom: 0; }
  .mapa-barra { padding: 0.5rem 0.8rem; gap: 0.6rem; }
  .mapa-rotulo { font-size: 0.72rem; white-space: nowrap; }
  .mapa-dato { font-size: 0.6rem; white-space: nowrap; }
  .mapa-lienzo { padding: 0.45rem; }
  .mapa-pie {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: none;
    margin: 0;
    padding: 0.6rem 0.8rem 0.7rem;
  }
  .mapa-leyenda { gap: 0.3rem 0.9rem; font-size: 0.62rem; }
  .mapa-nota { margin: 0; font-size: 0.6rem; }

  .cov-grid--mapa { grid-template-columns: 1fr; }
  .cov-col--mapa .mapa { max-width: none; }
  .cov-col { gap: 1.35rem; }

  .tablero { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .tablero-head { padding: 0.8rem 0.9rem 0.7rem; align-items: center; }
  .tablero-title { font-size: 0.92rem; }
  .tablero-sub { font-size: 0.6rem; }
  .tablero-live { font-size: 0.6rem; gap: 0.35rem; }
  .tablero-clock { font-size: 0.8rem; margin-left: 0.2rem; }
  .tablero-columnas { display: none; }
  .tablero-fila {
    grid-template-columns: minmax(0, 1fr) 112px;
    grid-template-areas:
      "code estado"
      "tipo tipo"
      "base base";
    gap: 0.2rem 0.75rem;
    padding: 0.72rem 0.9rem 0.78rem;
  }
  .tablero-fila .tablero-unidad { display: contents; }
  .tablero-fila .tablero-code { grid-area: code; font-size: 0.62rem; letter-spacing: 0.12em; }
  .tablero-fila .tablero-tipo { grid-area: tipo; font-size: 0.98rem; }
  .tablero-fila .tablero-estado { grid-area: estado; justify-self: start; font-size: 0.64rem; }
  .tablero-fila .tablero-base { grid-area: base; justify-self: end; font-size: 0.6rem; margin-top: 0.15rem; }
  .tablero-pie {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.6rem 0.9rem 0.7rem;
  }
  .tablero-resumen { margin-left: 0; font-size: 0.62rem; }
  .tablero-nota { font-size: 0.6rem; }

  .story-frame { right: 0; }
  .fleet-media--unit img { left: 0.9rem; right: 0.9rem; top: 0.6rem; bottom: 0.6rem; }
}

@media (max-width: 620px) {
  .mapa-dato:not(.mapa-dato--fin) { display: none; }
}

/* 16.8 — Cobertura en tablet: una sola columna con el mapa como panel centrado
   (nunca una carta de 900 px) y, bajo 620 px, a sangre como el tablero. */
@media (max-width: 1024px) {
  .cov-grid--mapa { grid-template-columns: 1fr; }
  .cov-col--mapa .mapa { max-width: 620px; margin-inline: auto; border-inline: 1px solid var(--edge); }
}
@media (max-width: 620px) {
  .cov-col--mapa .mapa { max-width: none; margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
}

/* 16.9 — La unidad sin foto no usa la cinta de peligro como papel tapiz. */
.fleet-media--blank {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 10px, transparent 10px 26px),
    linear-gradient(150deg, #141414, #0b0b0b);
}

/* 16.10 — En pantallas de 320–380 px la carta se reduce a 0,73; el microtexto
   del mapa sube en unidades para no bajar de 9 px reales. */
@media (max-width: 380px) {
  .mapa-ciudad { font-size: 17px; }
  .mapa-codigo,
  .mapa-central,
  .mapa-geo-label,
  .mapa-escala text,
  .mapa-norte text,
  .mapa-acceso-label { font-size: 12.5px; }
  .mapa-escudo text { font-size: 13px; }
}

/* 16.11 — Iconos de la barra de app: máscara sobre un span. La barra se oculta
   en escritorio y no deja ningún <svg> a 0×0. El acceso activo es blanco: el
   amarillo sigue siendo solo la llamada de emergencia. */
.app-dock-icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.app-dock-icon--central { -webkit-mask-image: url("/assets/theme/dock/central.svg"); mask-image: url("/assets/theme/dock/central.svg"); }
.app-dock-icon--servicios { -webkit-mask-image: url("/assets/theme/dock/servicios.svg"); mask-image: url("/assets/theme/dock/servicios.svg"); }
.app-dock-icon--agenda { -webkit-mask-image: url("/assets/theme/dock/agenda.svg"); mask-image: url("/assets/theme/dock/agenda.svg"); }
.app-dock-icon--bases { -webkit-mask-image: url("/assets/theme/dock/bases.svg"); mask-image: url("/assets/theme/dock/bases.svg"); }
@media (max-width: 860px) {
  .app-dock-item.is-active { color: #fff; }
  .app-dock-item.is-active .app-dock-icon { filter: none; }
  .app-dock-item { font-size: 0.6rem; }
  .app-dock-cta-label { font-size: 0.6rem; }
}