/* www.saycutrans.es — "Sala de operaciones": una pantalla, sin scroll.
   Mapa central + carril de mando izquierdo + status bar + paneles laterales.
   Identidad navy + naranja. 3 temas:
     · road  (claro, papel cremoso)  — DEFAULT
     · night (oscuro)
     · dock  (consola oscura navy, alto contraste)
*/

/* ============================================================ Reset breve */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; background: var(--bg); color: var(--ink); }
html { font: 16px/1.45 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* ============================================================ Variables — tema ROAD (DEFAULT) */
:root, [data-theme="road"] {
  --bg:           #f4f1ea;
  --ink:          #1a2332;
  --ink-soft:     #4a5468;
  --paper:        #f4f1ea;
  --navy:         #1a2332;
  --navy-2:       #232f42;
  --navy-3:       #2d3b54;
  --orange:       #ee7320;
  --orange-2:     #ff8a3a;
  --orange-soft:  rgba(238, 115, 32, .14);
  --orange-ghost: rgba(238, 115, 32, .06);
  --line:         rgba(26, 35, 50, .14);
  --line-strong:  rgba(26, 35, 50, .28);
  --ok:           #2faa57;
  --warn:         #f0b400;
  --danger:       #e0473a;

  /* HUD (centro siempre oscuro independiente del tema, es el "monitor") */
  --hud-bg-1:     #0e1622;
  --hud-bg-2:     #1a2332;
  --hud-text:     rgba(255, 255, 255, .82);
  --hud-text-soft:rgba(255, 255, 255, .58);
  --hud-line:     rgba(238, 115, 32, .85);
  --hud-tile-bg:  rgba(255, 255, 255, .06);
  --hud-tile-bd:  rgba(255, 255, 255, .14);
  --hud-glow:     rgba(238, 115, 32, .35);
  --hud-grid:     rgba(238, 115, 32, .07);

  /* Carril y status bar */
  --rail-bg:      #ffffff;
  --rail-bd:      rgba(26, 35, 50, .10);
  --rail-text:    var(--ink);
  --rail-soft:    var(--ink-soft);
  --rail-tile-bg: #fafaf6;
  --rail-tile-bd: rgba(26, 35, 50, .10);
  --rail-tile-bg-hover: #fff7ec;

  --status-bg:    #1a2332;
  --status-text:  rgba(255, 255, 255, .82);
  --status-line:  rgba(255, 255, 255, .10);

  --side-bg:      #ffffff;
  --side-bd:      rgba(26, 35, 50, .14);
  --side-ink:     var(--ink);
  --side-eyebrow: var(--orange);

  --shadow:       0 24px 60px rgba(0, 0, 0, .18);
  --shadow-sm:    0 6px 18px rgba(0, 0, 0, .12);
  --radius:       12px;
  --radius-sm:    8px;
  --ease:         cubic-bezier(.22, 1, .36, 1);
  --ease-bouncy:  cubic-bezier(.34, 1.56, .64, 1);

  /* Cursor mira custom (SVG inline). Tamaño 20x20, hotspot 10,10. */
  --cursor-target: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><circle cx='10' cy='10' r='7' fill='none' stroke='%23ee7320' stroke-width='1.4'/><line x1='10' y1='2' x2='10' y2='6' stroke='%23ee7320' stroke-width='1.4'/><line x1='10' y1='14' x2='10' y2='18' stroke='%23ee7320' stroke-width='1.4'/><line x1='2' y1='10' x2='6' y2='10' stroke='%23ee7320' stroke-width='1.4'/><line x1='14' y1='10' x2='18' y2='10' stroke='%23ee7320' stroke-width='1.4'/></svg>") 10 10, pointer;
}

[data-theme="night"] {
  --bg:           #0d1320;
  --ink:          #e6ebf2;
  --ink-soft:     rgba(230, 235, 242, .72);
  --paper:        #141d2b;
  --line:         rgba(255, 255, 255, .10);
  --line-strong:  rgba(255, 255, 255, .22);

  --rail-bg:      #141d2b;
  --rail-bd:      rgba(255, 255, 255, .10);
  --rail-text:    var(--ink);
  --rail-soft:    var(--ink-soft);
  --rail-tile-bg: rgba(255, 255, 255, .04);
  --rail-tile-bd: rgba(255, 255, 255, .10);
  --rail-tile-bg-hover: rgba(238, 115, 32, .10);

  --status-bg:    #0a111c;
  --status-text:  rgba(255, 255, 255, .82);
  --status-line:  rgba(255, 255, 255, .10);

  --side-bg:      #141d2b;
  --side-bd:      rgba(255, 255, 255, .12);
  --side-ink:     var(--ink);
}

[data-theme="dock"] {
  --bg:           #1a2332;
  --ink:          #ffffff;
  --ink-soft:     rgba(255, 255, 255, .82);
  --paper:        #1a2332;
  --line:         rgba(255, 255, 255, .14);
  --line-strong:  rgba(255, 255, 255, .30);

  --rail-bg:      #0e1622;
  --rail-bd:      rgba(255, 255, 255, .12);
  --rail-text:    #fff;
  --rail-soft:    rgba(255, 255, 255, .68);
  --rail-tile-bg: rgba(255, 255, 255, .04);
  --rail-tile-bd: rgba(255, 255, 255, .14);
  --rail-tile-bg-hover: rgba(238, 115, 32, .14);

  --status-bg:    #08111e;
  --status-text:  rgba(255, 255, 255, .92);
  --status-line:  rgba(255, 255, 255, .12);

  --side-bg:      #0e1622;
  --side-bd:      rgba(255, 255, 255, .14);
  --side-ink:     #fff;
}

/* ============================================================ Layout principal */
body {
  display: grid;
  grid-template-rows: 82px 1fr 36px;
  height: 100vh;
}

/* ============================================================ Header consola */
.ops-head {
  position: relative; z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: 82px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.head-left { display: flex; align-items: center; gap: 16px; }
/* Reclamo publicitario del DeCA en la barra, a la derecha del logotipo. Caja discreta
   con la placa del Ministerio en pequeño (petición del cliente N1). Usa solo tokens ya
   definidos arriba: --bg, --line, --orange, --ink, --ink-soft, --radius-sm. */
.deca-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), transform .18s var(--ease);
}
.deca-badge:hover { border-color: var(--orange); transform: translateY(-1px); }
.deca-badge-gob { height: 28px; width: auto; display: block; flex: none; border-radius: 4px; }
.deca-badge-txt { display: flex; flex-direction: column; line-height: 1.15; }
.deca-badge-kicker { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.deca-badge-name { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; color: var(--ink); }
.deca-badge:hover .deca-badge-name { color: var(--orange); }
.brand-mark { width: auto; height: 74px; border-radius: 8px; flex: none; object-fit: contain; }
.wordmark {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 19px; letter-spacing: -.02em;
}
.wm-1 { color: #3078b4; } /* "Saycu" azul de marca (mismo en las 3 webs del grupo) */
.wm-2 { color: #54607a; } /* "Trans" gris (mismo en las 3 webs del grupo) */

.ops-head-mid { display: flex; justify-content: center; }
.breadcrumb {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}
.bc-id { color: var(--orange); margin-left: 4px; }

.ops-head-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
  cursor: var(--cursor-target);
}
.btn-sm   { font-size: 13px; padding: 7px 12px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--orange-ghost); border-color: var(--orange); color: var(--orange); }
.btn-solid { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-solid:hover { background: var(--orange-2); border-color: var(--orange-2); }

/* Pulse latente del botón "Más información" — agranda y reduce para llamar
   la atención, con halo naranja que se expande. Pausado al hover/focus
   para no distraer cuando el usuario ya está atento al botón. */
.btn-pulse {
  position: relative;
  animation: btnPulse 2.4s ease-in-out infinite;
}
.btn-pulse:hover, .btn-pulse:focus-visible { animation-play-state: paused; }
@keyframes btnPulse {
  0%, 100% { transform: scale(1);     box-shadow: 0 0 0 0 rgba(238, 115, 32, .55); }
  40%      { transform: scale(1.08);  box-shadow: 0 0 0 10px rgba(238, 115, 32, 0); }
  70%      { transform: scale(1);     box-shadow: 0 0 0 0 rgba(238, 115, 32, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}

/* ============================================================ Cuerpo principal: rail + escenario */
.ops-main {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 0;
  background: var(--bg);
}

/* ============================================================ Carril izquierdo */
.ops-rail {
  display: grid;
  grid-template-rows: auto auto auto 1fr;  /* reloj · tiles · acciones · log */
  gap: 10px;
  padding: 14px;
  background: var(--rail-bg);
  border-right: 1px solid var(--rail-bd);
  min-height: 0;
  overflow: hidden;
}

/* Tirador de la persiana: oculto en escritorio. Y el .rail-scroll es
   display:contents en escritorio, de modo que sus 4 secciones participan
   directamente en el grid del .ops-rail — el layout de escritorio NO cambia.
   En móvil ambos cobran vida (ver media query ≤880px). */
.rail-handle  { display: none; }
.rail-scroll  { display: contents; }

/* Reloj + identidad */
.ops-clock {
  display: grid; gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--rail-bd);
  border-radius: var(--radius);
  background: var(--rail-tile-bg);
}
.clock-time {
  font-size: 28px; font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1;
}
.clock-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rail-soft);
}
.clock-zone { color: var(--orange); }
.clock-op {
  display: flex; gap: 8px; align-items: baseline;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed var(--rail-bd);
}
.op-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
}
.op-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.session-uptime {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rail-soft);
  margin-top: 2px;
}

/* Tiles del HUD trasladadas al carril */
.ops-tiles { display: grid; gap: 8px; }

.ops-tile {
  position: relative;
  display: grid; gap: 4px;
  padding: 14px 16px 14px 18px;
  background: var(--rail-tile-bg);
  border: 1px solid var(--rail-tile-bd);
  border-radius: var(--radius);
  text-align: left;
  cursor: var(--cursor-target);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease);
  overflow: hidden;
}
.ops-tile::before {
  /* línea naranja vertical decorativa a la izquierda */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--orange), transparent);
  opacity: .55;
  transition: opacity .2s var(--ease), width .2s var(--ease);
}
.ops-tile:hover {
  background: var(--rail-tile-bg-hover);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.ops-tile:hover::before { opacity: 1; width: 3px; }

.ops-tile.is-active {
  background: var(--rail-tile-bg-hover);
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 6px 20px rgba(238, 115, 32, .14);
}
.ops-rail.has-active .ops-tile:not(.is-active) {
  filter: saturate(.55) opacity(.7);
}

.t-corner {
  position: absolute; top: 8px; right: 10px;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rail-soft);
  opacity: .85;
}
.t-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.t-big {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 30px; line-height: 1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.ops-tile.is-truck .t-big { font-size: 22px; letter-spacing: .04em; }
.t-sub {
  font-size: 12px; color: var(--rail-soft);
  line-height: 1.35;
}
.t-spark {
  position: absolute; right: 12px; bottom: 12px;
  width: 64px; height: 18px;
  color: var(--orange);
  opacity: .85;
}
.t-spark svg { width: 100%; height: 100%; }
.t-spark polyline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.t-go {
  position: absolute; right: 12px; top: 12px;
  width: 16px; height: 16px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.t-go svg { width: 100%; height: 100%; }
.ops-tile:hover .t-go { opacity: 1; transform: translateX(0); }
.ops-tile.is-active .t-go { opacity: 1; transform: translateX(0); color: var(--orange); }

.ops-tile.is-truck { padding-right: 24px; }
.ops-tile.is-truck .t-pulse {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(238, 115, 32, .55);
  animation: truckTileHeartbeat 1.8s ease-out infinite;
}
@keyframes truckTileHeartbeat {
  0%   { box-shadow: 0 0 0 0 rgba(238, 115, 32, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(238, 115, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 115, 32, 0); }
}

/* Acciones rápidas */
.ops-actions {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--rail-bd);
  border-radius: var(--radius);
  background: var(--rail-tile-bg);
}
.actions-head { padding-bottom: 4px; }
.actions-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.actions-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.ops-action {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px;
  background: transparent;
  border: 1px solid var(--rail-tile-bd);
  border-radius: 8px;
  color: var(--rail-text);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600; font-size: 11px;
  text-align: center;
  cursor: var(--cursor-target);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.ops-action svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.ops-action:hover {
  background: var(--rail-tile-bg-hover);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.ops-action.is-running {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange);
}
.ops-action--play svg { color: var(--orange); }
.ops-action:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Log de operaciones */
.ops-log {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 12px 14px;
  border: 1px solid var(--rail-bd);
  border-radius: var(--radius);
  background: var(--rail-tile-bg);
  min-height: 0;
  overflow: hidden;
}
.log-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rail-bd);
  margin-bottom: 8px;
}
.log-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.log-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ok);
}
.log-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(47, 170, 87, .55);
  animation: liveDot 2s ease-out infinite;
}
@keyframes liveDot {
  0%   { box-shadow: 0 0 0 0 rgba(47, 170, 87, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 170, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 170, 87, 0); }
}

.log-list {
  display: flex; flex-direction: column-reverse; gap: 8px;
  overflow: hidden;
  padding-right: 2px;
  min-height: 0;
}
.log-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rail-text);
  animation: logIn .35s var(--ease) both;
}
.log-row .log-ts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--rail-soft);
  letter-spacing: .04em;
  white-space: nowrap;
}
.log-row .log-msg { color: var(--rail-text); }
.log-row .log-tag {
  display: inline-block;
  padding: 0 5px;
  margin-right: 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  vertical-align: 1px;
}
.log-row.log--erp .log-tag    { background: rgba(238, 115, 32, .14); color: var(--orange); }
.log-row.log--gps .log-tag    { background: rgba(47, 170, 87, .14); color: var(--ok); }
.log-row.log--chat .log-tag   { background: rgba(26, 35, 50, .10); color: var(--ink); }
.log-row.log--alert .log-tag  { background: rgba(240, 180, 0, .18); color: #b78700; }
.log-row.log--ok .log-tag     { background: rgba(47, 170, 87, .14); color: var(--ok); }
[data-theme="night"] .log-row.log--chat .log-tag,
[data-theme="dock"]  .log-row.log--chat .log-tag {
  background: rgba(255,255,255,.10); color: #fff;
}
.log-row.log--out {
  animation: logOut .5s var(--ease) forwards;
}
@keyframes logIn  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logOut { to { opacity: 0; transform: translateY(-4px); max-height: 0; margin-top: -8px; } }

/* ============================================================ Escenario central */
.ops-stage {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(238, 115, 32, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, var(--hud-bg-1) 0%, var(--hud-bg-2) 100%);
  color: var(--hud-text);
  overflow: hidden;
  min-height: 0;
}

/* Marcos de registro en las esquinas */
.reg {
  position: absolute;
  width: 28px; height: 28px;
  pointer-events: none;
  border: 0 solid var(--orange);
  opacity: .8;
}
.reg-tl { top: 14px;    left: 14px;    border-top-width: 2px;    border-left-width: 2px; }
.reg-tr { top: 14px;    right: 14px;   border-top-width: 2px;    border-right-width: 2px; }
.reg-bl { bottom: 14px; left: 14px;    border-bottom-width: 2px; border-left-width: 2px; }
.reg-br { bottom: 14px; right: 14px;   border-bottom-width: 2px; border-right-width: 2px; }

/* Fondo HUD */
.hud-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hud-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hud-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 30%, transparent 90%);
}
.hud-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(238, 115, 32, .20) 0%, transparent 38%),
    radial-gradient(circle at 18% 80%, rgba(238, 115, 32, .08) 0%, transparent 30%);
  filter: blur(2px);
}
.hud-scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(238, 115, 32, .06) 50%, transparent 100%);
  background-size: 100% 6px;
  animation: scanlineFlow 5.5s linear infinite;
  opacity: .55;
}
@keyframes scanlineFlow {
  0%   { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}

/* Sweep cartográfico: gradiente cónico rotando lentamente sobre el mapa */
.hud-sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at 50% 55%,
    transparent 0deg,
    transparent 320deg,
    rgba(238, 115, 32, .14) 350deg,
    rgba(238, 115, 32, .22) 358deg,
    rgba(238, 115, 32, .14) 360deg,
    transparent 360deg);
  mask-image: radial-gradient(circle at 50% 55%, #000 12%, transparent 56%);
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 12%, transparent 56%);
  animation: sweep 12s linear infinite;
  opacity: .85;
  mix-blend-mode: screen;
}
@keyframes sweep {
  to { transform: rotate(360deg); }
}

/* Ondas de radio — brotan de la esquina inferior derecha y barren hacia
   arriba-izquierda durante el "respiro" (~2 s) entre que baja la persiana
   y entra el panel de juego. Animación TRANSITORIA (solo corre al activarse
   .is-pinging desde JS, en móvil): no suma a la CPU en idle. Trazo grueso
   constante con non-scaling-stroke + glow naranja, fundido con mix-blend
   screen igual que el sweep. */
.radio-waves {
  position: absolute;
  right: 0; bottom: 0;
  width: 150vmax; height: 150vmax;
  max-width: none;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  mix-blend-mode: screen;
}
.radio-waves .wave {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
  transform-box: view-box;
  transform-origin: 100px 100px;   /* esquina inferior derecha del viewBox */
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(238, 115, 32, .7));
}
.radio-waves.is-pinging { opacity: 1; }
/* 4.8s = 4× más lentas que el 1.2s inicial; emisión escalonada en ~1s para
   que las 4 ondas se vean expandiéndose durante el respiro de 2s. */
.radio-waves.is-pinging .wave { animation: radioPing 4.8s var(--ease) forwards; }
.radio-waves.is-pinging .wave:nth-child(2) { animation-delay: .35s; }
.radio-waves.is-pinging .wave:nth-child(3) { animation-delay: .70s; }
.radio-waves.is-pinging .wave:nth-child(4) { animation-delay: 1.05s; }
@keyframes radioPing {
  0%   { transform: scale(.05); opacity: 0; }
  14%  { opacity: .6; }
  100% { transform: scale(3); opacity: 0; }
}

/* Anotaciones técnicas */
.annot {
  position: absolute;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--hud-text-soft);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.annot-route { top: 18px; left: 50%; transform: translateX(-50%); }
.annot-zone  { bottom: 18px; left: 50%; transform: translateX(-50%); }
.annot::before, .annot::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 1px;
  background: rgba(238, 115, 32, .55);
}
.annot::before { left: -10px; }
.annot::after  { right: -10px; }

/* Tagline en esquina inferior-izquierda, no compite con el mapa */
.stage-tagline {
  position: absolute; bottom: 56px; left: 56px;
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: .98;
  letter-spacing: -.025em;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
  pointer-events: none;
  max-width: 38%;
  z-index: 4;
}
.stage-tagline .tg-line-1,
.stage-tagline .tg-line-2 {
  display: block;
}
.stage-tagline .tg-line-2 {
  color: var(--orange);
}
.stage-tagline::before {
  /* eyebrow técnico encima de la tagline */
  content: "TAGLINE · SAYCUTRANS";
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--orange);
  margin-bottom: 8px;
  text-shadow: none;
  opacity: .85;
}

/* Mapa */
.hud-map {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2;
}
.hud-map svg.es-map {
  /* Mapa ocupando casi todo el escenario central (era max-width 820 + 92% → demasiado pequeño) */
  width: 98%; height: 98%;
  max-width: none; max-height: 98%;
  /* Sin blur: bordes nítidos, sin halo (2026-05-24) */
}
.es-coast path { vector-effect: non-scaling-stroke; }

/* Ciudades clicables */
.city { cursor: var(--cursor-target); }
.city-hit { fill: transparent; }
.city-halo { opacity: 0; transition: opacity .25s var(--ease); }
.city-dot {
  fill: var(--orange);
  filter: drop-shadow(0 0 6px rgba(238, 115, 32, .8));
  transition: transform .18s var(--ease-bouncy);
  transform-box: fill-box; transform-origin: center;
  animation: cityPulse 2.4s ease-in-out infinite;
}
.city:nth-of-type(odd) .city-dot { animation-delay: .8s; }
@keyframes cityPulse {
  0%, 100% { opacity: .65; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.12); }
}
.city-label {
  fill: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 16px;
  letter-spacing: .04em;
  text-shadow: 0 0 8px rgba(0, 0, 0, .9);
  transition: fill .18s var(--ease);
  pointer-events: none;
}
.city:hover .city-dot,
.city:focus-visible .city-dot { transform: scale(1.5); }
.city:hover .city-halo,
.city:focus-visible .city-halo { opacity: 1; }
.city:hover .city-label,
.city:focus-visible .city-label { fill: var(--orange-2); }
.city.is-active .city-dot { transform: scale(1.5); }
.city.is-active .city-halo { opacity: 1; }
.city.is-active .city-label { fill: var(--orange); }

/* Ruta animada */
.es-route {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  filter: drop-shadow(0 0 8px rgba(238, 115, 32, .9));
  animation: routeDraw 2.8s ease-out forwards, routeFlow 1.4s linear 2.8s infinite;
}
@keyframes routeDraw { to { stroke-dashoffset: 0; } }
@keyframes routeFlow {
  from { stroke-dasharray: 14 10; stroke-dashoffset: 0; }
  to   { stroke-dasharray: 14 10; stroke-dashoffset: -48; }
}

/* Camión */
.es-truck { transform-box: fill-box; }
.es-truck .truck-pulse { fill: url(#truck-pulse); animation: truckPulse 1.8s ease-in-out infinite; }
.es-truck .truck-icon  { fill: #fff; }
.truck-trailer { fill: #fff; }
.truck-cab     { fill: var(--orange); }
.truck-line    { stroke: var(--navy); stroke-width: 1; }
.es-truck--principal {
  /* Misma curva que .es-route en index.html. Coords nuevas tras
     regenerar el path de España desde GeoJSON Natural Earth y proyectar
     con equirectangular corregida en latitud (2026-05-24). */
  offset-path: path("M431,467 Q541,447 652,549");
  offset-rotate: auto;
  offset-distance: 0%;
  animation: truckMove 22s ease-in-out 2.6s infinite alternate;
}

/* Rutas y camiones secundarios: discretos, menos protagonismo que el #023 */
.es-route--sec {
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  stroke-dashoffset: 0;
  opacity: .45;
  filter: drop-shadow(0 0 4px rgba(238, 115, 32, .5));
  animation: none;  /* sin dibujado animado */
}
.es-truck--11, .es-truck--17, .es-truck--06 {
  offset-rotate: auto;
  offset-distance: 0%;
}
.es-truck--11 {
  offset-path: path("M482,221 Q652,300 822,384");
  animation: truckMove 26s linear 1.5s infinite alternate;
}
.es-truck--17 {
  offset-path: path("M431,467 Q360,600 280,729");
  animation: truckMove 30s linear 4s infinite alternate;
}
.es-truck--06 {
  offset-path: path("M652,549 Q520,670 384,787");
  animation: truckMove 28s linear 7s infinite alternate-reverse;
}
.es-truck--11 .truck-pulse,
.es-truck--17 .truck-pulse,
.es-truck--06 .truck-pulse {
  opacity: .7;
  animation: truckPulse 2.4s ease-in-out infinite;
}
.es-truck--11 .truck-icon,
.es-truck--17 .truck-icon,
.es-truck--06 .truck-icon {
  fill: #fff;
}
@keyframes truckMove { to { offset-distance: 100%; } }
@keyframes truckPulse {
  0%, 100% { opacity: .85; transform: scale(1); transform-origin: center; transform-box: fill-box; }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* Telemetría flotante del camión — offset arriba-derecha para no tapar labels */
.truck-telemetry {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(8px, -52px);
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: .04em;
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(238, 115, 32, .55);
  border-radius: 3px;
  color: var(--orange-2);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  transition: top 1s linear, left 1s linear, opacity .25s var(--ease);
  opacity: 0;
}
.truck-telemetry::after {
  /* hilo conector hacia el camión */
  content: "";
  position: absolute; left: -1px; bottom: -22px;
  width: 1px; height: 20px;
  background: linear-gradient(180deg, rgba(238, 115, 32, .55), transparent);
}
.truck-telemetry.is-on { opacity: 1; }
.tt-sep { color: rgba(255, 255, 255, .35); margin: 0 6px; }
.tt-id  { color: #fff; font-weight: 700; }
.tt-eta { color: rgba(255, 255, 255, .85); }

/* Botones esquina (auxiliares) — tamaño grande para que se pulsen */
.corner-btn {
  position: absolute; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  border: 1.5px solid rgba(238, 115, 32, .55);
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  letter-spacing: .01em;
  backdrop-filter: blur(4px);
  cursor: var(--cursor-target);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.corner-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(238, 115, 32, .45);
}
.corner-btn svg { width: 22px; height: 22px; color: var(--orange); transition: color .18s var(--ease); flex: none; }
.corner-btn:hover svg { color: #fff; }
.corner-btn-tl { top: 56px; right: 56px; }
.corner-btn-br { bottom: 56px; right: 56px; }

/* Notification chip */
.notif-chip {
  position: absolute; top: 18px; right: 56px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  max-width: 360px;
  background: rgba(13, 19, 32, .92);
  color: #fff;
  border: 1px solid rgba(47, 170, 87, .55);
  border-left: 3px solid var(--ok);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.notif-chip.is-on {
  transform: translateX(0);
  opacity: 1;
}
.notif-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(47, 170, 87, .55);
  animation: liveDot 1.8s ease-out infinite;
}
.notif-body { display: grid; gap: 1px; min-width: 0; }
.notif-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ok);
}
.notif-text {
  font-size: 13px; color: rgba(255, 255, 255, .92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notif-close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .65);
  border-radius: 50%;
  transition: color .15s, background .15s;
}
.notif-close:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.notif-close svg { width: 14px; height: 14px; }

/* ============================================================ Status bar */
.ops-status {
  background: var(--status-bg);
  color: var(--status-text);
  border-top: 1px solid var(--status-line);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 18px;
  height: 36px;
  z-index: 30;
}
.status-group { display: flex; align-items: center; gap: 12px; }
.status-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.status-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.status-sep {
  font-size: 10px; color: rgba(255, 255, 255, .25); user-select: none;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(47, 170, 87, .55);
  animation: liveDot 2s ease-out infinite;
}
.status-dot-offset { animation-delay: .5s; }

/* ============================================================ Side panel */
.side-panel {
  position: fixed; top: 56px; right: 0; bottom: 36px;
  width: min(440px, 92vw);
  z-index: 40;
  background: var(--side-bg);
  border-left: 1px solid var(--side-bd);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  transform: translateX(110%);
  transition: transform .56s var(--ease);
}
.side-panel[hidden] { display: none; }
.side-panel.is-open { transform: translateX(0); }

.side-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--side-bd);
}
.side-head-title { display: grid; gap: 4px; min-width: 0; }
.side-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--side-eyebrow);
}
.side-title {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--side-ink);
}
.side-close {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--side-ink);
  border: 1px solid var(--side-bd);
  transition: background .15s, color .15s, border-color .15s;
  cursor: var(--cursor-target);
}
.side-close:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.side-close svg { width: 16px; height: 16px; }

.side-body {
  padding: 18px 22px 24px;
  overflow-y: auto;
  color: var(--side-ink);
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}
.side-body::-webkit-scrollbar { width: 8px; }
.side-body::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }

/* Backdrop opcional */
.side-backdrop {
  position: fixed; inset: 56px 0 36px 300px;
  z-index: 35;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .5s var(--ease);
  cursor: var(--cursor-target);
}
.side-backdrop[hidden] { display: none; }
.side-backdrop.is-on { opacity: 1; }

/* Contenido de los paneles */
.pn-block + .pn-block { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--side-bd); }
.pn-lede {
  font-size: 15px; line-height: 1.55;
  color: var(--side-ink); margin: 0 0 14px;
}
.pn-h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
.pn-text {
  font-size: 14px; line-height: 1.5;
  color: var(--side-ink); margin: 0 0 12px;
}
.pn-feats {
  display: grid; gap: 12px;
}
.pn-feats li {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  padding: 12px;
  border: 1px solid var(--side-bd);
  border-radius: var(--radius-sm);
  background: var(--rail-tile-bg);
}
.pn-feat-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange);
}
.pn-feat-icon svg { width: 20px; height: 20px; }
.pn-feats h4 {
  margin: 0 0 2px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--side-ink);
}
.pn-feats p {
  margin: 0;
  font-size: 13px; line-height: 1.45;
  color: var(--ink-soft);
}
[data-theme="night"] .pn-feats p,
[data-theme="dock"]  .pn-feats p { color: rgba(255,255,255,.7); }

.pn-steps {
  display: grid; gap: 10px;
}
.pn-steps li {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
}
.pn-step-n {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.pn-tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.pn-tile {
  display: grid; gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--side-bd);
  border-radius: var(--radius-sm);
  background: var(--rail-tile-bg);
}
.pn-tile-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
}
.pn-tile-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
[data-theme="night"] .pn-tile-desc,
[data-theme="dock"]  .pn-tile-desc { color: rgba(255,255,255,.7); }

.pn-quote {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  background: var(--orange-ghost);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; line-height: 1.5;
  color: var(--side-ink);
}
.pn-pains {
  display: grid; gap: 6px;
}
.pn-pains li {
  position: relative;
  padding-left: 18px;
  font-size: 13px; line-height: 1.45;
  color: var(--ink-soft);
}
.pn-pains li::before {
  content: "▸";
  position: absolute; left: 0; top: 0;
  color: var(--orange);
}
[data-theme="night"] .pn-pains li,
[data-theme="dock"]  .pn-pains li { color: rgba(255,255,255,.78); }

.pn-shot {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--side-bd);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.pn-shot img { display: block; width: 100%; height: auto; }
.pn-shot figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  border-top: 1px solid var(--side-bd);
  background: var(--rail-tile-bg);
}

/* ============================================================ Mockup App del chofer (panel Flota) */
.pn-block--app { padding-bottom: 4px; }

.chofer-app {
  position: relative;
  background: #0e1622;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, .20);
  border-radius: 36px;
  overflow: hidden;
  margin: 6px auto 14px;
  max-width: 340px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-family: 'Hanken Grotesk', sans-serif;
}
.chofer-app::before {
  content: "";
  display: block;
  width: 86px;
  height: 20px;
  margin: 8px auto 0;
  background: #080d16;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
}
.chofer-app::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  margin: 10px auto 12px;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
}
.chofer-app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
}
.chofer-app-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; letter-spacing: .02em;
}
.chofer-app-logo strong { color: var(--orange); font-weight: 700; }
.chofer-app-mark { color: var(--orange); flex: none; }
.chofer-app-mark { width: 22px; height: 14px; }
.chofer-app-time {
  font-size: 11px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .65);
}

.chofer-app-body { padding: 14px; display: grid; gap: 10px; }

.ca-viaje-card {
  display: grid; gap: 2px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
}
.ca-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
}
.ca-route {
  margin: 2px 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 18px;
  letter-spacing: -.01em;
  color: #fff;
}
.ca-meta { font-size: 12px; color: rgba(255, 255, 255, .65); }

/* Badge con el estado actual */
.ca-state-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .35);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.ca-state-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: caStateDot 1.6s ease-out infinite;
  flex: none;
}
@keyframes caStateDot {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: .9; }
  70%  { box-shadow: 0 0 0 8px transparent; opacity: 1; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: .9; }
}
/* Colores por estado (paleta de migración 016_estados_viaje_aceptacion) */
.chofer-app[data-state="pendiente"]  .ca-state-badge { background: rgba(245, 158, 11, .14); color: #fbbf24; border-color: rgba(245, 158, 11, .45); }
.chofer-app[data-state="aceptado"]   .ca-state-badge { background: rgba(99, 102, 241, .14); color: #818cf8; border-color: rgba(99, 102, 241, .45); }
.chofer-app[data-state="en_curso"]   .ca-state-badge { background: rgba(37, 99, 235, .14); color: #60a5fa; border-color: rgba(37, 99, 235, .45); }
.chofer-app[data-state="llegada"]    .ca-state-badge { background: rgba(238, 115, 32, .18); color: #ffb073; border-color: rgba(238, 115, 32, .55); }
.chofer-app[data-state="entregado"]  .ca-state-badge { background: rgba(22, 163, 74, .18); color: #4ade80; border-color: rgba(22, 163, 74, .55); }

/* Checklist de pasos */
.ca-checklist {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  padding: 8px 0;
}
.ca-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, .42);
  transition: color .25s var(--ease);
}
.ca-check-tick {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .22);
  background: transparent;
  position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.ca-check.is-done { color: #4ade80; }
.ca-check.is-done .ca-check-tick {
  background: #16a34a; border-color: #16a34a;
}
.ca-check.is-done .ca-check-tick::after {
  content: ""; position: absolute;
  left: 3px; top: 5px;
  width: 6px; height: 3px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* Tarjeta de evidencia cuando se entrega */
.ca-evidence {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(22, 163, 74, .12);
  border: 1px solid rgba(22, 163, 74, .35);
  border-radius: 8px;
  color: #4ade80;
}
.ca-evidence[hidden] { display: none; }
.ca-evidence-icon { width: 24px; height: 24px; color: #4ade80; flex: none; }
.ca-evidence-icon svg { width: 100%; height: 100%; }
.ca-evidence-text { display: grid; gap: 1px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.ca-evidence-text strong { color: #4ade80; font-weight: 700; }

/* Botones de acción */
.ca-actions {
  display: grid; gap: 6px;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
.ca-actions:has(.ca-btn:only-child) { grid-template-columns: 1fr; }
.ca-btn {
  padding: 11px 14px;
  border-radius: 8px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: var(--cursor-target);
  transition: background .15s var(--ease), color .15s var(--ease), transform .12s var(--ease), border-color .15s var(--ease);
}
.ca-btn-primary {
  background: var(--orange); color: #fff;
  border-color: var(--orange);
}
.ca-btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
.ca-btn-ghost {
  background: transparent; color: rgba(255, 255, 255, .72);
  border-color: rgba(255, 255, 255, .18);
}
.ca-btn-ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .4); }
.ca-btn-danger {
  background: transparent; color: #fca5a5;
  border-color: rgba(220, 38, 38, .45);
}
.ca-btn-danger:hover { background: rgba(220, 38, 38, .12); color: #fecaca; border-color: rgba(220, 38, 38, .65); }

/* ===== Chat operador ↔ chofer (dentro del panel Flota) ===== */
.ca-chat {
  display: grid; gap: 8px;
  padding: 12px;
  background: var(--rail-tile-bg);
  border: 1px solid var(--side-bd);
  border-radius: var(--radius-sm);
}
.ca-chat-thread {
  display: grid; gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}
.ca-msg {
  display: grid; gap: 3px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 85%;
  animation: caMsgIn .2s var(--ease) both;
}
@keyframes caMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ca-msg--me {
  align-self: end; justify-self: end;
  background: var(--orange); color: #fff;
  border-bottom-right-radius: 4px;
}
.ca-msg--bot {
  align-self: start; justify-self: start;
  background: rgba(26, 35, 50, .06); color: var(--ink);
  border: 1px solid var(--side-bd);
  border-bottom-left-radius: 4px;
}
[data-theme="night"] .ca-msg--bot, [data-theme="dock"] .ca-msg--bot {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14);
}
.ca-msg-meta {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .7;
}
.ca-msg--me .ca-msg-meta { color: rgba(255,255,255,.85); }
.ca-msg-text { word-wrap: break-word; }

.ca-chat-presets {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ca-chat-preset {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--side-bd);
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  color: var(--ink-soft);
  cursor: var(--cursor-target);
  transition: background .12s, color .12s, border-color .12s;
}
[data-theme="night"] .ca-chat-preset, [data-theme="dock"] .ca-chat-preset {
  color: rgba(255,255,255,.72);
}
.ca-chat-preset:hover {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange);
}

.ca-chat-input {
  display: grid; grid-template-columns: 1fr auto; gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--side-bd);
}
.ca-chat-input input {
  padding: 9px 12px;
  border: 1px solid var(--side-bd);
  border-radius: 8px;
  background: var(--rail-bg);
  color: var(--ink);
  font: inherit; font-size: 13px;
  outline: none;
  transition: border-color .12s, background .12s;
}
[data-theme="night"] .ca-chat-input input, [data-theme="dock"] .ca-chat-input input {
  background: rgba(255,255,255,.04); color: #fff;
}
.ca-chat-input input:focus { border-color: var(--orange); }
.ca-chat-send {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--orange); color: #fff;
  border: 0; border-radius: 8px;
  cursor: var(--cursor-target);
  transition: background .12s, transform .12s;
}
.ca-chat-send:hover { background: var(--orange-2); transform: translateY(-1px); }
.ca-chat-send svg { width: 18px; height: 18px; }

/* ===== Modal "Avisar a la flota" (notif push) ===== */
.notify-modal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(13, 19, 32, .72);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
}
.notify-modal[hidden] { display: none; }
.notify-frame {
  width: min(440px, 96vw);
  background: var(--side-bg);
  border-radius: 14px;
  border: 1px solid var(--side-bd);
  box-shadow: var(--shadow);
  color: var(--side-ink);
  overflow: hidden;
  animation: notifyModalIn .22s var(--ease);
}
@keyframes notifyModalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.notify-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--side-bd);
}
.notify-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.notify-title {
  margin: 4px 0 0;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 18px;
  color: var(--side-ink);
}
.notify-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--side-bd);
  color: var(--side-ink);
  cursor: var(--cursor-target);
  transition: background .12s, color .12s, border-color .12s;
}
.notify-close:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.notify-close svg { width: 14px; height: 14px; }

.notify-body { display: grid; gap: 10px; padding: 16px 20px 20px; }
.notify-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
[data-theme="night"] .notify-label, [data-theme="dock"] .notify-label { color: rgba(255,255,255,.72); }
.notify-input {
  padding: 10px 12px;
  border: 1px solid var(--side-bd);
  border-radius: 8px;
  background: var(--rail-bg);
  color: var(--side-ink);
  font: inherit; font-size: 14px;
  outline: none;
}
[data-theme="night"] .notify-input, [data-theme="dock"] .notify-input { background: rgba(255,255,255,.04); }
.notify-input:focus { border-color: var(--orange); }
.notify-targets {
  display: grid; gap: 6px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--side-ink);
}
.notify-targets label { display: inline-flex; align-items: center; gap: 8px; cursor: var(--cursor-target); }
.notify-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  padding-top: 6px;
}

/* ===== Modal galería "Míralo por dentro" — imágenes grandes con scroll ===== */
.gallery-modal {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(13, 19, 32, .82);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 24px;
}
.gallery-modal[hidden] { display: none; }
.gallery-frame {
  width: min(1200px, 96vw);
  height: min(92vh, 1000px);
  background: var(--side-bg);
  color: var(--side-ink);
  border: 1px solid var(--side-bd);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  animation: notifyModalIn .25s var(--ease);
}
.gallery-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--side-bd);
}
.gallery-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.gallery-title {
  margin: 4px 0 0;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -.01em;
  color: var(--side-ink);
}
.gallery-close {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--side-bd);
  color: var(--side-ink);
  cursor: var(--cursor-target);
  transition: background .12s, color .12s, border-color .12s;
}
.gallery-close:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.gallery-close svg { width: 16px; height: 16px; }

.gallery-body {
  overflow-y: auto;
  padding: 26px 32px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}
.gallery-body::-webkit-scrollbar { width: 10px; }
.gallery-body::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 5px; }
.gallery-body::-webkit-scrollbar-track { background: transparent; }

.gallery-shot {
  margin: 0 0 36px;
  display: grid; gap: 12px;
}
.gallery-shot:last-child { margin-bottom: 0; }
.gallery-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 10px;
  border: 1px solid var(--side-bd);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  background: #fff;
}
.gallery-shot figcaption {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-soft);
  padding: 0 4px;
}
.gallery-shot figcaption strong {
  color: var(--side-ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}
[data-theme="night"] .gallery-shot figcaption,
[data-theme="dock"]  .gallery-shot figcaption { color: rgba(255,255,255,.78); }

/* Móvil: padding reducido y figcaption más pequeño */
@media (max-width: 720px) {
  .gallery-modal { padding: 8px; }
  .gallery-frame { width: 100%; height: 100%; max-height: none; border-radius: 10px; }
  .gallery-head { padding: 14px 16px 10px; }
  .gallery-title { font-size: 17px; }
  .gallery-body { padding: 16px 14px 24px; }
  .gallery-shot { margin-bottom: 22px; }
  .gallery-shot figcaption { font-size: 13px; }
}

/* Notif toast en el escenario (cuando se envía push, si chofer-app abierto sale encima del móvil) */
.push-toast {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 50;
  padding: 12px 16px;
  background: rgba(13, 19, 32, .95);
  color: #fff;
  border: 1px solid var(--orange);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  display: grid; gap: 4px;
  min-width: 240px; max-width: 320px;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.push-toast.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.push-toast-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
}
.push-toast-text { font-size: 14px; line-height: 1.35; }
[data-theme="night"] .pn-shot figcaption,
[data-theme="dock"]  .pn-shot figcaption { color: rgba(255,255,255,.7); }

.pn-city {
  display: grid; gap: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--orange-ghost);
}
.pn-city-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
}
.pn-city-name {
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 18px; color: var(--side-ink);
}
.pn-city-meta {
  font-size: 11px; color: var(--ink-soft);
  letter-spacing: .04em;
}
[data-theme="night"] .pn-city-meta,
[data-theme="dock"]  .pn-city-meta { color: rgba(255,255,255,.75); }

/* ============================================================ Overlay "Versión texto" */
/* El overlay vive siempre en el DOM. Estado oculto = opacity 0 +
   visibility hidden + pointer-events:none (NO display:none, para que
   las transiciones de apertura/cierre funcionen). Estado abierto =
   clase .is-open añadida por el JS. El backdrop deja entrever la sala
   de operaciones detrás (.55 de alpha + blur fuerte), no la tapa
   entera como antes (.82 dejaba el fondo en negro). */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  /* Estado cerrado: backdrop transparente y sin blur — la sala de
     operaciones está intacta. Al abrir, el color/blur se animan hasta
     su valor final, así el efecto es literal: "aparece desvaneciendo
     desde nada". */
  background: rgba(13, 19, 32, 0);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* CIERRE. Duración 0.75 s con curva sigmoide
     (cubic-bezier(.65, 0, .35, 1)): arranca lento, acelera al medio,
     desacelera al final. La animación se desarrolla a lo largo de
     todo el tiempo en vez de concentrarse en los primeros 100 ms. */
  transition: background .75s cubic-bezier(.65, 0, .35, 1),
              backdrop-filter .75s cubic-bezier(.65, 0, .35, 1),
              -webkit-backdrop-filter .75s cubic-bezier(.65, 0, .35, 1),
              opacity .7s cubic-bezier(.65, 0, .35, 1),
              visibility 0s linear .75s;
}
.overlay.is-open {
  background: rgba(13, 19, 32, .55);
  backdrop-filter: blur(10px) saturate(.85);
  -webkit-backdrop-filter: blur(10px) saturate(.85);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* APERTURA. Duración 0.85 s con la MISMA curva sigmoide. Más larga
     que el cierre para que la entrada se "saboree" un instante más. */
  transition: background .85s cubic-bezier(.65, 0, .35, 1),
              backdrop-filter .85s cubic-bezier(.65, 0, .35, 1),
              -webkit-backdrop-filter .85s cubic-bezier(.65, 0, .35, 1),
              opacity .8s cubic-bezier(.65, 0, .35, 1),
              visibility 0s linear 0s;
}
.overlay-frame {
  position: relative;
  width: min(1100px, 100%); height: min(86vh, 820px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
  /* Estado base (cerrado). Movimiento amplio para que sea visible:
     baja 34 px, escala al 92 % y se difumina con un blur fuerte (se
     "va de foco"). En el cierre vuelve a este estado a lo largo de
     0.75 s — el blur+scale lo hace claramente perceptible. */
  transform: translateY(34px) scale(.92);
  opacity: 0;
  filter: blur(8px);
  transition: transform .8s cubic-bezier(.65, 0, .35, 1),
              opacity .7s cubic-bezier(.65, 0, .35, 1),
              filter .7s cubic-bezier(.65, 0, .35, 1);
}
.overlay.is-open .overlay-frame {
  /* Estado abierto: posición final + foco nítido. Apertura de 0.85 s. */
  transform: none;
  opacity: 1;
  filter: blur(0px);
  transition: transform .9s cubic-bezier(.65, 0, .35, 1),
              opacity .8s cubic-bezier(.65, 0, .35, 1),
              filter .75s cubic-bezier(.65, 0, .35, 1);
}
/* Respeto a quien pide "menos movimiento" en su sistema. */
@media (prefers-reduced-motion: reduce) {
  .overlay, .overlay.is-open,
  .overlay-frame, .overlay.is-open .overlay-frame {
    transition: opacity .15s linear;
    transform: none;
    filter: none;
  }
}
.overlay-iframe { width: 100%; height: 100%; border: 0; display: block; }
.overlay-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(13, 19, 32, .9); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  cursor: var(--cursor-target);
}
.overlay-close:hover { background: var(--orange); }
.overlay-close svg { width: 18px; height: 18px; }

/* ============================================================ Móvil (≤ 880px) */
@media (max-width: 880px) {
  body { grid-template-rows: auto 1fr 28px; }
  .ops-head { padding: 10px 14px; gap: 8px; height: auto; display: flex; flex-direction: column; align-items: stretch; }
  /* La barra pasa a columna: el logotipo y el reclamo del DeCA comparten fila y se
     separan a los extremos, en vez de quedar pegados uno al otro. */
  .head-left { justify-content: space-between; width: 100%; gap: 12px; }
  .brand { flex-direction: row; align-items: center; gap: 12px; }
  .brand-mark { height: 72px; }
  .wordmark { font-size: 2rem; }
  .breadcrumb { display: none; }
  .ops-head-mid { display: none; }
  .ops-head-actions { justify-content: flex-end; width: 100%; gap: 8px; }
  .btn-sm { padding: 7px 14px; font-size: .82rem; }

  /* El mapa ocupa TODA la zona central; el carril ya no se apila debajo:
     pasa a ser una persiana fija sobre el mapa (abajo). */
  .ops-main  { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .ops-stage { height: auto; min-height: 0; }

  .stage-tagline {
    bottom: 88px; left: 18px;   /* por encima del tirador de la persiana (status 28 + handle 46) */
    font-size: clamp(20px, 5.5vw, 28px);
    max-width: 78%;
  }
  .stage-tagline::before { font-size: 9px; margin-bottom: 4px; }
  .annot-route { top: 8px; }
  .annot-zone  { bottom: 8px; }
  .reg { width: 18px; height: 18px; }
  .reg-tl { top: 8px; left: 8px; }
  .reg-tr { top: 8px; right: 8px; }
  .reg-bl { bottom: 8px; left: 8px; }
  .reg-br { bottom: 8px; right: 8px; }
  .corner-btn-tl { top: 12px; right: 12px; padding: 6px 10px; font-size: 11px; }
  .corner-btn-br { bottom: 12px; right: 12px; padding: 6px 10px; font-size: 11px; }
  .corner-btn-tl span,
  .corner-btn-br span { display: none; }

  .notif-chip { top: 12px; right: 12px; left: 12px; max-width: none; }

  /* ---- Persiana de datos: el carril es un cajón inferior que sube/baja ---- */
  .ops-rail {
    --handle-h: 46px;
    position: fixed; left: 0; right: 0; bottom: 28px;   /* 28px = status bar móvil */
    z-index: 26;
    display: flex; flex-direction: column;
    max-height: 76vh;
    padding: 0; gap: 0;
    border-right: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, .34);
    overflow: hidden;
    transform: translateY(calc(100% - var(--handle-h)));
    transition: transform .84s var(--ease);
  }
  .ops-rail.is-up { transform: translateY(0); }

  .rail-handle {
    display: flex; align-items: center; gap: 10px;
    flex: none; height: var(--handle-h);
    padding: 0 16px;
    background: var(--rail-bg);
    border-bottom: 1px solid var(--rail-bd);
    border-radius: 16px 16px 0 0;
    cursor: var(--cursor-target);
  }
  .rail-handle-grab {
    width: 40px; height: 4px; border-radius: 999px;
    background: var(--line-strong); flex: none;
  }
  .rail-handle-label {
    margin-right: auto;
    font-size: 11px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--orange);
  }
  .rail-handle-chevron {
    width: 20px; height: 20px; color: var(--rail-soft);
    transition: transform .84s var(--ease);
  }
  .ops-rail.is-up .rail-handle-chevron { transform: rotate(180deg); }

  .rail-scroll {
    display: flex; flex-direction: column; gap: 8px;
    flex: 1; min-height: 0;
    padding: 10px;
    overflow-y: auto;
  }

  .ops-tile { padding: 10px 12px; }
  .ops-log { max-height: 220px; }

  /* Status bar minimal */
  .ops-status { padding: 0 10px; height: 28px; }
  .status-group:not(.status-group-right) .status-item:nth-child(n+3),
  .status-group:not(.status-group-right) .status-sep:nth-child(n+2) { display: none; }
  .status-group-right .status-item:not(.status-clock),
  .status-group-right .status-sep { display: none; }

  /* ---- Paneles laterales: JUEGO entra por la izquierda, INFO por la derecha ---- */
  .side-panel { top: 52px; bottom: 28px; width: 100%; }
  .side-panel.side-panel--left {
    left: 0; right: auto;
    border-left: 0; border-right: 1px solid var(--side-bd);
    transform: translateX(-110%);
  }
  .side-panel.side-panel--left.is-open { transform: translateX(0); }
  .side-backdrop { inset: 52px 0 28px 0; }

  .hud-map svg.es-map { width: 100%; max-width: none; }
}

/* ============================================================ Pantallas grandes (≥ 1600px) */
@media (min-width: 1600px) {
  .ops-main { grid-template-columns: 340px 1fr; }
  .ops-rail { padding: 18px; gap: 14px; }
  /* La tagline sigue en la esquina inferior-izquierda; solo se permite que
     crezca un poco. No tocar `top`: dejarlo en auto para no estirarla. */
  .stage-tagline { font-size: clamp(30px, 2.4vw, 44px); bottom: 72px; left: 72px; max-width: 36%; }
  .reg-tl, .reg-tr, .reg-bl, .reg-br { width: 36px; height: 36px; }
  .reg-tl { top: 18px; left: 18px; }
  .reg-tr { top: 18px; right: 18px; }
  .reg-bl { bottom: 18px; left: 18px; }
  .reg-br { bottom: 18px; right: 18px; }
}

/* ============================================================ Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .hud-scanline, .hud-sweep, .es-route, .es-truck,
  .city-dot, .log-dot, .status-dot, .notif-dot, .t-pulse,
  .truck-pulse, .radio-waves .wave {
    animation: none !important;
    transition: none !important;
  }
  .es-route { stroke-dashoffset: 0; }
  .es-truck { offset-distance: 50%; }
  .notif-chip { transition: opacity .15s !important; transform: translateX(0); }
}

/* ============================================================ Estados de foco visibles (a11y) */
.ops-tile:focus-visible,
.corner-btn:focus-visible,
.side-close:focus-visible,
.btn:focus-visible,
.notif-close:focus-visible,
.overlay-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.city:focus-visible { outline: none; }
