/* ============================================================
   NotiAlert — "Command Center" HUD
   Centro de mando: negro-azulado, cian + naranja, brackets de
   esquina, glow de instrumentación, retícula y mono.
   Tema oscuro comprometido (un solo tema, como una sala de mando).
   ============================================================ */

:root {
  /* Superficies */
  --bg: #070b11;
  --superficie: rgba(14, 22, 30, 0.72);
  --superficie-solida: #0c141c;      /* tooltips, elementos opacos */
  --superficie-2: rgba(22, 33, 43, 0.6);
  --chrome: #060a0f;
  --chrome-tinta: #cfe3ea;

  /* Líneas HUD (cian a bajo alfa) */
  --linea: rgba(47, 211, 238, 0.14);
  --linea-fuerte: rgba(47, 211, 238, 0.30);
  --bracket: rgba(47, 211, 238, 0.55);

  /* Tinta (cool) */
  --tinta: #d3e5ec;
  --tinta-2: #9db4bf;
  --tinta-suave: #6f8894;

  /* Marca: cian primario + naranja secundario (par validado CVD) */
  --primario: #2fd3ee;
  --primario-hover: #63e2f5;
  --primario-tinte: rgba(47, 211, 238, 0.12);
  --primario-glow: rgba(47, 211, 238, 0.55);
  --secundario: #ff8a3d;
  --secundario-glow: rgba(255, 138, 61, 0.5);

  /* Estados */
  --ok: #34e39b;        --ok-tinte: rgba(52, 227, 155, 0.14);
  --warn: #ffb545;      --warn-tinte: rgba(255, 181, 69, 0.14);
  --error: #ff6b5e;     --error-tinte: rgba(255, 107, 94, 0.15);

  /* Gráficas */
  --chart-serie: #2fd3ee;
  --chart-serie-2: #ff8a3d;
  --chart-grid: rgba(122, 176, 196, 0.10);

  --radio: 4px;
  --radio-sm: 3px;
  --fuente: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --z-sidebar: 20;
  --z-topbar: 30;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }

body {
  font-family: var(--fuente);
  background: var(--bg);
  color: var(--tinta);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Retícula + halo del centro de mando (detrás de todo) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% -15%, rgba(47, 211, 238, 0.10), transparent 55%),
    radial-gradient(90% 70% at 100% 110%, rgba(255, 138, 61, 0.05), transparent 55%),
    repeating-linear-gradient(0deg, rgba(122, 176, 196, 0.035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(122, 176, 196, 0.035) 0 1px, transparent 1px 46px);
}

a { color: var(--primario); text-decoration: none; }
a:hover { color: var(--primario-hover); }

h1 {
  font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em;
  text-wrap: balance; color: #eaf6fa;
}

/* Encabezados de panel = etiquetas de instrumentación (mono, tracked, con tick) */
h2 {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primario);
  margin-bottom: 16px;
}
h2::before {
  content: ""; width: 10px; height: 2px; background: var(--primario);
  box-shadow: 0 0 8px var(--primario-glow); flex-shrink: 0;
}

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

/* ============ Barra superior ============ */
.topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(6, 10, 15, 0.96), rgba(6, 10, 15, 0.82));
  backdrop-filter: blur(8px);
  color: var(--chrome-tinta);
  padding: 0 18px; height: 52px;
  border-bottom: 1px solid var(--linea-fuerte);
  box-shadow: 0 1px 0 rgba(47, 211, 238, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.marca {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: #fff;
}
.marca svg { color: var(--primario); flex-shrink: 0; filter: drop-shadow(0 0 6px var(--primario-glow)); }

.pulso {
  display: flex; align-items: center; gap: 7px;
  margin-left: 6px; margin-right: auto;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primario);
}
.pulso-punto {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primario); box-shadow: 0 0 8px var(--primario-glow);
  position: relative;
}
.pulso-punto::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--primario);
  animation: pulso-anillo 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes pulso-anillo {
  0% { transform: scale(0.5); opacity: 0.9; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

.topbar-usuario { display: flex; align-items: center; gap: 12px; }
.usuario-nombre { font-family: var(--mono); font-size: 0.76rem; color: var(--tinta-2); letter-spacing: 0.02em; }
.menu-btn {
  display: none; background: none; border: none; color: var(--chrome-tinta);
  cursor: pointer; padding: 6px; margin-left: -6px; border-radius: var(--radio-sm);
}
.menu-btn:hover { background: rgba(47, 211, 238, 0.12); }

/* ============ Layout ============ */
.layout { display: flex; min-height: calc(100vh - 52px); }
.sidebar {
  width: 216px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10, 16, 23, 0.6), rgba(8, 12, 18, 0.35));
  border-right: 1px solid var(--linea);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 3px;
}
.sidebar a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radio-sm);
  color: var(--tinta-2); font-weight: 500; font-size: 0.88rem;
  transition: background 160ms ease, color 160ms ease;
}
.sidebar a svg { flex-shrink: 0; opacity: 0.7; }
.sidebar a:hover { background: rgba(47, 211, 238, 0.06); color: var(--tinta); }
.sidebar a.activo {
  background: var(--primario-tinte); color: var(--primario);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(47, 211, 238, 0.25), inset 0 0 18px rgba(47, 211, 238, 0.08);
}
.sidebar a.activo svg { opacity: 1; filter: drop-shadow(0 0 4px var(--primario-glow)); }
.sidebar a.activo::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 16px; background: var(--primario); border-radius: 2px;
  box-shadow: 0 0 8px var(--primario-glow);
}

.contenido { flex: 1; padding: 22px 28px 44px; min-width: 0; }

/* ============ Cabeceras y paneles (con brackets de esquina) ============ */
.cabecera {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}

.tarjeta, .senal {
  position: relative;
  background: var(--superficie);
  backdrop-filter: blur(6px);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.tarjeta { padding: 18px 20px; margin-bottom: 16px; }

/* Brackets de esquina HUD (superior-izq + inferior-der) */
.tarjeta::before, .tarjeta::after,
.senal::before, .senal::after {
  content: ""; position: absolute; width: 13px; height: 13px;
  border: 1px solid var(--bracket); pointer-events: none;
}
.tarjeta::before, .senal::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tarjeta::after, .senal::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Franja de señal: lecturas de instrumentos */
.senal { display: flex; flex-wrap: wrap; margin-bottom: 16px; overflow: hidden; }
.senal-item {
  flex: 1 1 145px; padding: 16px 20px 15px;
  border-right: 1px solid var(--linea);
}
.senal-item:last-child { border-right: none; }
.senal-num {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.7rem; font-weight: 600; line-height: 1.1;
  color: var(--tinta); letter-spacing: -0.01em;
}
.senal-num.destacado {
  color: var(--primario);
  text-shadow: 0 0 16px var(--primario-glow);
  animation: latido 3.4s ease-in-out infinite;
}
.senal-num.alerta {
  color: var(--secundario);
  text-shadow: 0 0 18px var(--secundario-glow);
}
@keyframes latido {
  0%, 100% { text-shadow: 0 0 14px rgba(47, 211, 238, 0.35); }
  50% { text-shadow: 0 0 22px rgba(47, 211, 238, 0.7); }
}
.senal-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tinta-suave); margin-top: 4px;
}

/* Globo holográfico + lecturas de estado */
.globo-band { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.globo-wrap {
  position: relative; width: 250px; height: 250px; flex-shrink: 0;
  margin: -6px auto -6px;
}
.globo-wrap canvas { width: 100%; height: 100%; display: block; }
.estado-lista { flex: 1; min-width: 240px; display: flex; flex-direction: column; }
.estado-fila {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 2px; border-bottom: 1px solid var(--linea);
}
.estado-fila:last-child { border-bottom: none; }
.estado-k {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--tinta-suave);
}
.estado-v {
  font-family: var(--mono); font-size: 0.86rem; color: var(--tinta);
  font-variant-numeric: tabular-nums;
}
.estado-v.on { color: var(--primario); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 > .tarjeta { margin-bottom: 0; }

.chart-box { position: relative; height: 240px; }

/* ============ Formularios ============ */
label { display: block; margin-bottom: 14px; font-size: 0.82rem; font-weight: 600; color: var(--tinta-2); }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio-sm);
  font-size: 0.9rem; font-family: inherit;
  background: rgba(6, 10, 15, 0.6); color: var(--tinta);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input::placeholder, textarea::placeholder { color: var(--tinta-suave); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primario);
  box-shadow: 0 0 0 3px var(--primario-tinte), 0 0 14px rgba(47, 211, 238, 0.18);
}
select option { background: var(--superficie-solida); color: var(--tinta); }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-inline input, .form-inline select { width: auto; flex: 1; min-width: 160px; margin-top: 0; }
label.check { display: flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; }
label.check input { width: auto; margin: 0; accent-color: var(--primario); }
.alinear-abajo { display: flex; align-items: flex-end; margin-bottom: 14px; }

/* ============ Botones (controles HUD) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; cursor: pointer;
  padding: 8px 16px; border-radius: var(--radio-sm);
  font-size: 0.82rem; font-weight: 600; font-family: var(--mono);
  letter-spacing: 0.03em; line-height: 1.3;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primario); outline-offset: 2px; }
.btn-primario {
  background: var(--primario); color: #04141a;
  box-shadow: 0 0 0 1px rgba(47, 211, 238, 0.4), 0 0 18px rgba(47, 211, 238, 0.28);
}
.btn-primario:hover { background: var(--primario-hover); box-shadow: 0 0 0 1px var(--primario), 0 0 26px rgba(47, 211, 238, 0.5); }
.btn-sec {
  background: rgba(47, 211, 238, 0.04); color: var(--primario);
  border-color: var(--linea-fuerte);
}
.btn-sec:hover { background: rgba(47, 211, 238, 0.12); border-color: var(--primario); }
.btn-peligro { background: transparent; color: var(--error); border-color: rgba(255, 107, 94, 0.4); }
.btn-peligro:hover { background: var(--error-tinte); border-color: var(--error); }
.btn-sm { padding: 4px 10px; font-size: 0.72rem; }
.btn-block { width: 100%; }
.inline { display: inline; }

/* ============ Tablas ============ */
.tabla-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th {
  text-align: left; padding: 8px 12px;
  font-family: var(--mono); color: var(--tinta-suave);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--linea-fuerte); white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
tbody tr { transition: background 120ms ease; }
tbody tr:hover { background: rgba(47, 211, 238, 0.05); }
tbody tr:last-child td { border-bottom: none; }
.nowrap { white-space: nowrap; }
td.nowrap, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.8rem; }

/* ============ Avisos, badges, chips ============ */
.aviso {
  position: relative;
  padding: 11px 14px; border-radius: var(--radio-sm);
  margin-bottom: 14px; font-size: 0.88rem;
  border: 1px solid var(--linea);
}
.aviso-ok { background: var(--ok-tinte); color: var(--ok); border-color: rgba(52, 227, 155, 0.3); }
.aviso-error { background: var(--error-tinte); color: var(--error); border-color: rgba(255, 107, 94, 0.3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 2px 7px; border-radius: var(--radio-sm);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 7px currentColor; flex-shrink: 0;
}
.badge-ok { background: var(--ok-tinte); color: var(--ok); }
.badge-error { background: var(--error-tinte); color: var(--error); }
.badge-warn { background: var(--warn-tinte); color: var(--warn); }

.chip {
  display: inline-block;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  background: var(--primario-tinte); color: var(--primario);
  border: 1px solid rgba(47, 211, 238, 0.25);
  padding: 1px 7px; border-radius: var(--radio-sm); margin: 1px 3px 1px 0;
}
.texto-suave { color: var(--tinta-suave); font-size: 0.85rem; }

/* ============ Pestañas ============ */
.tabs {
  display: flex; gap: 2px; margin-bottom: 18px;
  border-bottom: 1px solid var(--linea-fuerte);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: none; cursor: pointer;
  padding: 9px 14px 11px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tinta-suave);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.tab:hover { color: var(--tinta); }
.tab.activo {
  color: var(--primario); border-bottom-color: var(--primario); font-weight: 600;
  text-shadow: 0 0 12px var(--primario-glow);
}
.tab:focus-visible { outline: 2px solid var(--primario); outline-offset: -2px; }

/* ============ Medios ============ */
.lista-medios {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px; margin-bottom: 16px;
}
.medio-item { padding: 7px 9px; border-radius: var(--radio-sm); margin-bottom: 0; font-size: 0.86rem; }
.medio-item:hover { background: rgba(47, 211, 238, 0.05); }
.medio-item .texto-suave { font-family: var(--mono); font-size: 0.7rem; }

/* ============ Config del cliente ============ */
.config-lista dt {
  font-family: var(--mono); font-size: 0.66rem; color: var(--tinta-suave);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px;
}
.config-lista dd { margin: 2px 0 0; font-size: 0.88rem; color: var(--tinta); }

.paginacion { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

/* ============ Filas de noticia (clic para abrir detalle) ============ */
.fila-noticia { cursor: pointer; }
.fila-noticia:focus-visible { outline: 2px solid var(--primario); outline-offset: -2px; }
.ver-detalle {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--tinta-suave); white-space: nowrap;
}
.fila-noticia:hover .ver-detalle { color: var(--primario); }

/* ============ Modal de detalle de noticia (dialog nativo) ============ */
.modal-noticia {
  width: min(720px, 92vw); max-height: 86vh;
  margin: auto; padding: 0;
  border: 1px solid var(--linea-fuerte); border-radius: var(--radio);
  background: var(--superficie-solida); color: var(--tinta);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(47, 211, 238, 0.10);
  overflow: visible;
}
.modal-noticia[open] {
  display: flex; flex-direction: column;
  animation: modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-noticia::before, .modal-noticia::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1px solid var(--bracket); pointer-events: none;
}
.modal-noticia::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.modal-noticia::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.modal-noticia::backdrop {
  background: rgba(4, 8, 12, 0.72); backdrop-filter: blur(3px);
  animation: fade-in 0.22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

.modal-cab {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--linea);
}
.modal-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.modal-medio {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primario);
}
.modal-fecha { font-size: 0.74rem; color: var(--tinta-suave); }
.modal-cerrar {
  flex-shrink: 0; background: rgba(47, 211, 238, 0.04); border: 1px solid var(--linea-fuerte);
  color: var(--tinta-2); cursor: pointer; width: 30px; height: 30px;
  border-radius: var(--radio-sm); display: flex; align-items: center; justify-content: center;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.modal-cerrar:hover { background: var(--error-tinte); color: var(--error); border-color: rgba(255, 107, 94, 0.4); }
.modal-cuerpo-scroll { overflow-y: auto; padding: 18px 20px; }
.modal-titulo {
  font-family: var(--fuente); font-size: 1.15rem; font-weight: 650;
  line-height: 1.3; color: #eaf6fa; text-wrap: balance; margin-bottom: 14px;
}
.modal-img {
  width: 100%; max-height: 300px; object-fit: cover;
  border-radius: var(--radio-sm); border: 1px solid var(--linea);
  margin-bottom: 14px; display: block;
}
.modal-texto { font-size: 0.92rem; line-height: 1.65; color: var(--tinta-2); white-space: pre-wrap; }
.modal-pie {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 12px 20px 16px; border-top: 1px solid var(--linea);
}

/* ============ Login ============ */
.login-body {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(47, 211, 238, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 110%, rgba(255, 138, 61, 0.08), transparent 60%),
    var(--bg);
}
.login-body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(122, 176, 196, 0.04) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(90deg, rgba(122, 176, 196, 0.04) 0 1px, transparent 1px 52px);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 30%, transparent 75%);
}
.login-card {
  position: relative;
  background: rgba(12, 20, 28, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  padding: 36px 32px 30px; width: 100%; max-width: 380px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(47, 211, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.login-card::before, .login-card::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1px solid var(--bracket); pointer-events: none;
}
.login-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.login-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.login-marca { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.login-marca svg { color: var(--primario); filter: drop-shadow(0 0 8px var(--primario-glow)); }
.login-card h1 { color: #eaf6fa; font-size: 1.3rem; }
.login-sub {
  font-family: var(--mono); color: var(--tinta-suave); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 24px;
}
.login-card .btn-primario { margin-top: 6px; }

/* ============ Móvil ============ */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .layout { display: block; }
  .sidebar {
    position: fixed; top: 52px; left: 0; bottom: 0; z-index: var(--z-sidebar);
    transform: translateX(-100%);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    width: 240px; background: var(--superficie-solida);
  }
  body.nav-abierta .sidebar { transform: translateX(0); }
  .contenido { padding: 16px 14px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .usuario-nombre { display: none; }
  .pulso span { display: none; }
  .senal-item { flex-basis: 45%; border-bottom: 1px solid var(--linea); }
  .chart-box { height: 210px; }
  .tabla-scroll { margin: 0 -14px; padding: 0 14px; }
}

/* ============ Movimiento reducido ============ */
@media (prefers-reduced-motion: reduce) {
  .pulso-punto::after { animation: none; opacity: 0.35; transform: none; }
  .senal-num.destacado { animation: none; text-shadow: 0 0 16px var(--primario-glow); }
  .sidebar { transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
