/* ==========================================================================
   WARAIRA · estilos
   Copia fiel de los tokens y componentes de diseno-referencia.html
   ========================================================================== */

/* ---------- Tipografía: IBM Plex Mono (local) ---------- */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; font-display: swap; src: url(../tipografia/ibm-plex-mono-200-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 200; font-display: swap; src: url(../tipografia/ibm-plex-mono-200-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url(../tipografia/ibm-plex-mono-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url(../tipografia/ibm-plex-mono-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../tipografia/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../tipografia/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; font-display: swap; src: url(../tipografia/ibm-plex-mono-400-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: italic; font-weight: 400; font-display: swap; src: url(../tipografia/ibm-plex-mono-400-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../tipografia/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../tipografia/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../tipografia/ibm-plex-mono-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../tipografia/ibm-plex-mono-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --black:#000000; --ink-950:#050505; --ink-900:#0a0a0a; --ink-850:#0f0f0f; --ink-800:#151515; --ink-750:#1c1c1c;
  --ink-700:#242424; --ink-600:#333333; --ink-500:#4a4a4a; --ink-400:#6b6b6b; --ink-300:#8c8c8c; --ink-200:#b3b3b3;
  --ink-100:#d6d6d6; --ink-50:#ededed; --white:#ffffff;
  --line-a08:rgba(255,255,255,.08); --line-a14:rgba(255,255,255,.14); --line-a24:rgba(255,255,255,.24);
  --line-a40:rgba(255,255,255,.40); --line-a70:rgba(255,255,255,.70);
  --orange-300:#ffa66b; --orange-400:#ff8436; --orange-500:#ff6a13; --orange-600:#d95208; --orange-800:#5a2104; --orange-900:#241002;
  --orange-a16:rgba(255,106,19,.16); --orange-a32:rgba(255,106,19,.32);
  --bg-app:var(--black); --bg-canvas:var(--ink-950); --surface-panel:rgba(8,8,8,.86); --surface-panel-solid:var(--ink-900);
  --surface-raised:var(--ink-800); --surface-hover:rgba(255,255,255,.05); --surface-active:rgba(255,255,255,.10);
  --surface-inverse:var(--ink-50);
  --text-1:var(--ink-50); --text-2:var(--ink-200); --text-3:var(--ink-400); --text-disabled:var(--ink-600); --text-inverse:var(--black);
  --line-grid:var(--line-a08); --line-1:var(--line-a14); --line-2:var(--line-a24); --line-3:var(--line-a40); --line-strong:var(--line-a70);
  --accent:var(--orange-500); --accent-hover:var(--orange-400); --accent-press:var(--orange-600); --accent-text:var(--orange-400);
  --accent-bg:var(--orange-a16); --accent-line:var(--orange-a32);
  --status-live:var(--ink-50); --status-idle:var(--ink-400); --status-alert:var(--orange-500); --focus-ring:var(--ink-50);

  --font-mono:'IBM Plex Mono','JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --weight-thin:200; --weight-light:300; --weight-regular:400; --weight-medium:500; --weight-semibold:600;
  --size-2xs:9px; --size-xs:10px; --size-sm:11px; --size-md:12px; --size-base:13px; --size-lg:15px; --size-xl:18px;
  --size-2xl:24px; --size-3xl:32px; --size-4xl:48px; --size-5xl:72px; --size-6xl:112px;
  --tracking-display:-0.02em; --tracking-label:0.08em; --tracking-wide:0.16em;

  --control-h-sm:22px; --control-h:28px; --control-h-lg:36px; --panel-pad:12px;

  --scrim:rgba(0,0,0,.72); --blur-panel:blur(6px);
  --vignette:radial-gradient(ellipse at center,rgba(0,0,0,0) 45%,rgba(0,0,0,.85) 100%);
  --ease-hud:cubic-bezier(.2,0,0,1); --dur-fast:120ms; --dur:200ms; --dur-slow:400ms;
}

/* Ajustes de tamaño que aplica el diseño aprobado sobre el tablero */
:root {
  --size-2xs:11px; --size-xs:12px; --size-sm:13px; --size-md:14px; --size-base:15px;
  --text-2:var(--ink-100); --text-3:var(--ink-300);
  --type-label:var(--weight-medium) 12px/1.2 var(--font-mono);
  --type-micro:var(--weight-regular) 11px/1.3 var(--font-mono);
  --type-small:var(--weight-regular) 14px/1.5 var(--font-mono);
  --type-body:var(--weight-regular) 15px/1.5 var(--font-mono);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg-app); color: var(--text-1); font-family: var(--font-mono); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow: hidden; }
::selection { background: var(--accent); color: var(--black); }
:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 2px; }
::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background: var(--ink-600); } ::-webkit-scrollbar-track { background: transparent; }
button { font-family: inherit; }
@keyframes hud-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }

.label { font: var(--type-label); letter-spacing: var(--tracking-label); color: var(--text-3); }
.micro { font: var(--type-micro); color: var(--text-3); }
.sep-v { width: 1px; height: 18px; background: var(--line-2); flex: none; }
.flex1 { flex: 1; }

/* ---------- Estructura ---------- */
.tablero { width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg-app); display: flex; flex-direction: column; font-family: var(--font-mono); color: var(--text-1); }
.cuerpo { flex: 1; min-height: 0; display: flex; gap: 1px; background: var(--line-1); }
.lateral-izq { width: 300px; flex: none; display: flex; flex-direction: column; gap: 1px; background: var(--line-1); }
.lateral-izq > div { background: var(--black); }
.lateral-der { width: 390px; flex: none; background: var(--black); display: flex; flex-direction: column; min-height: 0; }
.zona-mapa { flex: 1; min-width: 0; position: relative; background: var(--black); overflow: hidden; }

/* ---------- Barra superior ---------- */
.barra-sup { height: 44px; flex: none; display: flex; align-items: center; gap: 13px; padding: 0 16px; border-bottom: 1px solid var(--line-1); background: var(--black); }
.marca-waraira { font: var(--weight-medium) 15px/1 var(--font-mono); letter-spacing: .16em; white-space: nowrap; }
/* En pantallas angostas, el indicador que no cabe entero pasa a una segunda fila oculta (nunca queda cortado a la mitad). */
.fuentes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 11px; height: 16px; min-width: 0; overflow: hidden; }
.barra-sup .pestanas button { padding: 0 8px; }
.bcv { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 28px; border: 1px solid var(--line-1); white-space: nowrap; }
.bcv-valor { font: var(--weight-regular) 15px/1 var(--font-mono); }
.bcv { cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.bcv:hover { background: var(--surface-hover); border-color: var(--line-3); }
.bcv.seleccionado { border-color: var(--line-strong); }
.bcv .bcv-var { color: var(--text-2); }
.bcv.alerta { border-color: var(--accent); }
.bcv.alerta .bcv-valor, .bcv.alerta .bcv-var { color: var(--accent-text); }
.relojes { display: flex; align-items: center; gap: 18px; font: var(--weight-regular) 15px/1 var(--font-mono); white-space: nowrap; }
.relojes > div { display: flex; gap: 8px; align-items: baseline; }

/* ---------- Íconos (lucide) ---------- */
.icono { display: inline-block; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: center/contain no-repeat; mask: center/contain no-repeat; }
.i-plane { -webkit-mask-image: url(../img/iconos/plane.svg); mask-image: url(../img/iconos/plane.svg); }
.i-ship { -webkit-mask-image: url(../img/iconos/ship.svg); mask-image: url(../img/iconos/ship.svg); }
.i-flame { -webkit-mask-image: url(../img/iconos/flame.svg); mask-image: url(../img/iconos/flame.svg); }
.i-activity { -webkit-mask-image: url(../img/iconos/activity.svg); mask-image: url(../img/iconos/activity.svg); }
.i-cloud-rain { -webkit-mask-image: url(../img/iconos/cloud-rain.svg); mask-image: url(../img/iconos/cloud-rain.svg); }
.i-newspaper { -webkit-mask-image: url(../img/iconos/newspaper.svg); mask-image: url(../img/iconos/newspaper.svg); }
.i-terminal { -webkit-mask-image: url(../img/iconos/terminal.svg); mask-image: url(../img/iconos/terminal.svg); }
.i-heart { -webkit-mask-image: url(../img/iconos/heart.svg); mask-image: url(../img/iconos/heart.svg); }
.i-plus { -webkit-mask-image: url(../img/iconos/plus.svg); mask-image: url(../img/iconos/plus.svg); }
.i-minus { -webkit-mask-image: url(../img/iconos/minus.svg); mask-image: url(../img/iconos/minus.svg); }
.i-crosshair { -webkit-mask-image: url(../img/iconos/crosshair.svg); mask-image: url(../img/iconos/crosshair.svg); }
.i-ruler { -webkit-mask-image: url(../img/iconos/ruler.svg); mask-image: url(../img/iconos/ruler.svg); }
.i-download { -webkit-mask-image: url(../img/iconos/download.svg); mask-image: url(../img/iconos/download.svg); }
.i-copy { -webkit-mask-image: url(../img/iconos/copy.svg); mask-image: url(../img/iconos/copy.svg); }
.i-skip-back { -webkit-mask-image: url(../img/iconos/skip-back.svg); mask-image: url(../img/iconos/skip-back.svg); }
.i-play { -webkit-mask-image: url(../img/iconos/play.svg); mask-image: url(../img/iconos/play.svg); }
.i-skip-forward { -webkit-mask-image: url(../img/iconos/skip-forward.svg); mask-image: url(../img/iconos/skip-forward.svg); }
.i-barco-tanquero { -webkit-mask-image: url(../img/iconos/barco-tanquero.svg); mask-image: url(../img/iconos/barco-tanquero.svg); }
.i-barco-carga { -webkit-mask-image: url(../img/iconos/barco-carga.svg); mask-image: url(../img/iconos/barco-carga.svg); }
.i-barco-pasajeros { -webkit-mask-image: url(../img/iconos/barco-pasajeros.svg); mask-image: url(../img/iconos/barco-pasajeros.svg); }
.i-barco-pesca { -webkit-mask-image: url(../img/iconos/barco-pesca.svg); mask-image: url(../img/iconos/barco-pesca.svg); }
.i-barco-otros { -webkit-mask-image: url(../img/iconos/barco-otros.svg); mask-image: url(../img/iconos/barco-otros.svg); }
.i-mechero { -webkit-mask-image: url(../img/iconos/mechero.svg); mask-image: url(../img/iconos/mechero.svg); }
.i-ciclon { -webkit-mask-image: url(../img/iconos/ciclon.svg); mask-image: url(../img/iconos/ciclon.svg); }
.i-x { -webkit-mask-image: url(../img/iconos/x.svg); mask-image: url(../img/iconos/x.svg); }
.i-triangle-alert { -webkit-mask-image: url(../img/iconos/triangle-alert.svg); mask-image: url(../img/iconos/triangle-alert.svg); }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-h-sm); padding: 0 8px; border-radius: 0; font: var(--weight-medium) var(--size-2xs)/1 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background var(--dur-fast) var(--ease-hud), border-color var(--dur-fast) var(--ease-hud), color var(--dur-fast); background: transparent; color: var(--text-1); border: 1px solid var(--line-2); }
.boton .icono { width: 12px; height: 12px; }
.boton:hover { background: var(--surface-hover); border-color: var(--line-3); }
.boton:active { background: var(--surface-active); }
.boton.primario { background: var(--ink-50); color: var(--black); border-color: transparent; }
.boton.primario:hover { background: var(--white); }
.boton.primario:active { background: var(--ink-200); }
.boton.alerta { background: transparent; color: var(--accent-text); border-color: var(--accent); }
.boton.alerta:hover { background: var(--accent-bg); }
.boton.alerta:active { background: var(--accent); color: var(--black); }
/* APOYAR (Ko-fi): mismo estilo blanco que tenía Briefing (.boton.primario). */
.boton.apoyar { flex: none; text-decoration: none; }
.boton.activo { background: var(--surface-active); color: var(--text-1); border-color: var(--line-strong); }
.boton.bloque { display: flex; width: 100%; }
.boton:disabled, .boton.primario:disabled { background: transparent; color: var(--text-disabled); border-color: var(--line-1); cursor: not-allowed; }

.boton-icono { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 0; color: var(--text-2); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.boton-icono:hover { background: var(--surface-hover); color: var(--text-1); }
.boton-icono.chico { width: 22px; height: 22px; }
.boton-icono.chico .icono { width: 12px; height: 12px; }
.boton-icono:disabled { color: var(--text-disabled); background: transparent; cursor: not-allowed; }

/* ---------- Punto de estado ---------- */
.estado { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.estado-punto { position: relative; width: 6px; height: 6px; flex: none; }
.estado-punto::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--c); }
.estado-punto.pulso::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--c); animation: hud-pulse 1.6s var(--ease-hud) infinite; }
.estado[data-nivel="live"] { --c: var(--ink-50); }
.estado[data-nivel="idle"] { --c: var(--ink-400); }
.estado[data-nivel="alert"] { --c: var(--accent); }
.estado[data-nivel="off"] .estado-punto::before { background: transparent; border: 1px solid var(--ink-400); }
.estado-nombre { font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-2); }
.estado[data-nivel="alert"] .estado-nombre { color: var(--accent-text); }
.estado-detalle { font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; }

/* ---------- Panel ---------- */
.panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-panel); border: 1px solid var(--line-1); }
.panel-cab { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 var(--panel-pad); border-bottom: 1px solid var(--line-1); flex: none; }
.panel-codigo { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; background: var(--ink-50); color: var(--black); font: var(--weight-semibold) var(--size-2xs)/1 var(--font-mono); flex: none; }
.panel-titulo { font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-meta { font: var(--type-micro); color: var(--text-3); white-space: nowrap; }
.panel-cuerpo { flex: 1; min-height: 0; padding: var(--panel-pad); }
.panel.alerta { border-color: var(--accent-line); }
.panel.alerta > .panel-cab { border-bottom-color: var(--accent-line); }
.panel.alerta .panel-codigo { background: var(--accent); }
.panel.alerta .panel-titulo { color: var(--accent-text); }

/* Cruces en esquinas */
.cruz { position: absolute; width: var(--cs, 9px); height: var(--cs, 9px); pointer-events: none; z-index: 2; }
.cruz::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: var(--cc, var(--line-strong)); }
.cruz::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; background: var(--cc, var(--line-strong)); }
.cruz.tl { top: var(--ci, 0); left: var(--ci, 0); transform: translate(-50%, -50%); }
.cruz.tr { top: var(--ci, 0); right: var(--ci, 0); transform: translate(50%, -50%); }
.cruz.bl { bottom: var(--ci, 0); left: var(--ci, 0); transform: translate(-50%, 50%); }
.cruz.br { bottom: var(--ci, 0); right: var(--ci, 0); transform: translate(50%, 50%); }
.panel.alerta > .cruz { --cc: var(--accent); }

/* Escuadras en esquinas */
.escuadra { position: absolute; width: 10px; height: 10px; pointer-events: none; --b: 1px solid var(--bc, var(--line-strong)); }
.escuadra.tl { top: -1px; left: -1px; border-top: var(--b); border-left: var(--b); }
.escuadra.tr { top: -1px; right: -1px; border-top: var(--b); border-right: var(--b); }
.escuadra.bl { bottom: -1px; left: -1px; border-bottom: var(--b); border-left: var(--b); }
.escuadra.br { bottom: -1px; right: -1px; border-bottom: var(--b); border-right: var(--b); }
.panel.alerta > .escuadra { --bc: var(--accent); }

/* ---------- Casilla ---------- */
.casilla { display: flex; align-items: center; gap: 8px; min-height: 20px; cursor: pointer; user-select: none; }
.casilla-caja { width: 12px; height: 12px; flex: none; border: 1px solid var(--line-3); display: inline-flex; align-items: center; justify-content: center; }
.casilla.activa .casilla-caja { border-color: var(--ink-50); }
.casilla.activa .casilla-caja::after { content: ''; width: 6px; height: 6px; background: var(--ink-50); }
.casilla-texto { flex: 1; font: var(--type-small); color: var(--text-2); }
.casilla.activa .casilla-texto { color: var(--text-1); }
.casilla-meta { font: var(--type-micro); color: var(--text-3); }
.casilla.deshabilitada { cursor: not-allowed; opacity: .45; }
.casilla.sub { min-height: 16px; padding-left: 24px; margin-top: 4px; }
.casilla.sub .casilla-caja { width: 10px; height: 10px; }
.casilla.sub.activa .casilla-caja::after { width: 4px; height: 4px; }
.casilla.sub .casilla-texto { font: var(--type-micro); letter-spacing: .04em; color: var(--text-3); }
.casilla.sub.activa .casilla-texto { color: var(--text-2); }
/* Deslizador del panel (opacidad de nubes): línea fina y cuadrito, como el resto del diseño */
.deslizador { display: flex; align-items: center; gap: 8px; padding-left: 42px; margin-top: 4px; }
.deslizador-texto, .deslizador-valor { font: var(--type-micro); letter-spacing: .04em; color: var(--text-3); white-space: nowrap; }
.deslizador-valor { min-width: 34px; text-align: right; color: var(--text-2); }
.deslizador input { flex: 1; min-width: 0; height: 12px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.deslizador input::-webkit-slider-runnable-track { height: 1px; background: var(--line-3); }
.deslizador input::-moz-range-track { height: 1px; background: var(--line-3); }
.deslizador input::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 8px; margin-top: -3.5px; background: var(--ink-50); border: 0; border-radius: 0; }
.deslizador input::-moz-range-thumb { width: 8px; height: 8px; background: var(--ink-50); border: 0; border-radius: 0; }

/* ---------- Capas ---------- */
.capas { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.capa { display: flex; flex-direction: column; gap: 2px; }
.capa-fuente { display: flex; align-items: center; gap: 8px; padding-left: 24px; color: var(--text-2); }
.capa-fuente .icono { width: 12px; height: 12px; }
.capa-fuente span:last-child { font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; }
.capa.proximamente .capa-fuente { opacity: .45; }

/* ---------- Alertas ---------- */
.alertas { display: flex; flex-direction: column; gap: 1px; background: var(--line-grid); margin: -4px 0; }
.alerta-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 4px; background: var(--black); cursor: pointer; }
.alerta-item:hover { background: var(--surface-hover); }
.alerta-linea { display: flex; justify-content: space-between; font: var(--type-micro); color: var(--text-3); }
.alerta-titulo { font: var(--weight-medium) 14px/1.3 var(--font-mono); color: var(--accent-text); }
.alerta-detalle { font: var(--type-micro); color: var(--text-2); letter-spacing: .02em; }
.alertas-vacio { padding: 10px 4px; font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; background: var(--black); }

.info-area { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; }
.info-area > div { display: flex; justify-content: space-between; gap: 8px; }
.info-area span:last-child { color: var(--text-2); text-align: right; }

/* ---------- Mapa ---------- */
#mapa { position: absolute; inset: 0; background: var(--black); }
.maplibregl-canvas { outline: none; }
.mapa-rejilla { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/120px 120px, linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0/120px 120px; }
.mapa-vineta { position: absolute; inset: 0; pointer-events: none; background: var(--vignette); }
.hud-mapa { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.hud-mapa .interactivo { pointer-events: auto; }
.hud-texto { position: absolute; display: flex; flex-direction: column; gap: 3px; font: var(--weight-regular) var(--size-sm)/1.25 var(--font-mono); text-shadow: 0 0 4px #000; }
.hud-texto .t3 { color: var(--text-3); }
.hud-texto .t2 { color: var(--text-2); }
.escala-barra { display: flex; align-items: flex-end; margin-top: 4px; }
.escala-barra span:first-child { height: 5px; border: 1px solid var(--line-strong); border-top: none; }
.escala-barra span:last-child { height: 5px; border-bottom: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.controles-zoom { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); }
.controles-zoom .boton-icono { background: var(--black); }
.controles-zoom .boton-icono:hover { background: #0d0d0d; }
.controles-zoom .boton-icono:disabled { background: var(--black); }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-logo { display: none !important; }
.credito-mapa { position: absolute; right: 34px; bottom: 6px; max-width: calc(100% - 68px); text-align: right; font: var(--weight-regular) 10px/12px var(--font-mono); color: var(--ink-500); pointer-events: auto; z-index: 6; }
.credito-mapa a { color: inherit; text-decoration: none; }

/* Etiqueta de la Guayana Esequiba */
.etiqueta-esequibo { pointer-events: none; }
.etiqueta-esequibo text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: var(--ink-100); paint-order: stroke; stroke: #000; stroke-width: 3px; text-anchor: middle; }
.etiqueta-esequibo tspan.sub { fill: var(--ink-300); }

/* ---------- Marcadores de aviones ---------- */
.pin { position: absolute; width: 0; height: 0; cursor: pointer; }
.pin-caja { position: absolute; display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: rgba(0,0,0,.72); border: 1px solid var(--line-3); color: var(--ink-50); font: var(--weight-medium) 12px/1 var(--font-mono); width: 24px; height: 24px; left: -12px; top: -12px; }
.pin-caja .icono { width: 13px; height: 13px; }
.pin-giro { display: flex; }
.pin-sin-rumbo { position: relative; width: 10px; height: 10px; border: 1px solid currentColor; }
.pin-sin-rumbo::after { content: ''; position: absolute; left: 3px; top: 3px; width: 2px; height: 2px; background: currentColor; }
.pin.tenue .pin-caja { width: 18px; height: 18px; left: -9px; top: -9px; color: var(--ink-200); border-color: var(--line-2); }
.pin.tenue .pin-caja .icono { width: 10px; height: 10px; }
.pin.tenue .pin-sin-rumbo { width: 8px; height: 8px; }
.pin.tenue .pin-sin-rumbo::after { left: 2px; top: 2px; }
/* Grupo: cuadrito de esquinas rectas con el ícono de su capa y el número */
.pin.grupo .pin-caja { width: auto; min-width: 26px; height: 26px; left: 0; top: 0; transform: translate(-50%, -50%); padding: 0 6px; gap: 4px; border-radius: 0; border-color: var(--ink-50); white-space: nowrap; }
.pin.grupo .pin-caja .icono { width: 11px; height: 11px; }
.pin.alerta .pin-caja { border-color: var(--accent); color: var(--accent); }
.pin-anillo { position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent); }
.pin-anillo.fondo { background: rgba(255,106,19,.16); }
.pin-anillo.pulso { animation: hud-pulse 1.8s cubic-bezier(.2,0,0,1) infinite; }
.pin-seleccion { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; border: 1px dashed var(--ink-50); }
/* Focos de incendio: el ícono crece y se aclara según la intensidad (FRP) */
.pin.incendio .pin-caja .icono { width: 10px; height: 10px; }
.pin.incendio.frp1 .pin-caja { color: var(--ink-300); border-color: var(--line-2); }
.pin.incendio.frp2 .pin-caja { color: var(--ink-100); }
.pin.incendio.frp2 .pin-caja .icono { width: 12px; height: 12px; }
.pin.incendio.frp3 .pin-caja { color: var(--ink-50); border-color: var(--line-strong); }
.pin.incendio.frp3 .pin-caja .icono { width: 14px; height: 14px; }
.pin.incendio.frp4 .pin-caja { color: var(--white); border-color: var(--ink-50); }
.pin.incendio.frp4 .pin-caja .icono { width: 16px; height: 16px; }
.pin.incendio.persistente .pin-caja { border-style: dashed; }
.pin.alerta.incendio .pin-caja { border-color: var(--accent); color: var(--accent); }


/* Sismos: círculo según magnitud, brillo según antigüedad (más reciente, más brillante) */
.pin-circulo { display: block; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.pin.sismo.m2 .pin-circulo { width: 9px; height: 9px; }
.pin.sismo.m3 .pin-circulo { width: 12px; height: 12px; }
.pin.sismo.m4 .pin-circulo { width: 15px; height: 15px; background: rgba(255,255,255,.12); }
.pin.sismo.m5 .pin-circulo { width: 18px; height: 18px; background: rgba(255,255,255,.2); }
.pin.sismo.e1 .pin-caja { color: var(--white); border-color: var(--ink-50); }
.pin.sismo.e2 .pin-caja { color: var(--ink-100); }
.pin.sismo.e3 .pin-caja { color: var(--ink-300); border-color: var(--line-2); }
.pin.sismo.e4 .pin-caja { color: var(--ink-500); border-color: var(--line-1); }
.pin.alerta.sismo .pin-caja { color: var(--accent); border-color: var(--accent); }
.pin.alerta.sismo.m4 .pin-circulo, .pin.alerta.sismo.m5 .pin-circulo { background: rgba(255,106,19,.2); }

/* Clima: cuadrito con la temperatura de la ciudad; ciclón con su símbolo */
.pin.clima.ciudad .pin-caja { width: auto; min-width: 24px; left: 0; top: 0; transform: translate(-50%, -50%); padding: 0 4px; font: var(--weight-medium) 12px/1 var(--font-mono); white-space: nowrap; }
.pin.clima.tormenta .pin-caja .icono { width: 15px; height: 15px; }
.pin.alerta.clima .pin-caja { color: var(--accent); border-color: var(--accent); }

/* Noticias: cuadrito por estado con el número de noticias */
.pin.prensa .pin-caja { width: auto; min-width: 24px; left: 0; top: 0; transform: translate(-50%, -50%); padding: 0 5px; gap: 4px; white-space: nowrap; }
.pin.prensa .pin-caja .icono { width: 11px; height: 11px; }

/* Noticias sin estado: cuadritos fijos en la esquina del mapa (no son lugares) */
.noticias-fijas { position: absolute; right: 72px; top: 80px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.noticias-fijas[hidden] { display: none; }
.noticias-fija { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 7px; background: rgba(0,0,0,.72); border: 1px solid var(--line-3); color: var(--ink-50); font: var(--weight-medium) 12px/1 var(--font-mono); letter-spacing: .04em; cursor: pointer; }
.noticias-fija:hover { border-color: var(--line-strong); }
.noticias-fija.seleccionado { border-style: dashed; border-color: var(--ink-50); }
.noticias-fija .icono { width: 11px; height: 11px; }
.noticias-fija-texto { color: var(--text-2); font: var(--type-label); letter-spacing: var(--tracking-label); }

/* Línea que une un ícono apartado (para no encimarse) con su posición real */
.pin-guia { position: absolute; left: 0; top: 0; height: 1px; background: var(--line-3); transform-origin: 0 50%; pointer-events: none; }
.pin-guia::after { content: ''; position: absolute; right: -2px; top: -1px; width: 3px; height: 3px; background: var(--ink-200); }
.pin-etiqueta { position: absolute; top: -9px; white-space: nowrap; font: var(--weight-medium) 12px/1.3 var(--font-mono); letter-spacing: .04em; color: var(--text-1); text-shadow: 0 0 3px #000, 0 0 6px #000, 0 0 10px #000; pointer-events: none; }
.pin.alerta .pin-etiqueta { color: var(--accent-text); }
.pin-etiqueta .meta { font-weight: 400; color: var(--text-2); }

/* ---------- Cinta de rumbo ---------- */
.cinta { position: relative; height: 48px; overflow: hidden; }
.cinta-marcas { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.cinta-marca { position: absolute; bottom: 0; width: 1px; }
.cinta-card { position: absolute; bottom: 12px; transform: translateX(-50%); font: var(--weight-medium) var(--size-xs)/1 var(--font-mono); color: var(--text-2); }
.cinta-valor { position: absolute; left: 50%; top: 0; transform: translateX(-50%); padding: 2px 5px; border: 1px solid var(--text-1); font: var(--weight-regular) var(--size-sm)/1 var(--font-mono); color: var(--text-1); background: var(--black); white-space: nowrap; }
.cinta-flecha { position: absolute; left: 50%; top: 18px; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--text-1); border-bottom-width: 0; }

/* ---------- Escala vertical (confianza) ---------- */
.escala-v { position: relative; width: 72px; }
.escala-v .eje { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--line-3); }
.escala-v .marca { position: absolute; left: 0; height: 1px; }
.escala-v .texto { position: absolute; left: 14px; font: var(--type-micro); color: var(--text-3); white-space: nowrap; }
.escala-v { --c: var(--text-1); }
.escala-v.acento { --c: var(--accent); }
.escala-v .banda { position: absolute; left: -1px; width: 3px; background: var(--c); }
.escala-v .valor { position: absolute; left: -2px; display: flex; align-items: center; gap: 4px; }
.escala-v .valor[hidden], .escala-v .banda[hidden] { display: none; }
.escala-v .flecha { width: 0; height: 0; border: 4px solid transparent; border-right-color: var(--c); border-left-width: 0; }
.escala-v .caja { padding: 2px 5px; border: 1px solid var(--c); background: var(--black); color: var(--c); font: var(--weight-regular) var(--size-sm)/1 var(--font-mono); white-space: nowrap; }

/* ---------- Ficha del objetivo ---------- */
.ficha { flex: 1; }
.ficha .panel-cuerpo { overflow-y: auto; }
.ficha-contenido { display: flex; flex-direction: column; gap: 18px; }
.insignia { display: inline-flex; align-items: center; gap: 4px; height: 16px; padding: 0 5px; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); font: var(--weight-medium) var(--size-2xs)/1 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; white-space: nowrap; }
.insignia.alerta { background: var(--accent); color: var(--black); border-color: var(--accent); }
.ficha-nombre { font: var(--weight-light) 32px/1.05 var(--font-mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ficha-sub { font: var(--type-small); color: var(--text-2); }
.ficha-coord { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line-1); }
.ficha-coord .grande { font: var(--weight-regular) 17px/1.3 var(--font-mono); }
.ficha-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); }
.ficha-rejilla > div { background: var(--black); padding: 12px; min-width: 0; }
.ficha-rejilla > .ancho { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.lectura { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lectura-valor { display: inline-flex; align-items: baseline; gap: 4px; color: var(--text-1); font: var(--weight-light) var(--size-2xl)/1 var(--font-mono); white-space: nowrap; }
.lectura-unidad { font: var(--weight-regular) var(--size-xs)/1 var(--font-mono); color: var(--text-3); }
.ruta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ruta > div { display: flex; flex-direction: column; gap: 4px; }
.ruta .der { text-align: right; }
.ruta .codigo { font: var(--weight-regular) 24px/1 var(--font-mono); }
.ruta .eta { color: var(--text-2); }
.ruta .eta.vencida { color: var(--text-3); }
.ruta .codigo.largo { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.filas { display: flex; flex-direction: column; border-top: 1px solid var(--line-1); }
.fila { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-grid); font: var(--type-small); }
.fila span:first-child { color: var(--text-3); font: var(--type-label); letter-spacing: var(--tracking-label); align-self: center; text-transform: uppercase; }
.fila span:last-child { color: var(--text-1); text-align: right; }
/* Gráfico de línea de la ficha (tasa BCV) */
.grafico-linea { display: block; overflow: visible; }
.grafico-linea .rejilla { stroke: var(--line-1); stroke-width: 1; shape-rendering: crispEdges; }
.grafico-linea .linea { fill: none; stroke: var(--ink-50); stroke-width: 1.25; stroke-linejoin: round; }
.grafico-linea .punto { fill: var(--ink-50); }
.grafico-linea .texto { font: var(--type-micro); fill: var(--text-3); }
.grafico-vacio { font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; padding: 6px 0; }
.ficha.alerta .grafico-linea .linea { stroke: var(--accent); }
.ficha.alerta .grafico-linea .punto { fill: var(--accent); }
.ficha.sin-coord .ficha-coord { display: none; }
.ficha.solo-lista .ficha-coord, .ficha.solo-lista .ficha-rejilla, .ficha.solo-lista .ruta { display: none; }
.noticia { display: flex; flex-direction: column; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--line-grid); }
.noticia-titulo { font: var(--type-small); color: var(--text-1); text-decoration: none; }
.noticia-titulo:hover { text-decoration: underline; }
.noticia-fuentes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.noticia-fuentes a { font: var(--type-micro); color: var(--text-3); text-decoration: none; letter-spacing: .02em; }
.noticia-fuentes a:hover { color: var(--text-1); }
.fila.enlace { cursor: pointer; }
.fila.enlace:hover { background: var(--surface-hover); }
.fila.enlace span:last-child { color: var(--text-2); }
.fila.titulo-lista { margin-top: 10px; border-bottom-color: var(--line-1); }
.fila.titulo-lista span:last-child { font: var(--type-micro); color: var(--text-3); }
/* Ficha sin selección: solo el nombre vacío, la indicación y las coordenadas */
.ficha.vacia #f-tipo, .ficha.vacia #f-codigo, .ficha.vacia .ficha-rejilla, .ficha.vacia .ruta, .ficha.vacia .filas { display: none; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Pestañas MAPA / ANÁLISIS (Tabs "segmented" del diseño) ---------- */
.pestanas { display: flex; border: 1px solid var(--line-2); flex: none; }
.pestanas button { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; background: transparent; color: var(--text-3); border: none; border-radius: 0; font: var(--weight-medium) var(--size-xs)/1 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; cursor: pointer; }
.pestanas button + button { border-left: 1px solid var(--line-2); }
.pestanas button:hover { color: var(--text-1); }
.pestanas button[aria-selected="true"] { background: var(--ink-50); color: var(--black); }
.cuerpo[hidden], .analisis[hidden] { display: none; }

/* ---------- Pestaña Análisis ---------- */
.analisis { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 300px; gap: 1px; background: var(--line-1); }
.an-celda { background: var(--black); min-height: 0; min-width: 0; display: grid; }
.an-celda > .panel { min-height: 0; }
.an-proximamente { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--text-3); font: var(--type-small); }
.an-proximamente span:nth-child(2) { color: var(--text-2); }
.esfera-cont { position: relative; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.esfera { position: relative; height: min(100%, 560px); aspect-ratio: 600 / 580; max-width: 100%; cursor: grab; touch-action: none; user-select: none; }
.esfera.arrastrando { cursor: grabbing; }
.esfera-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.esfera-svg .e-borde { fill: none; stroke: var(--ink-50); stroke-width: 1px; }
.esfera-svg .e-meridiano { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1px; stroke-dasharray: 2 4; }
.esfera-svg .e-paralelo { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1px; stroke-dasharray: 1 3; }
.esfera-svg .e-ecuador-oculto { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1px; stroke-dasharray: 1 5; }
.esfera-svg .e-ecuador-marcas { fill: none; stroke: var(--ink-50); stroke-width: 5px; stroke-dasharray: 1 4; }
.esfera-svg .e-ecuador { fill: none; stroke: var(--ink-50); stroke-width: 1px; }
.esfera-svg .e-venezuela { fill: rgba(255,255,255,.1); stroke: var(--ink-100); stroke-width: 1px; }
.esfera-svg .e-esequibo { fill: rgba(255,255,255,.05); stroke: var(--ink-200); stroke-width: 1px; stroke-dasharray: 3 2; }
.esfera-svg .e-cobertura { fill: none; stroke: var(--ink-200); stroke-width: 1px; stroke-dasharray: 3 3; }
.esfera-svg .e-orbita { fill: none; stroke: var(--ink-100); stroke-width: 1px; }
.esfera-svg .e-orbita-oculta { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1px; stroke-dasharray: 2 4; }
.esfera-svg .e-cuadro { fill: #000; stroke: var(--ink-50); stroke-width: 1px; }
.esfera-svg .e-guia { stroke: var(--ink-300); stroke-width: 1px; }
.esfera-svg .e-guia.alerta { stroke: var(--accent); }
.esfera-svg .e-sat.oculto { opacity: .28; }
.esfera-svg .e-goes { fill: var(--ink-50); stroke: var(--ink-50); }
.esfera-svg .e-punto { fill: #000; stroke: var(--ink-50); stroke-width: 1px; }
.esfera-svg .e-alerta { fill: var(--accent); stroke: var(--accent); stroke-width: 1px; }
.esfera-svg text { font-family: var(--font-mono); letter-spacing: .04em; paint-order: stroke; stroke: #000; stroke-width: 3px; stroke-linejoin: round; }
.esfera-svg .e-texto { font-size: 12px; fill: var(--ink-50); }
.esfera-svg .e-texto.alerta { fill: var(--accent-text); }
.esfera-svg .e-texto-tenue { font-size: 11px; fill: var(--ink-300); }
.esfera-lista { position: absolute; left: 4px; top: 4px; display: flex; flex-direction: column; gap: 6px; font: var(--weight-regular) 13px/1.3 var(--font-mono); pointer-events: none; }
.esfera-lista .label { color: var(--text-3); }
.esfera-lista .micro { margin-top: -4px; }
#esfera-pases { display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.pase { display: grid; grid-template-columns: 110px 48px 40px; gap: 8px; font-variant-numeric: tabular-nums; }
.pase-sat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pase-sat .icono, .pase-hueco { width: 10px; height: 10px; flex: none; }
.pase.firms .pase-sat .icono { color: var(--text-1); }
.pase-hora { color: var(--text-2); }
.pase-elev { color: var(--text-3); }
.pase-vacio { font: var(--type-micro); color: var(--text-3); }
.esfera-leyenda { position: absolute; right: 4px; bottom: 4px; display: flex; flex-direction: column; gap: 6px; font: var(--type-micro); color: var(--text-2); letter-spacing: .04em; text-align: right; pointer-events: none; }
.esfera-leyenda .t3 { color: var(--text-3); }
.esfera-leyenda .naranja { color: var(--accent-text); }
.esfera-focos { position: absolute; right: 4px; top: 52px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: var(--type-micro); color: var(--text-2); letter-spacing: .04em; text-align: right; pointer-events: none; }
.esfera-focos .label { color: var(--text-3); margin-bottom: 2px; }
.esfera-estado { position: absolute; right: 4px; top: 4px; text-align: right; max-width: 45%; }

/* Panel E: eventos por intervalo */
.eventos-cont { position: relative; height: 100%; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.eventos-filtros { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.eventos-filtros .casilla.sub { padding-left: 0; margin-top: 0; }
.eventos-filtros .casilla.sub.naranja .casilla-texto { color: var(--accent-text); }
.eventos-filtros .casilla.sub.naranja.activa .casilla-caja { border-color: var(--accent); }
.eventos-filtros .casilla.sub.naranja.activa .casilla-caja::after { background: var(--accent); }
.eventos-grafico { flex: 1; min-height: 0; display: flex; justify-content: center; }
.eventos-svg { height: 100%; max-width: 100%; aspect-ratio: 1040 / 240; display: block; }
.eventos-svg .ev-rejilla { stroke: rgba(255,255,255,.14); stroke-width: 1px; stroke-dasharray: 1 4; }
.eventos-svg .ev-texto { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-300); }
.eventos-svg .ev-alerta { fill: var(--accent-text); }
.eventos-svg .ev-aviso { fill: var(--ink-400); letter-spacing: .16em; }
.eventos-svg .ev-punto { fill: var(--ink-300); }
.eventos-svg .ev-punto.medio { fill: var(--ink-100); }
.eventos-svg .ev-punto.alto { fill: var(--ink-50); }
.eventos-svg .ev-punto.alerta { fill: var(--accent); }
.eventos-svg .ev-futuro { fill: rgba(255,255,255,.25); }
.eventos-svg .ev-barco { fill: var(--ink-100); }
.eventos-svg .ev-disputa { fill: none; stroke: var(--ink-200); stroke-width: 1px; }
.ayuda-fila.sub { color: var(--text-3); padding-left: 8px; }
.eventos-svg .ev-raya { stroke: rgba(255,255,255,.09); stroke-width: 2; }
.eventos-svg .ev-sin-registro { stroke: none; }
.eventos-svg .ev-ahora { stroke: var(--ink-50); stroke-width: 1px; }
.eventos-svg .ev-ahora-texto { fill: var(--ink-50); }
.eventos-svg .ev-zona { fill: transparent; cursor: crosshair; }
.eventos-svg .ev-zona:hover { fill: rgba(255,255,255,.05); }
.eventos-ayuda { position: absolute; z-index: 10; width: 280px; padding: 8px 10px; background: var(--ink-900); border: 1px solid var(--line-2); font: var(--type-micro); color: var(--text-2); pointer-events: none; display: flex; flex-direction: column; gap: 3px; }
.eventos-ayuda[hidden] { display: none; }
.ayuda-titulo { color: var(--text-1); font: var(--type-label); letter-spacing: var(--tracking-label); margin-bottom: 3px; }
.ayuda-fila { display: flex; justify-content: space-between; }
.ayuda-fila.cero { color: var(--text-3); }
.ayuda-fila.oculto { opacity: .6; }
.ayuda-alerta { color: var(--accent-text); margin-top: 3px; }
.ayuda-aviso { color: var(--text-3); border-left: 2px solid var(--line-3); padding-left: 6px; margin-bottom: 3px; }

/* ---------- Pie: línea de tiempo y noticias ---------- */
.pie { flex: none; border-top: 1px solid var(--line-1); background: var(--black); display: flex; flex-direction: column; }
.pie-cab { display: flex; align-items: center; gap: 14px; height: 28px; padding: 0 16px; border-bottom: 1px solid var(--line-grid); }
.leyenda { display: flex; gap: 16px; font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; }
.linea-tiempo { position: relative; height: 58px; margin: 0 16px; }
.linea-tiempo .tick { position: absolute; bottom: 16px; width: 1px; }
.linea-tiempo .hora { position: absolute; bottom: 2px; transform: translateX(-50%); font: var(--type-micro); color: var(--text-3); }
.ahora { position: absolute; top: 0; bottom: 14px; width: 1px; background: var(--ink-50); }
.ahora::before { content: ''; position: absolute; top: -1px; left: -3px; width: 7px; height: 7px; background: var(--ink-50); }
.futuro { position: absolute; right: 0; top: 0; bottom: 16px; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.035) 3px 4px); }
.linea-tiempo .aviso { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font: var(--type-micro); color: var(--text-3); letter-spacing: .16em; }
.noticias { height: 32px; display: flex; align-items: center; border-top: 1px solid var(--line-1); overflow: hidden; }
.noticias-titulo { flex: none; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--surface-inverse); color: var(--text-inverse); font: var(--type-label); letter-spacing: var(--tracking-label); }
.noticias-texto { flex: 1; min-width: 0; overflow: hidden; padding-left: 16px; font: var(--weight-regular) 14px/1 var(--font-mono); color: var(--text-3); white-space: nowrap; }
.noticias-titulo { cursor: pointer; }
.noticias-fuentes { flex: none; height: 100%; padding: 0 14px; background: none; border: none; border-left: 1px solid var(--line-1); color: var(--text-3); font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; cursor: pointer; transition: color var(--dur-fast) var(--ease-hud); }
.noticias-fuentes:hover { color: var(--text-1); }
@keyframes cinta-titulares { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cinta-titulares { display: inline-flex; gap: 40px; animation: cinta-titulares 120s linear infinite; }
.noticias-texto:hover .cinta-titulares { animation-play-state: paused; }
.titular { display: inline-flex; gap: 10px; align-items: baseline; color: var(--text-2); text-decoration: none; }
.titular:hover .titular-texto { color: var(--text-1); text-decoration: underline; }
.titular-hora { color: var(--text-1); }
.titular-fuente { font: var(--type-label); letter-spacing: var(--tracking-label); color: var(--text-3); }

/* ---------- Diálogos (fuentes, privacidad) ---------- */
.velo { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--scrim); backdrop-filter: var(--blur-panel); }
.velo[hidden] { display: none; }
.dialogo { position: relative; width: 780px; max-width: calc(100% - 32px); background: var(--ink-900); border: 1px solid var(--line-2); }
.dialogo > .escuadra { width: 12px; height: 12px; --bc: var(--text-1); }
.dialogo-cab { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line-1); }
.dialogo-cab .titulo { flex: 1; font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-1); }
.dialogo-cerrar { background: none; border: none; color: var(--text-3); cursor: pointer; font: var(--size-lg)/1 var(--font-mono); padding: 0; }
.dialogo-cuerpo { padding: 14px; font: var(--type-small); color: var(--text-2); }
.dialogo-fuentes { width: 940px; }
.fuentes-lista { height: 560px; max-height: 64vh; overflow-y: auto; background: var(--ink-950); border: 1px solid var(--line-1); padding: 4px 18px 18px; }
.fuente-seccion { padding-top: 14px; }
.fuente-seccion > .label { text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid var(--line-1); }
.fuente-fila { display: grid; grid-template-columns: 220px 1fr 300px; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line-1); font: var(--type-micro); }
.fuente-nombre { color: var(--text-1); font-weight: var(--weight-medium); text-decoration: none; }
.fuente-aporta { color: var(--text-2); }
.fuente-condicion { color: var(--text-3); text-decoration: none; }
a.fuente-condicion:hover, .fuente-nombre:hover, .fuente-medio:hover { text-decoration: underline; }
.fuente-medios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; padding: 8px 0; font: var(--type-micro); }
.fuente-medio { color: var(--text-2); text-decoration: none; }
.fuente-seccion > .fuente-condicion { display: block; font: var(--type-micro); padding-bottom: 6px; }
.dialogo-privacidad { width: 780px; }
.privacidad-texto { height: auto; max-height: 64vh; }
.privacidad-p { margin: 8px 0 0; font: var(--type-micro); color: var(--text-2); }
.privacidad-lista { margin: 6px 0 0; padding-left: 18px; font: var(--type-micro); color: var(--text-2); }
.privacidad-lista li { margin-top: 4px; }
.privacidad-enlace { color: var(--text-1); }
.fuente-cierre { margin: 18px 0 0; color: var(--text-1); font: var(--type-micro); }
.dialogo-pie { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.dialogo-pie > div { display: flex; gap: 8px; }

/* Panel C: indicio de apagones (relieve de puntos + lista) */
.apagon-cont { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; }
.relieve { position: relative; min-height: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.relieve.arrastrando { cursor: grabbing; }
.relieve-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rel-texto { position: absolute; display: flex; flex-direction: column; gap: 3px; font: var(--weight-regular) 13px/1.3 var(--font-mono); pointer-events: none; }
.rel-texto .t3 { color: var(--text-3); }
.rel-texto .t2 { color: var(--text-2); }
.rel-texto .naranja { color: var(--accent-text); }
.rel-tl { left: 4px; top: 4px; }
.rel-tr { right: 4px; top: 4px; text-align: right; }
.rel-bl { left: 4px; bottom: 4px; flex-direction: row; gap: 20px; }
.rel-bl > div { display: flex; flex-direction: column; gap: 3px; }
.rel-br { right: 4px; bottom: 4px; text-align: right; }
.rel-modo { margin-top: 6px; align-self: flex-start; pointer-events: auto; }
.apagon-lista { min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; font: var(--weight-regular) 13px/1.3 var(--font-mono); }
#apagon-filas { display: flex; flex-direction: column; gap: 6px; }
.ap-fila { display: grid; grid-template-columns: minmax(0, 1fr) 44px 86px 92px; gap: 8px; font-variant-numeric: tabular-nums; cursor: default; }
.ap-fila > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-fila .ap-pct, .ap-fila .ap-hora { text-align: right; }
.ap-fila .ap-hora, .ap-fila .ap-situ { color: var(--text-2); }
.ap-fila:not(.ap-cab):hover { background: rgba(255,255,255,.05); }
.ap-fila.ap-cab { font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; margin-bottom: 2px; }
.ap-fila.activa, .ap-fila.activa .ap-hora, .ap-fila.activa .ap-situ { color: var(--accent-text); }
.ap-fila.bajo, .ap-fila.bajo .ap-hora, .ap-fila.bajo .ap-situ { color: var(--text-3); }
.ap-vacio { font: var(--type-micro); color: var(--text-3); }
.apagon-notas { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-1); }
.apagon-notas .ap-aviso { color: var(--text-2); }
.panel-meta.naranja { color: var(--accent-text); }
.ap-fila { cursor: pointer; }
.ap-fila.ap-cab, .ap-fila.patron { cursor: default; }
.ap-fila.grupo .ap-estado { color: var(--text-1); }
.ap-fila.grupo.activa .ap-estado { color: var(--accent-text); }
.ap-sub { font: var(--type-micro); color: var(--text-2); letter-spacing: .02em; margin-top: -3px; padding-left: 10px; line-height: 1.4; }
.ap-sub.activa { color: var(--accent-text); }
.apagon-patrones { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-1); }
.ap-fila.patron { grid-template-columns: minmax(0, 1fr) 100px 92px; }
.ap-fila.patron .ap-horario { text-align: right; }
.ap-fila.patron .ap-situ { color: var(--text-2); }
.eventos-svg .ev-fecha { fill: var(--ink-100); }
.ap-fila.sel, .ap-sub.sel { background: rgba(255,255,255,.09); box-shadow: inset 2px 0 0 var(--ink-50); }

/* Panel F: protestas reportadas en prensa */
.prot-cont { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 170px; column-gap: 16px; }
.prot-izq { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prot-leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font: var(--type-micro); color: var(--text-2); letter-spacing: .04em; }
.prot-ley { display: inline-flex; align-items: center; gap: 5px; }
.prot-ley.cero { color: var(--text-3); }
.prot-ley-svg { width: 10px; height: 10px; overflow: visible; }
.prot-dias { flex: none; }
.prot-svg { width: 100%; height: auto; max-height: 118px; display: block; }
.prot-pt { stroke-width: 1px; }
.pt-laboral { fill: var(--ink-50); }
.pt-servicios { fill: var(--ink-100); }
.pt-politica { fill: var(--ink-200); }
.pt-salud { fill: var(--ink-300); }
.pt-otros { fill: none; stroke: var(--ink-300); }
.prot-svg .prot-cuenta { fill: var(--ink-100); }
.prot-svg .prot-hoy { fill: var(--ink-50); }
.prot-svg .prot-aviso { font-size: 9px; letter-spacing: .08em; }
.prot-svg .prot-sel { fill: rgba(255,255,255,.08); }
.prot-svg text { font-family: var(--font-mono); }
.prot-estados { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-grid); padding-top: 4px; }
.prot-barra { display: grid; grid-template-columns: 124px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font: var(--weight-regular) 12px/1.25 var(--font-mono); cursor: pointer; }
.prot-barra:hover, .prot-barra.sel { background: rgba(255,255,255,.08); }
.prot-barra-nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.prot-barra.sel .prot-barra-nombre { color: var(--text-1); }
.prot-barra-puntos { display: flex; overflow: hidden; }
.prot-barra-svg { height: 10px; flex: none; overflow: visible; }
.prot-barra-n { text-align: right; font-variant-numeric: tabular-nums; }
.prot-nota { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prot-cifras { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.prot-cifra { display: flex; flex-direction: column; gap: 3px; padding-bottom: 6px; border-bottom: 1px solid var(--line-grid); }
.prot-cifra.tocable { cursor: pointer; }
.prot-cifra.tocable:hover .prot-cifra-valor { text-decoration: underline; text-underline-offset: 3px; }
.prot-cifra-linea { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.prot-cifra-valor { font: var(--weight-light) 22px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.prot-cifra .micro { color: var(--text-2); }
.prot-detalle { position: absolute; left: 0; right: 0; top: 18px; bottom: 18px; z-index: 2; background: var(--black); border: 1px solid var(--line-2); padding: 6px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; cursor: default; }
.prot-detalle[hidden] { display: none; }
.prot-detalle-cab { display: flex; justify-content: space-between; align-items: center; }
.prot-cerrar { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font: var(--type-micro); width: 20px; height: 20px; cursor: pointer; }
.prot-cerrar:hover { color: var(--text-1); }
.prot-fila { display: flex; flex-direction: column; gap: 2px; padding-bottom: 5px; border-bottom: 1px solid var(--line-grid); font: var(--weight-regular) 12px/1.3 var(--font-mono); }
.prot-fila-linea { display: grid; grid-template-columns: 44px minmax(0, 1.1fr) 130px minmax(0, 1fr) 16px; gap: 8px; }
.prot-fila-linea > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prot-fila-cab { font: var(--type-micro); color: var(--text-3); border-bottom: none; padding-bottom: 0; }
.prot-f-tipo, .prot-f-fuente { color: var(--text-2); }
.prot-f-enlace { color: var(--text-1); text-decoration: none; }
.prot-f-enlace:hover { color: var(--ink-50); text-decoration: underline; }
.prot-f-titulo { font: var(--type-micro); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Línea de tiempo del pie (fase 5A) */
.i-zap { -webkit-mask-image: url(../img/iconos/zap.svg); mask-image: url(../img/iconos/zap.svg); }
.i-megaphone { -webkit-mask-image: url(../img/iconos/megaphone.svg); mask-image: url(../img/iconos/megaphone.svg); }
.i-dolar { -webkit-mask-image: url(../img/iconos/dolar.svg); mask-image: url(../img/iconos/dolar.svg); }
.lt-filtros { display: flex; align-items: center; gap: 12px; }
.lt-filtros .casilla.sub { padding-left: 0; margin-top: 0; gap: 5px; }
.lt-filtros .casilla .icono { width: 11px; height: 11px; color: var(--text-2); }
.lt-filtros .casilla:not(.activa) .icono { color: var(--text-3); }
.lt-prox { color: var(--text-3); letter-spacing: .04em; }
.linea-tiempo .hora.fecha { color: var(--text-1); }
.lt-regla, .lt-capa { position: absolute; inset: 0; pointer-events: none; }
.lt-capa .lt-marca { pointer-events: auto; }
.lt-sin-registro { position: absolute; top: 0; bottom: 16px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 1.5px, transparent 1.5px 6px); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; pointer-events: auto; }
.lt-sin-registro span { font: var(--type-micro); color: var(--ink-400); letter-spacing: .16em; white-space: nowrap; background: var(--black); padding: 0 4px; margin-top: 1px; }
.lt-marca { position: absolute; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0; height: 11px; color: var(--ink-200); cursor: pointer; z-index: 1; }
.lt-marca .icono { width: 9px; height: 9px; }
.lt-marca:hover { color: var(--ink-50); }
.lt-marca.alerta { color: var(--accent); }
.lt-marca.alerta:hover { color: var(--accent-text); }
.lt-n { font: 8px/1 var(--font-mono); letter-spacing: -.04em; align-self: flex-start; }
.lt-mas { font: var(--weight-medium) 11px/1 var(--font-mono); width: 10px; text-align: center; }
.lt-ayuda, .lt-lista { position: fixed; z-index: 60; min-width: 220px; max-width: 420px; background: var(--black); border: 1px solid var(--line-3); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; font: var(--weight-regular) 12px/1.3 var(--font-mono); pointer-events: none; }
.lt-lista { pointer-events: auto; max-height: 260px; overflow-y: auto; }
.lt-ayuda[hidden], .lt-lista[hidden] { display: none; }
.lt-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: var(--type-micro); color: var(--text-3); letter-spacing: .06em; }
.lt-ev { display: grid; grid-template-columns: 40px 92px minmax(0, 1fr); gap: 6px; }
.lt-ev.tocable { cursor: pointer; padding: 2px 0; }
.lt-ev.tocable:hover { background: rgba(255,255,255,.07); }
.lt-ev-hora { color: var(--text-2); font-variant-numeric: tabular-nums; }
.lt-ev-tipo { color: var(--text-2); white-space: nowrap; }
.lt-ev-res { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lt-ev.alerta .lt-ev-tipo, .lt-ev.alerta .lt-ev-res { color: var(--accent-text); }
.lt-mas-txt { font: var(--type-micro); color: var(--text-3); }
.lt-cerrar { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font: var(--type-micro); width: 18px; height: 18px; cursor: pointer; }
.eventos-svg .ev-fijo { fill: rgba(255,255,255,.1); stroke: var(--ink-300); stroke-width: 1px; }
.ayuda-linea { color: var(--text-1); }

/* Reproducción del mapa (fase 5B) */
.i-pause { -webkit-mask-image: url(../img/iconos/pause.svg); mask-image: url(../img/iconos/pause.svg); }
.lt-velocidad button { height: 20px; padding: 0 6px; }
.lt-vivo { height: 22px; padding: 0 8px; color: var(--text-3); }
.lt-vivo.activo { color: var(--black); background: var(--ink-50); border-color: var(--ink-50); }
.lt-vivo:disabled { cursor: default; }
.linea-tiempo { cursor: pointer; touch-action: none; user-select: none; }
.linea-tiempo.arrastrando { cursor: ew-resize; }
.linea-tiempo.reproduccion .ahora { opacity: .45; }
.cabezal { position: absolute; top: 0; bottom: 14px; width: 2px; margin-left: -1px; background: var(--ink-50); z-index: 3; pointer-events: none; }
.cabezal[hidden] { display: none; }
.cabezal::before { content: ''; position: absolute; top: -1px; left: -4px; width: 10px; height: 10px; border: 1px solid var(--ink-50); background: var(--black); }
.cabezal-hora { position: absolute; top: 0; left: 8px; font: var(--weight-medium) 10px/1 var(--font-mono); color: var(--black); background: var(--ink-50); padding: 1px 3px; white-space: nowrap; }
.aviso-rep { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px; background: rgba(0,0,0,.86); border: 1px solid var(--ink-50); box-shadow: 0 0 0 3px rgba(0,0,0,.6); }
.aviso-rep[hidden], .aviso-sin-registro[hidden] { display: none; }
.aviso-rep-linea { display: flex; align-items: center; gap: 12px; }
.aviso-rep-titulo { font: var(--weight-medium) 13px/1 var(--font-mono); letter-spacing: .2em; color: var(--text-1); }
.aviso-rep-hora { font: var(--weight-light) 30px/1 var(--font-mono); color: var(--text-1); font-variant-numeric: tabular-nums; }
.aviso-rep .micro { color: var(--text-2); letter-spacing: .06em; }
.aviso-sin-registro { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1.5px, transparent 1.5px 8px); }
.aviso-sr-titulo { font: var(--weight-medium) 22px/1 var(--font-mono); letter-spacing: .3em; color: var(--text-1); background: var(--black); padding: 6px 12px; border: 1px solid var(--line-3); }
.aviso-sin-registro .micro { background: var(--black); padding: 2px 6px; }

/* ==========================================================================
   Pestaña EN VIVO (canales de YouTube) y ventana fijada
   ========================================================================== */
.i-pin { -webkit-mask-image: url(../img/iconos/pin.svg); mask-image: url(../img/iconos/pin.svg); }
.i-pin-off { -webkit-mask-image: url(../img/iconos/pin-off.svg); mask-image: url(../img/iconos/pin-off.svg); }
.i-maximize-2 { -webkit-mask-image: url(../img/iconos/maximize-2.svg); mask-image: url(../img/iconos/maximize-2.svg); }
.i-chevron-up { -webkit-mask-image: url(../img/iconos/chevron-up.svg); mask-image: url(../img/iconos/chevron-up.svg); }
.i-link { -webkit-mask-image: url(../img/iconos/link.svg); mask-image: url(../img/iconos/link.svg); }
.i-rotate-cw { -webkit-mask-image: url(../img/iconos/rotate-cw.svg); mask-image: url(../img/iconos/rotate-cw.svg); }

.envivo { flex: 1; min-height: 0; display: flex; gap: 1px; background: var(--line-1); }
.envivo[hidden] { display: none; }
.ev-principal { flex: 1; min-width: 0; background: var(--black); display: flex; flex-direction: column; }
.ev-cab { height: 36px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line-1); }
.ev-escena { flex: 1; min-height: 0; padding: 20px; display: flex; align-items: center; justify-content: center; }
.ev-uno { position: relative; height: 100%; max-width: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column; }
.ev-uno[hidden], .ev-multi[hidden] { display: none; }
.ev-pantalla { position: relative; flex: 1; min-height: 0; margin: 10px; border: 1px solid var(--line-1); background: var(--ink-950); }
.ev-video { position: absolute; inset: 0; }
.ev-rotulo { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(0,0,0,.8); border-right: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); pointer-events: none; }
.ev-rotulo-nombre { font: var(--weight-medium) 13px/1 var(--font-mono); letter-spacing: .08em; }
.ev-fijar { position: absolute; right: 0; top: 0; z-index: 3; padding: 6px; background: rgba(0,0,0,.8); border-left: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.ev-fijar .boton { min-width: 130px; }
.ev-uno-pie { display: flex; justify-content: space-between; gap: 16px; padding: 0 10px; letter-spacing: .04em; }

.ev-multi { height: 100%; max-width: 100%; aspect-ratio: 16 / 9; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); }
.ev-celda { position: relative; background: var(--ink-950); min-width: 0; min-height: 0; }
.ev-celda.actual { outline: 1px solid var(--ink-50); outline-offset: -1px; }
.ev-celda-clic { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.ev-celda-rotulo { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(0,0,0,.8); cursor: pointer; font: var(--weight-medium) 12px/1 var(--font-mono); letter-spacing: .08em; }
.ev-celda-rotulo .ev-celda-mas { color: var(--text-3); font-weight: 400; }
.ev-celda-vacia { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: var(--type-label); letter-spacing: var(--tracking-label); color: var(--text-3); }
.ev-celda-vacia .micro { letter-spacing: .04em; }
.ev-celda-rotulo[hidden], .ev-celda-vacia[hidden] { display: none; }
.ev-celda .rep-sin { z-index: 4; }
.ev-celda .ev-celda-rotulo { z-index: 5; }
.ev-punto { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-50); flex: none; }

.ev-lateral { width: 390px; flex: none; background: var(--black); display: flex; flex-direction: column; gap: 1px; min-height: 0; }
.ev-lateral > .panel:first-child { flex: 0 1 auto; min-height: 120px; }
.ev-canales { display: flex; flex-direction: column; gap: 1px; background: var(--line-grid); margin: -4px 0; }
.ev-canal { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 4px; background: var(--black); cursor: pointer; }
.ev-canal:hover { background: var(--surface-hover); }
.ev-canal.actual { background: var(--surface-hover); }
.ev-canal-num { font: var(--weight-regular) 13px/1 var(--font-mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.ev-canal-datos { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-canal-nombre { font: var(--weight-medium) 15px/1.1 var(--font-mono); letter-spacing: .04em; color: var(--text-2); }
.ev-canal.en-pantalla .ev-canal-nombre { color: var(--text-1); }
.ev-canal-sub { font: var(--type-micro); color: var(--text-3); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-canal-acciones { display: flex; align-items: center; gap: 8px; }
.ev-canal-acciones .boton-icono.activo { background: var(--surface-active); border-color: var(--line-2); color: var(--text-1); }
.insignia.solida { background: var(--ink-50); color: var(--black); border-color: var(--ink-50); }

.ev-form { display: flex; flex-direction: column; gap: 10px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo-label { font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-3); }
.campo-caja { display: flex; align-items: center; gap: 8px; height: var(--control-h); padding: 0 8px; border: 1px solid var(--line-2); background: var(--bg-canvas); color: var(--text-3); }
.campo-caja .icono { width: 12px; height: 12px; }
.campo-caja:focus-within { border-color: var(--line-strong); color: var(--text-1); }
.campo-caja input { flex: 1; min-width: 0; height: 100%; background: transparent; border: none; outline: none; color: var(--text-1); font: var(--weight-regular) var(--size-md)/1 var(--font-mono); padding: 0; }
.campo-caja input::placeholder { color: var(--text-3); }
.campo-ayuda { font: var(--type-micro); color: var(--text-3); }
.campo.invalido .campo-caja { border-color: var(--accent); }
.campo.invalido .campo-ayuda { color: var(--accent-text); }
.ev-notas { flex: 1; background: var(--black); padding: 14px; display: flex; flex-direction: column; gap: 6px; letter-spacing: .04em; }

/* Reproductor: tapa "CONECTANDO" y estado "SIN SEÑAL" (nunca se ve el error de YouTube) */
.rep { position: absolute; inset: 0; overflow: hidden; }
.rep iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.rep-tapa, .rep-sin { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; }
.rep-tapa[hidden], .rep-sin[hidden] { display: none; }
.rep-tapa { background: var(--ink-950); font: var(--type-label); letter-spacing: var(--tracking-label); color: var(--text-3); }
.rep-sin { background: var(--ink-950) repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1.5px, transparent 1.5px 8px); }
.rep-sin-titulo { font: var(--weight-medium) 22px/1 var(--font-mono); letter-spacing: .3em; color: var(--text-1); background: var(--black); padding: 6px 12px; border: 1px solid var(--line-3); }
.rep-sin-nombre { font: var(--weight-medium) 13px/1 var(--font-mono); letter-spacing: .08em; color: var(--text-2); background: var(--black); padding: 3px 6px; }
.rep-sin .micro { background: var(--black); padding: 2px 6px; letter-spacing: .04em; max-width: 90%; }
.rep-sin .boton { background: var(--black); }
.rep-sin .boton:hover { background: var(--ink-850); }
.rep.compacto .rep-sin { gap: 5px; }
.rep.compacto .rep-sin-titulo { font-size: 15px; padding: 4px 8px; }
.rep.compacto .rep-sin-nombre { font-size: 11px; }
.rep.compacto .rep-sin .micro { display: none; }

/* Ventana fijada: flota sobre Mapa y Análisis */
.ev-flotante { position: fixed; z-index: 40; width: 360px; background: var(--black); border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.ev-flotante[hidden] { display: none; }
.ev-flotante-cab { height: 30px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 10px; border-bottom: 1px solid var(--line-1); cursor: move; touch-action: none; user-select: none; }
.ev-flotante.minimizada .ev-flotante-cab { border-bottom: none; }
.ev-flotante-cab .boton-icono { cursor: pointer; }
.ev-flotante-nombre { font: var(--weight-medium) 12px/1 var(--font-mono); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-flotante-cab .micro { white-space: nowrap; }
.ev-flotante-video { position: relative; height: 203px; background: var(--ink-950); }
.ev-flotante.minimizada .ev-flotante-video { display: none; }
.ev-flotante.arrastrando iframe { pointer-events: none; }

/* ---------- Pantallas más chicas que 1920 × 1080 (laptops) ---------- */
/* Panel izquierdo: si no cabe, las capas se desplazan y las alertas guardan 150 px. */
.lateral-capas { min-height: 0; display: flex; flex-direction: column; }
.lateral-capas .panel-cuerpo { overflow-y: auto; }
.info-area { flex: none; }
.hud-confianza { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
@media (max-height: 820px) { .hud-confianza { top: calc(50% + 24px); transform: translateY(-50%) scale(.8); transform-origin: left center; } }
/* Línea de tiempo: nada se parte en dos renglones; lo menos necesario se oculta primero. */
.pie-cab { overflow: hidden; }
.pie-cab > * { flex: none; white-space: nowrap; }
.pie-cab > .flex1 { flex: 1; }
@media (max-width: 1700px) { .pie-cab .leyenda { display: none; } }
@media (max-width: 1600px) { #lt-meta, .lt-cuenta { display: none; } }

/* ==========================================================================
   Celulares y tabletas (misma consulta que COMPACTO en js/movil.js)
   El mapa ocupa todo; capas, alertas y ficha se abren como hojas desde abajo.
   ========================================================================== */
.barra-movil, .hoja-cerrar { display: none; }
@media (max-width: 1100px), (max-height: 500px) {
  /* Barra superior en dos filas: marca, tasa y APOYAR; debajo, las pestañas a todo el ancho. */
  .barra-sup { height: auto; flex-wrap: wrap; row-gap: 8px; column-gap: 10px; padding: 8px 12px; }
  .barra-sup .sep-v, .barra-sup .fuentes, .barra-sup .relojes { display: none; }
  .marca-waraira { order: 1; }
  .barra-sup .flex1 { order: 2; }
  .bcv { order: 3; gap: 6px; padding: 0 8px; }
  .bcv .label, #bcv-fecha { display: none; }
  .boton.apoyar { order: 4; height: 28px; }
  .barra-sup .pestanas { order: 5; width: 100%; }
  .barra-sup .pestanas button { flex: 1; justify-content: center; height: 30px; }
  /* Si hay ancho (celular de lado, tableta), todo en una sola fila. */
  @media (min-width: 640px) { .barra-sup .pestanas { order: 2; width: auto; } .barra-sup .flex1 { order: 3; } .barra-sup .pestanas button { flex: none; height: 26px; padding: 0 12px; } }

  /* Mapa: sin los textos del HUD que no caben; los créditos siguen visibles. */
  .hud-confianza, .hud-texto, .hud-reticula { display: none; }
  .noticias-fijas { right: 10px; top: 52px; }
  .controles-zoom { right: 10px; }
  .controles-zoom .boton-icono { width: 36px; height: 36px; }
  .credito-mapa { left: 10px; right: 10px; max-width: none; font-size: 9px; line-height: 11px; text-align: left; }
  .barra-movil { display: flex; gap: 6px; position: absolute; left: 10px; bottom: 58px; z-index: 7; }
  .barra-movil .boton { height: 34px; padding: 0 12px; background: rgba(0,0,0,.82); }
  .barra-movil .boton.alerta { color: var(--accent-text); border-color: var(--accent); }

  /* Hojas: capas, alertas y ficha salen desde abajo, una a la vez. */
  .lateral-izq, .lateral-der { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: auto; max-width: 560px; border-top: 1px solid var(--line-strong); box-shadow: 0 -12px 32px rgba(0,0,0,.7); }
  .lateral-der { left: auto; height: 58dvh; }
  .hoja-capas .lateral-izq, .hoja-alertas .lateral-izq { display: flex; height: 62dvh; }
  .hoja-ficha .lateral-der { display: flex; }
  .lateral-izq > div { flex: 1; min-height: 0; }
  .hoja-capas .lateral-alertas, .hoja-alertas .lateral-capas, .info-area { display: none !important; }
  .lateral-capas > .panel { flex: 1; }
  .hoja-cerrar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; margin: 0 -8px 0 auto; background: none; border: none; color: var(--text-2); font: 22px/1 var(--font-mono); cursor: pointer; }
  .panel-cab { height: 40px; }
  .panel-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

  /* Pie: la línea de tiempo y la reproducción quedan para pantallas grandes; siguen los titulares. */
  .pie-cab, .linea-tiempo { display: none; }
  .noticias-titulo { padding: 0 10px; }
  .noticias-texto { padding-left: 10px; font-size: 13px; }
  .noticias-fuentes { padding: 0 9px; }

  /* Análisis: los cuatro paneles uno debajo del otro. */
  .analisis { display: flex; flex-direction: column; overflow-y: auto; }
  .an-celda { flex: none; display: block; }
  .apagon-cont { display: flex; flex-direction: column; height: auto; }
  .relieve { flex: none; height: 340px; }
  .rel-bl, .rel-br .t2 { display: none; }
  .apagon-lista { overflow: visible; }
  .esfera-cont { height: auto; flex-direction: column; align-items: stretch; gap: 14px; }
  .esfera { width: 100%; height: auto; max-width: 440px; align-self: center; }
  .esfera-lista, .esfera-focos, .esfera-leyenda, .esfera-estado { position: static; max-width: none; text-align: left; align-items: flex-start; }
  .an-celda:nth-child(3) .panel { height: 380px; }
  /* El gráfico se desplaza de lado y arranca mostrando lo más reciente (a la derecha). */
  .eventos-grafico { overflow-x: auto; justify-content: flex-start; direction: rtl; }
  .eventos-svg { height: 230px; max-width: none; flex: none; direction: ltr; }
  .prot-cont { display: flex; flex-direction: column; gap: 14px; height: auto; }
  .prot-estados { max-height: 220px; }
  .prot-nota { white-space: normal; }

  /* En vivo: el video arriba a todo el ancho y los canales debajo; sin ventana fijada. */
  .envivo { flex-direction: column; overflow-y: auto; }
  .ev-principal { flex: none; }
  #ev-meta { display: none; }
  .ev-cab { padding: 0 12px; }
  .ev-escena { display: block; padding: 6px 0; }
  .ev-uno, .ev-multi { width: 100%; height: auto; }
  .ev-uno { aspect-ratio: auto; }
  .ev-pantalla { flex: none; aspect-ratio: 16 / 9; margin: 6px 8px; }
  .ev-fijar, .ev-flotante, .ev-canal-acciones .boton-icono { display: none !important; }
  .ev-lateral { width: auto; flex: none; }
  .ev-notas { flex: none; }

  /* Diálogos: una sola columna. */
  .dialogo { max-width: calc(100% - 16px); }
  .fuente-fila { grid-template-columns: 1fr; gap: 3px; }
  .fuente-medios { grid-template-columns: 1fr; }
  .dialogo-pie { flex-wrap: wrap; }
}
/* Celulares: la tasa sin "BS/USD" para que marca, tasa y APOYAR quepan en una fila;
   en los muy angostos, APOYAR queda solo con el corazón. */
@media (max-width: 480px) { .bcv .micro:not(.bcv-var) { display: none; } }
@media (max-width: 380px) {
  .boton.apoyar { font-size: 0; gap: 0; width: 34px; }
  .boton.apoyar .icono { width: 14px; height: 14px; }
}
