/* SEVEN · Signal Monitor — look & feel neón / vidrio */
:root {
  --bg: #050814;
  --bg-2: #0a1022;
  --panel: rgba(16, 24, 48, .62);
  --panel-solid: #0f1730;
  --panel-2: rgba(24, 34, 66, .7);
  --line: rgba(120, 160, 255, .14);
  --line-2: rgba(120, 160, 255, .28);
  --text: #eaf0ff;
  --muted: #9fb0d4;
  --dim: #6577a0;
  --cyan: #22d3ee;
  --violet: #818cf8;
  --magenta: #e879f9;
  --accent: var(--cyan);
  --accent-2: #0ea5c4;
  --grad: linear-gradient(110deg, #22d3ee 0%, #818cf8 55%, #e879f9 100%);
  --vivo: #34f5a4;
  --parcial: #fbbf24;
  --caido: #ff5470;
  --gris: #8794b4;
  --radius: 16px;
  --glow-c: 0 0 18px rgba(34, 211, 238, .45);
  --glow-v: 0 0 22px rgba(129, 140, 248, .35);
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Space Grotesk", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fondo: auroras + retícula técnica + barrido */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(129, 140, 248, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(600px 400px at 60% 120%, rgba(232, 121, 249, .12), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
}
.scan { position: fixed; left: 0; right: 0; top: -20%; height: 20%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .05), transparent); animation: scan 9s linear infinite; }
@keyframes scan { to { transform: translateY(700%); } }

a { color: var(--cyan); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo img { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(34, 211, 238, .55)); }
.logo-text b { display: block; letter-spacing: .34em; font-size: 16px; font-weight: 700; }
.logo-text span { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); font-family: var(--mono); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.login-card {
  position: relative; width: 100%; max-width: 400px; padding: 36px 30px; text-align: center; border-radius: 22px;
  background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--grad) border-box;
  border: 1px solid transparent; box-shadow: var(--shadow), 0 0 60px rgba(129, 140, 248, .18);
}
.login-radar { width: 120px; height: 120px; margin: -8px auto 6px; position: relative; display: grid; place-items: center; }
.login-radar img { width: 64px; height: 64px; filter: drop-shadow(0 0 14px rgba(34, 211, 238, .7)); position: relative; z-index: 2; }
.login-radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .5); animation: ping 3s ease-out infinite; }
.login-radar i:nth-child(2) { animation-delay: 1s; } .login-radar i:nth-child(3) { animation-delay: 2s; }
@keyframes ping { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.login-card h1 { font-size: 30px; letter-spacing: .3em; margin-left: .3em; }
.login-card form { text-align: left; margin-top: 24px; display: grid; gap: 14px; }
.login-card .foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--dim); letter-spacing: .12em; }
.login-error { color: var(--caido); font-size: 13px; min-height: 18px; }
.demo-hint { font-size: 12px; color: var(--muted); background: rgba(34, 211, 238, .06); border: 1px dashed rgba(34, 211, 238, .35); border-radius: 10px; padding: 8px 10px; }

/* ---------- Formularios ---------- */
label.field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.input, select.input {
  width: 100%; background: rgba(5, 10, 25, .7); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px;
  outline: none; transition: border-color .2s, box-shadow .2s; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14.5px;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), var(--glow-c); }
input[type=date].input { color-scheme: dark; font-family: var(--mono); font-size: 13px; }
input[type=checkbox] { accent-color: var(--cyan); }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: rgba(20, 30, 60, .6); border-radius: 12px; padding: 10px 16px; cursor: pointer;
  font-weight: 600; font-size: 13px; letter-spacing: .02em; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s; white-space: nowrap;
  backdrop-filter: blur(6px);
}
.btn::after { /* destello que recorre el botón */
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg); transition: left .6s;
}
.btn:hover::after { left: 140%; }
.btn:hover { border-color: var(--cyan); box-shadow: var(--glow-c); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary, .btn.brand {
  border: 0; color: #041018; background: var(--grad); box-shadow: 0 0 20px rgba(34, 211, 238, .35), 0 0 40px rgba(232, 121, 249, .2);
  text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700;
}
.btn.primary:hover, .btn.brand:hover { box-shadow: 0 0 26px rgba(34, 211, 238, .6), 0 0 60px rgba(232, 121, 249, .35); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 12px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.active { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, .1); box-shadow: inset 0 0 12px rgba(34, 211, 238, .2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px; z-index: 20;
  background: linear-gradient(180deg, rgba(10, 16, 36, .92), rgba(6, 10, 24, .92)); border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.sidebar::after { content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--cyan), transparent); opacity: .5; }
.sidebar .logo { padding: 0 8px 24px; }
.nav-label { font: 10px var(--mono); letter-spacing: .2em; color: var(--dim); padding: 0 12px 8px; text-transform: uppercase; }
.nav { display: grid; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted);
  font-weight: 500; position: relative; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(120, 160, 255, .07); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(34, 211, 238, .16), rgba(129, 140, 248, .05)); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: var(--glow-c); }
.nav a.active svg { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(34, 211, 238, .8)); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .badge { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--caido); box-shadow: 0 0 10px var(--caido); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.sidebar .bottom { margin-top: auto; display: grid; gap: 10px; }
.sys-status { margin: 0 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 10, 25, .5); font: 11px var(--mono); color: var(--muted); }
.sys-status b { color: var(--vivo); }
.user-box { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 8px; }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #041018; background: var(--grad); flex: none; }
.main { padding: 30px 34px 56px; min-width: 0; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumb { font: 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; display: inline-flex; gap: 8px; align-items: center; }
.crumb::before { content: ""; width: 18px; height: 1px; background: var(--cyan); box-shadow: var(--glow-c); }
.demo-banner {
  display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--parcial); border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); border-radius: 999px; padding: 4px 11px;
}
.demo-banner::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--parcial); box-shadow: 0 0 8px var(--parcial); }

/* ---------- Tarjetas (vidrio con borde de gradiente) ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.card.neon { background: linear-gradient(rgba(12, 19, 40, .85), rgba(12, 19, 40, .85)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: var(--glow-v); }
.card.corners::before, .card.corners::after { /* esquinas tipo HUD */
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan); opacity: .8; filter: drop-shadow(0 0 4px var(--cyan));
}
.card.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.card.corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi .value { font: 700 38px/1.05 var(--mono); letter-spacing: -.03em; text-shadow: 0 0 22px rgba(34, 211, 238, .35); }
.kpi .value small { font-size: 16px; color: var(--muted); font-weight: 500; text-shadow: none; }
.kpi .label { color: var(--muted); font-size: 13px; }
.eyebrow { font: 600 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.split { display: grid; grid-template-columns: minmax(290px, 370px) 1fr; gap: 20px; align-items: start; }
.split.det { grid-template-columns: 1fr minmax(300px, 420px); }
.split.half { grid-template-columns: 1fr 1fr; }
.sep { border: 0; border-top: 1px dashed var(--line-2); margin: 16px 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 16, 36, .55); }
.tile .n { font: 700 26px var(--mono); }
.tile .t { font-size: 12px; color: var(--muted); }
.tile.v .n { color: var(--vivo); text-shadow: 0 0 14px rgba(52, 245, 164, .45); }
.tile.i .n { color: var(--parcial); text-shadow: 0 0 14px rgba(251, 191, 36, .4); }
.tile.s .n { color: var(--caido); text-shadow: 0 0 14px rgba(255, 84, 112, .45); }
.tile.g .n { color: var(--gris); }

/* ---------- Estados ---------- */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gris); flex: none; }
.dot.vivo, .dot.confirmado { background: var(--vivo); box-shadow: 0 0 10px var(--vivo); }
.dot.parcial, .dot.inestable, .dot.probable { background: var(--parcial); box-shadow: 0 0 10px var(--parcial); }
.dot.caido, .dot.sin_senal, .dot.descartado { background: var(--caido); box-shadow: 0 0 10px var(--caido); }
.dot.vivo { animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 245, 164, .6); } 70% { box-shadow: 0 0 0 7px rgba(52, 245, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 245, 164, 0); } }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; background: rgba(10, 16, 36, .5);
}
.pill.vivo, .pill.confirmado { color: var(--vivo); border-color: rgba(52, 245, 164, .45); background: rgba(52, 245, 164, .08); box-shadow: inset 0 0 10px rgba(52, 245, 164, .12); }
.pill.parcial, .pill.inestable, .pill.probable { color: var(--parcial); border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); }
.pill.caido, .pill.sin_senal, .pill.descartado { color: var(--caido); border-color: rgba(255, 84, 112, .45); background: rgba(255, 84, 112, .08); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Mapas ---------- */
.map-box { position: relative; overflow: hidden; }
.map-box::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 45% 55%, rgba(34, 211, 238, .08), transparent 60%); }
.map-box svg { position: relative; width: 100%; height: auto; max-height: 78vh; display: block; }
.map-box .dep path, .map-box .prov path { fill: rgba(16, 40, 80, .55) !important; stroke: rgba(34, 211, 238, .55) !important; stroke-width: .9 !important; transition: fill .2s; }
.map-box svg { filter: drop-shadow(0 0 10px rgba(34, 211, 238, .25)); }
.map-box svg text { fill: #dfe8ff !important; stroke: #050814 !important; }
.map-box.clickable .dep path { cursor: pointer; }
.map-box.clickable .dep path:hover { fill: rgba(34, 211, 238, .22) !important; }
.map-box #puntos g { cursor: pointer; }
.map-box #puntos circle { stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; transition: r .15s; }
.map-box #puntos g[data-estado="vivo"] circle { fill: var(--vivo); filter: drop-shadow(0 0 5px var(--vivo)); }
.map-box #puntos g[data-estado="parcial"] circle { fill: var(--parcial); filter: drop-shadow(0 0 5px var(--parcial)); }
.map-box #puntos g[data-estado="caido"] circle { fill: var(--caido); filter: drop-shadow(0 0 6px var(--caido)); }
.map-box #puntos g[data-estado="gris"] circle { fill: var(--gris); }
.map-box #puntos g:hover circle { r: 8; }
.map-box #capital .ring { stroke: var(--cyan) !important; animation: radar 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map-box #capital .ring:nth-child(2) { animation-delay: .8s; }
.map-box #capital .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
.map-box .prov path.has { fill: rgba(34, 211, 238, .2) !important; }
.map-box .prov path.sel { fill: rgba(232, 121, 249, .35) !important; stroke: var(--magenta) !important; }
.map-tip {
  position: absolute; pointer-events: none; background: rgba(5, 8, 20, .92); border: 1px solid var(--cyan); border-radius: 10px; padding: 8px 11px;
  font-size: 12px; box-shadow: var(--glow-c); transform: translate(-50%, -118%); white-space: nowrap; z-index: 5;
}
.map-hud { position: absolute; left: 16px; top: 14px; font: 10.5px var(--mono); letter-spacing: .14em; color: var(--cyan); opacity: .8; z-index: 3; text-transform: uppercase; }

.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.country { cursor: pointer; display: grid; gap: 8px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.country:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-c); }
.country.on { background: linear-gradient(rgba(12, 19, 40, .85), rgba(12, 19, 40, .85)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.country.off { cursor: default; opacity: .55; filter: grayscale(.4); }
.country.off:hover { transform: none; box-shadow: none; border-color: var(--line); }
.country .shape { height: 130px; display: grid; place-items: center; }
.country .shape img { max-height: 120px; max-width: 100%; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .35)); }

/* ---------- Regiones ---------- */
.regions { display: grid; gap: 14px; }
.region {
  position: relative; overflow: hidden; border-radius: 18px; padding: 20px 22px; display: flex; align-items: center; gap: 18px; cursor: pointer; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14); transition: transform .2s, box-shadow .2s;
}
.region::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.region > * { position: relative; }
.region:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--rg, rgba(34, 211, 238, .4)); }
.region .ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.region h2 { font-size: 22px; letter-spacing: .14em; }
.region .meta { opacity: .88; font-size: 13px; font-family: var(--mono); }
.region .bar { margin-left: auto; width: min(220px, 32%); }
.bar-track { height: 6px; background: rgba(0, 0, 0, .35); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: #fff; border-radius: 99px; box-shadow: 0 0 10px #fff; }
.r-lima { background: linear-gradient(110deg, #3b1d8f, #8b5cf6 60%, #c084fc); --rg: rgba(139, 92, 246, .55); }
.r-norte { background: linear-gradient(110deg, #0c3a8a, #2563eb 60%, #38bdf8); --rg: rgba(56, 189, 248, .55); }
.r-centro { background: linear-gradient(110deg, #7a3410, #ea7a1c 60%, #fbbf24); --rg: rgba(251, 191, 36, .5); }
.r-sur { background: linear-gradient(110deg, #6b0f2a, #e11d48 60%, #fb7185); --rg: rgba(251, 113, 133, .55); }
.r-oriente { background: linear-gradient(110deg, #064e3b, #059669 60%, #34d399); --rg: rgba(52, 211, 153, .55); }

/* ---------- Arquitectura (flujo de señal) ---------- */
.arch { overflow-x: auto; padding: 8px 4px 4px; }
.arch svg { display: block; min-width: 700px; width: 100%; height: auto; }
.arch .node rect { fill: rgba(8, 14, 32, .9); stroke: rgba(120, 160, 255, .35); stroke-width: 1.2; }
.arch .node.hl rect { stroke: url(#archGrad); stroke-width: 1.6; filter: url(#archGlow); }
.arch .node text { fill: var(--text); font-family: "Space Grotesk", Inter, sans-serif; }
.arch .node .t1 { font-size: 13px; font-weight: 600; }
.arch .node .t2 { font-size: 10.5px; fill: var(--muted); font-family: var(--mono); }
.arch .node .t3 { font-size: 20px; font-weight: 700; font-family: var(--mono); }
.arch .srv { cursor: pointer; }
.arch .srv:hover rect { stroke: var(--cyan); }
.arch .wire { fill: none; stroke: rgba(120, 160, 255, .22); stroke-width: 1.5; }
.arch .flow { fill: none; stroke-width: 2; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
.arch .flow.vivo { stroke: var(--vivo); filter: drop-shadow(0 0 3px var(--vivo)); }
.arch .flow.parcial { stroke: var(--parcial); filter: drop-shadow(0 0 3px var(--parcial)); }
.arch .flow.caido { stroke: var(--caido); animation-duration: 3s; opacity: .7; }
.arch .flow.main { stroke: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
@keyframes flow { to { stroke-dashoffset: -32; } }
.arch .packet { fill: #fff; filter: drop-shadow(0 0 4px var(--cyan)); }
.arch-legend { display: flex; flex-wrap: wrap; gap: 14px; font: 11px var(--mono); color: var(--muted); margin-top: 8px; }

/* ---------- Tablas y listas ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(34, 211, 238, .05); }
tr:last-child td { border-bottom: 0; }
td .ok { color: var(--vivo); text-shadow: 0 0 8px var(--vivo); } td .ko { color: var(--caido); }
.server { padding: 0; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.server:hover { border-color: var(--line-2); }
.server.open { border-color: rgba(34, 211, 238, .45); box-shadow: var(--glow-c); }
.server.flash { animation: srvflash 1.4s ease-out; }
@keyframes srvflash { from { box-shadow: 0 0 0 2px var(--cyan), 0 0 40px rgba(34, 211, 238, .6); } }
.server-head { display: flex; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer; }
.server-head .ip { font: 700 18px var(--mono); min-width: 56px; }
.server-head .counts { margin-left: auto; font: 14px var(--mono); white-space: nowrap; }
.counts .c-v { color: var(--vivo); } .counts .c-i { color: var(--parcial); } .counts .c-s { color: var(--caido); } .counts .c-g { color: var(--gris); }
.server-head .chev { transition: transform .25s; color: var(--muted); display: inline-flex; }
.server.open .chev { transform: rotate(180deg); color: var(--cyan); }
.server-body { border-top: 1px solid var(--line); padding: 4px 6px 8px; display: none; }
.server.open .server-body { display: block; }
.stack { display: grid; gap: 10px; }
.mini-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: rgba(120, 160, 255, .12); width: 140px; }
.mini-bar i { display: block; height: 100%; }
.mini-bar i:first-child { box-shadow: 0 0 8px var(--vivo); }
@media (max-width: 1050px) { .server-head .host { display: none; } }

.timeline { display: grid; position: relative; }
.tl-item { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 0 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; position: relative; }
.tl-item:last-child { border-bottom: 0; }
.tl-item .when { color: var(--dim); font: 12px var(--mono); padding-top: 2px; }
.tl-item .why { color: var(--muted); font: 11.5px var(--mono); margin-top: 3px; word-break: break-word; }
.tl-item.new { animation: flash 1.8s ease-out; }
@keyframes flash { from { background: rgba(34, 211, 238, .16); } to { background: transparent; } }

.list-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; backdrop-filter: blur(10px); }
.list-item:hover { border-color: var(--line-2); transform: translateX(2px); }
.list-item.sel { border-color: var(--cyan); box-shadow: var(--glow-c), inset 3px 0 0 var(--cyan); }
.list-item .grow { flex: 1; min-width: 0; }
.date-group { font: 600 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 20px 0 10px; display: flex; gap: 10px; align-items: center; }
.date-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.wave { display: flex; align-items: center; gap: 3px; height: 74px; margin: 18px 0 6px; }
.wave i { flex: 1; background: rgba(129, 140, 248, .45); border-radius: 2px; }
.wave i.hit { background: var(--grad); box-shadow: 0 0 8px rgba(34, 211, 238, .7); animation: eq 1.1s ease-in-out infinite alternate; }
.wave i.hit:nth-child(odd) { animation-delay: .3s; }
@keyframes eq { to { transform: scaleY(.6); } }
.mark { background: rgba(34, 211, 238, .18); color: var(--cyan); border-radius: 4px; padding: 0 3px; box-shadow: 0 0 10px rgba(34, 211, 238, .25); }
.quote { font-size: 15.5px; line-height: 1.6; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.skeleton { height: 64px; border-radius: 14px; background: linear-gradient(90deg, rgba(20,30,60,.6) 0, rgba(34,211,238,.1) 50%, rgba(20,30,60,.6) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast {
  position: fixed; right: 20px; bottom: 20px; border-radius: 14px; padding: 12px 16px; z-index: 50; max-width: 340px; font-size: 13.5px;
  background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--grad) border-box; border: 1px solid transparent;
  box-shadow: var(--shadow), var(--glow-c); animation: up .25s ease-out;
}
@keyframes up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.view { animation: viewIn .35s ease-out; }
@keyframes viewIn { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- Responsive ---------- */
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .split.det, .split.half { grid-template-columns: 1fr; }
  #d-detalle { position: static !important; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  #mapa, #mapa-dep { order: -1; }
}
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; gap: 10px; }
  .sidebar::after { top: auto; bottom: -1px; right: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
  .sidebar .logo { padding: 0; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav, .nav-label, .sidebar .bottom { display: none; }
  .sidebar.open { flex-wrap: wrap; }
  .sidebar.open .nav, .sidebar.open .bottom { display: grid; width: 100%; }
  .nav a.active::before { left: 0; }
  .main { padding: 22px 16px 44px; }
  h1 { font-size: 24px; }
  .region .bar { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 2px; }
  .server-head { flex-wrap: wrap; }
  .kpi .value { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Torre de control (cabina) ---------- */
.cockpit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.main-gauges { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 10px; margin: 8px 0 16px; }
.gauge { max-width: 100%; }
.gauge svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(34, 211, 238, .18)); }
.gauge .g-needle { transform-origin: 100px 100px; transition: transform 1.4s cubic-bezier(.2, 1.4, .4, 1); }
.gauge .g-num { font: 600 9px var(--mono); fill: #9fb0d4; text-anchor: middle; }
.gauge .g-title { font: 700 9.5px var(--mono); letter-spacing: .2em; fill: var(--cyan); text-anchor: middle; }
.gauge .g-read { font: 700 17px var(--mono); fill: #eaffff; text-anchor: middle; filter: drop-shadow(0 0 4px var(--cyan)); }
.gauge .g-sub { font: 500 8.5px var(--mono); fill: #9fb0d4; text-anchor: middle; }
.srv-gauges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; justify-items: center; }
.srv-gauges a { display: block; width: 100%; max-width: 180px; color: inherit; border-radius: 50%; transition: transform .2s; }
.srv-gauges a:hover { transform: scale(1.04); }
.srv-gauges .gauge { width: 100% !important; }

.ann-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ann { border-radius: 8px; padding: 9px 10px; text-align: center; border: 1px solid; font-family: var(--mono); background: rgba(5, 8, 20, .7); transition: background .3s; }
.ann b { display: block; font-size: 11px; letter-spacing: .14em; }
.ann span { display: block; font-size: 10.5px; opacity: .85; margin-top: 2px; }
.ann.vivo { color: var(--vivo); border-color: rgba(52, 245, 164, .55); background: rgba(52, 245, 164, .08); box-shadow: inset 0 0 14px rgba(52, 245, 164, .15), 0 0 10px rgba(52, 245, 164, .15); }
.ann.parcial { color: var(--parcial); border-color: rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .09); box-shadow: inset 0 0 14px rgba(251, 191, 36, .18), 0 0 10px rgba(251, 191, 36, .2); }
.ann.caido { color: var(--caido); border-color: rgba(255, 84, 112, .7); background: rgba(255, 84, 112, .12); box-shadow: inset 0 0 16px rgba(255, 84, 112, .25), 0 0 14px rgba(255, 84, 112, .35); animation: alarm 1.2s steps(2) infinite; }
.ann.gris { color: var(--gris); border-color: var(--line-2); }
@keyframes alarm { 50% { background: rgba(255, 84, 112, .28); } }

.scope { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, #06231c 0%, #031410 65%, #020a08 100%); border: 2px solid rgba(52, 245, 164, .35);
  box-shadow: 0 0 40px rgba(52, 245, 164, .18), inset 0 0 60px rgba(0, 0, 0, .8); }
.scope-map { position: absolute; inset: 9%; display: grid; place-items: center; }
.scope-map svg { width: 100%; height: 100%; }
.scope-map .dep path { fill: rgba(52, 245, 164, .07) !important; stroke: rgba(52, 245, 164, .55) !important; stroke-width: 1 !important; }
.scope-map text, .scope-map #capital { display: none; }
.scope-map #puntos circle { r: 8; stroke: none; }
.scope-map #puntos g[data-estado="vivo"] circle { fill: var(--vivo); filter: drop-shadow(0 0 6px var(--vivo)); }
.scope-map #puntos g[data-estado="parcial"] circle { fill: var(--parcial); filter: drop-shadow(0 0 6px var(--parcial)); }
.scope-map #puntos g[data-estado="caido"] circle { fill: var(--caido); filter: drop-shadow(0 0 7px var(--caido)); animation: blink 1s infinite; }
.scope-map #puntos g[data-estado="gris"] circle { fill: var(--gris); }
.scope-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope-sweep { position: absolute; inset: 0; border-radius: 50%; animation: sweep 4s linear infinite;
  background: conic-gradient(from 0deg, rgba(52, 245, 164, .45), rgba(52, 245, 164, .08) 40deg, transparent 70deg); mix-blend-mode: screen; }
.scope-sweep::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 50%; background: linear-gradient(var(--vivo), transparent); box-shadow: 0 0 10px var(--vivo); transform: translateX(-1px); }
@keyframes sweep { to { transform: rotate(360deg); } }
.scope-label { position: absolute; font: 600 9.5px var(--mono); letter-spacing: .16em; color: rgba(52, 245, 164, .85); }
.scope-label.tl { top: 12%; left: 50%; transform: translateX(-50%); }
.scope-label.br { bottom: 10%; left: 50%; transform: translateX(-50%); white-space: nowrap; }

.arch-cap { font: 600 10px var(--mono); letter-spacing: .2em; fill: var(--dim); }
.ticker { display: grid; }
.tk { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.tk:last-child { border-bottom: 0; }
.tk.new { animation: flash 1.8s ease-out; }
.tk-why { margin-left: auto; font-size: 11px; }
@media (max-width: 1100px) { .cockpit { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .main-gauges .gauge { width: 46vw !important; } .tk-why { margin-left: 0; width: 100%; } }

/* =========================================================
   v0.3 · Accesos por perfil, cuentas y Backend
   ========================================================= */
.sidebar.open .nav-label { display: block; width: 100%; }
.nav-label { margin-top: 14px; }
.nav-label:first-of-type { margin-top: 0; }
.nav .badge-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--caido); color: #fff;
  font: 700 11px/20px var(--mono); text-align: center; box-shadow: 0 0 12px rgba(255, 84, 112, .6); }

/* Acceso: elegir perfil */
.login-card.wide { max-width: 560px; width: 100%; }
.login-q { font-size: 18px; margin: 22px 0 14px; font-weight: 600; }
.perfiles { display: grid; gap: 10px; text-align: left; }
.perfil { display: grid; grid-template-columns: 48px 1fr 20px; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--line-2); background: rgba(10, 16, 36, .6); color: var(--text); text-decoration: none; transition: .2s; }
.perfil:hover { border-color: var(--cyan); box-shadow: var(--glow-c); transform: translateY(-1px); }
.perfil .p-ico { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.perfil b { font-size: 16px; }
.perfil > span:not(.p-ico) { grid-column: 2; font-size: 13px; color: var(--muted); }
.perfil .p-go { grid-row: 1 / 3; grid-column: 3; color: var(--dim); }
.p-cliente .p-ico, .acct-ico.p-cliente { background: rgba(34, 211, 238, .14); color: var(--cyan); }
.p-agencia .p-ico, .acct-ico.p-agencia { background: rgba(129, 140, 248, .16); color: var(--violet); }
.p-demo .p-ico, .acct-ico.p-demo { background: rgba(251, 191, 36, .14); color: var(--parcial); }
.acct-ico.p-backend { background: rgba(232, 121, 249, .14); color: var(--magenta); }
.btn-backend { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; font: 12px var(--mono);
  letter-spacing: .06em; color: var(--magenta); border: 1px dashed rgba(232, 121, 249, .5); background: rgba(232, 121, 249, .06); text-decoration: none; }
.btn-backend:hover { box-shadow: 0 0 18px rgba(232, 121, 249, .45); background: rgba(232, 121, 249, .12); }
.login-back { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.login-tipo { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid var(--line-2); }
.login-tipo.p-cliente { color: var(--cyan); } .login-tipo.p-agencia { color: var(--violet); } .login-tipo.p-demo { color: var(--parcial); } .login-tipo.p-backend { color: var(--magenta); }
.login-card.is-backend { border-color: rgba(232, 121, 249, .45); box-shadow: 0 0 40px rgba(232, 121, 249, .18); }

/* Barra de cuenta (prueba / ver como) */
.acct-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 14px; font-size: 13.5px; }
.acct-bar span { flex: 1; min-width: 200px; }
.acct-bar.trial { border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); color: #fde7a6; }
.acct-bar.vercomo { border: 1px solid rgba(232, 121, 249, .5); background: rgba(232, 121, 249, .09); color: #f6d3fb; }

/* Mapa: departamentos fuera del plan */
.map-box [data-d].fuera { fill: #070b16 !important; opacity: .45; cursor: not-allowed; }
.map-box #puntos g[data-estado="fuera"], .scope-map #puntos g[data-estado="fuera"] { opacity: .18; }
.map-box #puntos g[data-estado="fuera"] circle, .scope-map #puntos g[data-estado="fuera"] circle { fill: var(--gris); filter: none; animation: none; }

/* Controles estilo Apple */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(10, 16, 36, .8); border: 1px solid var(--line); flex-wrap: wrap; gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 7px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: rgba(34, 211, 238, .16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45); }
.seg.big button { padding: 10px 18px; font-size: 14px; }
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: #1f2a48; transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch input:checked + i { background: var(--vivo); box-shadow: 0 0 12px rgba(52, 245, 164, .45); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tog { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; position: relative; }
.tog input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tog i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--dim); flex: none; }
.tog:has(input:checked) { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .1); }
.tog input:checked + i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.link { background: none; border: 0; color: var(--cyan); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.link.danger { color: var(--caido); }

/* Lista de cuentas */
.acct { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.acct.off { opacity: .55; }
.acct-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.acct-main { flex: 1; min-width: 240px; }
.acct-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 16px; }
.acct-facts { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.acct-dl { display: inline-flex; align-items: center; gap: 6px; }
.acct-dl i { display: inline-block; width: 60px; height: 5px; border-radius: 3px; background: #1a2442; overflow: hidden; }
.acct-dl em { display: block; height: 100%; background: var(--grad); }
.acct-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Editor de cuenta */
.editor { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.ed-sum { position: sticky; top: 20px; }
.grp h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: .02em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-set { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.grp h3 + .row-set, .grp p + .row-set { border-top: 0; }
.row-set.sw { cursor: pointer; }
.max-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.max-box input[type=range] { width: 200px; accent-color: var(--cyan); }
.terr-wrap { display: grid; grid-template-columns: 1fr 230px; gap: 14px; margin-top: 12px; }
.terr-map svg { max-height: 520px; }
.terr-map #puntos, .terr-map #capital { display: none; }
.terr-map [data-d] { cursor: pointer; transition: fill .15s; }
.terr-map [data-d]:hover { fill: #1a3157 !important; }
.terr-map [data-d].sel { fill: var(--mc, var(--cyan)) !important; fill-opacity: .55; stroke: #fff !important; }
.terr-map.macro [data-d] { fill: var(--mc) !important; fill-opacity: .45; cursor: default; }
.terr-list { max-height: 520px; overflow: auto; padding-right: 4px; }
.terr-g { margin-bottom: 10px; }
.terr-h { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.terr-i { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 3px 4px; font-size: 13px; border-radius: 6px; cursor: pointer; }
.terr-i:hover { background: rgba(120, 160, 255, .07); }
.terr-i input { accent-color: var(--cyan); }
.sum-head { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.sum-big { display: flex; align-items: baseline; gap: 8px; }
.sum-big span { font-size: 54px; font-weight: 700; line-height: 1.05; }
.sum-big small { color: var(--muted); font-size: 15px; }
.sum-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; font-size: 13px; }
.sum-list li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.sum-list span { color: var(--dim); }
.sum-err { color: var(--caido); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.grow { flex: 1; }

/* Actividad */
.bar-row { display: grid; grid-template-columns: 110px 1fr 34px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.act-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(34, 211, 238, .12); color: var(--cyan); vertical-align: -5px; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .ed-sum { position: static; order: -1; }
}
@media (max-width: 700px) {
  .terr-wrap, .grid2 { grid-template-columns: 1fr; }
  .terr-list { max-height: none; }
  .max-box input[type=range] { width: 100%; }
  .acct-actions { width: 100%; }
  .seg { display: flex; }
  .seg button { flex: 1; justify-content: center; }
}

/* Evita que una tabla ancha estire la columna en móvil */
.split > *, .editor > * { min-width: 0; }
.demo-banner.real { color: #b6ffe0; border-color: rgba(52, 245, 164, .5); background: rgba(52, 245, 164, .08); }
.demo-banner.real::before { background: var(--vivo); box-shadow: 0 0 8px var(--vivo); }
.tag-demo { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--parcial); border: 1px solid rgba(251, 191, 36, .5); vertical-align: 1px; }
/* Conexión con Videus */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.vd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(10, 16, 36, .55); }
.vd.on { border-style: solid; border-color: rgba(52, 245, 164, .45); }
/* Submenús de permisos por sección (editor Backend) */
.sec-blk { border-top: 1px solid var(--line); }
.sec-blk .row-set { border-top: 0; }
.sec-lbl { flex: 1; min-width: 180px; }
.sec-ctl { display: flex; align-items: center; gap: 10px; }
.sec-aj svg { transition: transform .2s; }
.sec-aj.active svg { transform: rotate(180deg); }
.sec-sub { display: none; margin: 0 0 12px; padding: 6px 14px; border-radius: 12px; background: rgba(10, 16, 36, .55); border: 1px solid var(--line); }
.sec-sub.open { display: block; }
.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.sub-row:first-child { border-top: 0; }
.sub-row.col { flex-direction: column; align-items: flex-start; }
.seg-op { position: relative; }
.seg-op input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-op span { display: inline-flex; padding: 7px 12px; border-radius: 9px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg-op input:checked + span { background: rgba(34, 211, 238, .16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45); }
.seg-op input:focus-visible + span { outline: 2px solid var(--cyan); }
/* v0.5 · Permisos, Buscar guiado, Contexto | Narrativa, Huellas, recuperar clave */
.solo-plan [data-d].fuera, .solo-plan #puntos g[data-estado="fuera"] { display: none; }
.cockpit.solo { grid-template-columns: 1fr; }
.guia { display: grid; gap: 12px; }
.paso { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.paso .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); background: var(--grad); color: #050814; flex: none; }
.modos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.modo { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10, 16, 36, .6); color: var(--text); cursor: pointer; font: inherit; text-decoration: none; transition: .2s; }
.modo svg { color: var(--cyan); }
.modo span { font-size: 12.5px; color: var(--muted); }
.modo:hover { border-color: var(--cyan); }
.modo.on { border-color: var(--cyan); background: rgba(34, 211, 238, .1); box-shadow: var(--glow-c); }
.link-modo { border-style: dashed; }
#b-form { display: grid; gap: 8px; }
.b-op { display: grid; gap: 8px; padding: 10px 0 2px; }
.sub-t { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pill.narr { color: #cfd6ff; border-color: rgba(129, 140, 248, .55); background: rgba(129, 140, 248, .12); cursor: help; }
.pill.tono-positivo { color: var(--vivo); border-color: rgba(52, 245, 164, .5); }
.pill.tono-negativo { color: var(--parcial); border-color: rgba(251, 191, 36, .5); }
.pill.tono-agresivo { color: var(--caido); border-color: rgba(255, 84, 112, .6); }
.ctx-btns { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.ctx-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(129, 140, 248, .4); background: rgba(10, 16, 36, .7); }
.ctx-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.ctx-txt { font-size: 14px; line-height: 1.65; max-height: 420px; overflow: auto; white-space: pre-wrap; }
.hu-form { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hu-item { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hu-item .grow { flex: 1; min-width: 220px; }
.ok-msg { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: 12px; text-align: left; font-size: 14px; color: #c9ffe8; border: 1px solid rgba(52, 245, 164, .45); background: rgba(52, 245, 164, .08); }
@media (max-width: 700px) { .ctx-btns { margin-left: 0; } }
/* Resumen generado por IA */
.ia-resumen { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: #e6e9ff; background: rgba(129, 140, 248, .1); border: 1px solid rgba(129, 140, 248, .3); }
.ia-resumen svg { color: var(--violet); flex: none; margin-top: 2px; }
/* v0.7 · Momentos: acciones, hojas, Casos, Bitácora, página compartida */
.mo-barra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mo-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 16, 36, .6);
  color: var(--text); font: 600 12.5px/1 inherit; cursor: pointer; transition: .15s; }
.mo-btn svg { color: var(--cyan); }
.mo-btn:hover, .mo-btn.active { border-color: var(--cyan); background: rgba(34, 211, 238, .1); box-shadow: var(--glow-c); }
.mo-btn[data-mo="redactar"] svg { color: var(--violet); }
.mo-audio { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.mo-audio audio { flex: 1; min-width: 240px; height: 38px; }
.mo-audio-info { font-size: 12px; }
.hoja-fondo { position: fixed; inset: 0; z-index: 60; background: rgba(3, 6, 15, .66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: aparece .18s ease; }
.hoja { width: min(560px, 100%); max-height: 90vh; overflow: auto; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel-solid); box-shadow: var(--shadow), var(--glow-v); }
.hoja-cab { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--panel-solid); border-bottom: 1px solid var(--line); z-index: 1; }
.hoja-cuerpo { padding: 16px 18px 20px; display: grid; gap: 8px; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sh-link { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.sh-link .input { flex: 1; }
.btn.wa { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 10px; background: #1fa855; border-color: #1fa855; color: #fff; text-decoration: none; }
.btn.small.wa { width: auto; margin-top: 0; }
.seg-resumen { padding: 10px 12px; border-radius: 12px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); font-size: 13.5px; }
.rd-txt { width: 100%; min-height: 260px; margin-top: 12px; font: 13.5px/1.6 inherit; resize: vertical; }
.casos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.caso-card { text-decoration: none; color: var(--text); transition: .15s; }
.caso-card:hover { border-color: var(--cyan); box-shadow: var(--glow-c); }
.caso-card.crisis { border-color: rgba(255, 84, 112, .5); }
.brief { margin-bottom: 16px; }
.brief-g { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief p, .brief li { font-size: 14px; margin: 4px 0 10px; }
.brief ul, .brief ol { padding-left: 18px; margin: 4px 0 10px; }
.bt.nuevo { border-color: rgba(34, 211, 238, .55); }
.bt-m { font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.compartido .quote { font-size: 15px; }
@media (max-width: 700px) { .brief-g { grid-template-columns: 1fr; } .mo-btn span { display: none; } .mo-btn { padding: 9px; } }

/* ===== v0.8 · Consola, banderas, favoritos, ayuda, insights ===== */
.seg button.active { background: rgba(34, 211, 238, .16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45); }
.flag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--fc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--fc) 55%, transparent); white-space: nowrap; vertical-align: middle; }
button.flag-chip { cursor: pointer; font-family: inherit; }
.flag-chip.big { font-size: 13px; padding: 6px 12px; }
.flag-chip.active { box-shadow: 0 0 0 2px var(--fc); }
.bf-colores { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.bf-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--fc); cursor: pointer; box-shadow: inset 0 0 0 3px var(--bg-2); }
.bf-color.active { border-color: #fff; }
.em-btns { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn.icono { padding: 6px 9px; }
.btn.cs-vivo { border-color: rgba(52, 245, 164, .45); }
.btn.cs-vivo.active, .btn.cs-vivo:hover { background: rgba(52, 245, 164, .14); }
.pill.tv { background: rgba(129, 140, 248, .18); border-color: rgba(129, 140, 248, .5); }
.pill.rep { border-color: rgba(251, 191, 36, .55); }
.mo-video { width: 100%; max-height: 320px; border-radius: 12px; background: #000; display: block; }
.mo-audio audio { width: 100%; }
.cs-player { border-radius: 14px; background: rgba(5, 8, 20, .7); border: 1px solid var(--line); min-height: 64px; display: grid; place-items: center; overflow: hidden; }
.cs-player.tv { aspect-ratio: 16 / 9; min-height: 0; }
.cs-player audio { width: calc(100% - 24px); margin: 12px; }
.cs-player video { width: 100%; height: 100%; background: #000; }
.cs-vacio { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; padding: 18px; text-align: center; }
.cs-info { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin: 8px 2px 12px; }
.cs-fila { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cs-fila .input { width: auto; padding: 7px 10px; }
.cs-l { font-size: 12px; margin: 0 2px 0 6px; }
.cs-acciones .mo-btn b { color: var(--cyan); }
.cs-clip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(129, 140, 248, .1); border: 1px solid rgba(129, 140, 248, .35); font-size: 13px; }
.cs-clip .input { width: auto; flex: 1; min-width: 160px; padding: 7px 10px; }
.cs-tr-cab { margin-top: 14px; }
.cs-lineas { margin-top: 10px; max-height: 340px; overflow: auto; display: grid; gap: 2px; }
.cs-linea { display: grid; grid-template-columns: 70px 1fr; gap: 10px; text-align: left; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13.5px; line-height: 1.45; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.cs-linea:hover { background: rgba(34, 211, 238, .07); }
.cs-linea.on { background: rgba(34, 211, 238, .14); color: var(--text); }
.cs-linea .mono { color: var(--dim); font-size: 12px; padding-top: 2px; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.exp { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10, 16, 36, .6); color: var(--text); font: inherit; cursor: pointer; }
.exp:hover { border-color: var(--cyan); }
.exp b { font-size: 16px; }
.exp span { font-size: 12px; color: var(--muted); }
.res-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fv-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hit-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.clip-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(129, 140, 248, .16); color: var(--violet); }
#puntos g.con-bandera circle { stroke: var(--fc); stroke-width: 3px; }
.ayuda-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .45); background: rgba(10, 16, 36, .92); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); backdrop-filter: blur(10px); }
.ayuda-fab svg { color: var(--cyan); }
.ayuda-tips { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.ay-item { border-top: 1px solid var(--line); padding: 10px 0; font-size: 13.5px; }
.ay-resp { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(52, 245, 164, .08); border: 1px solid rgba(52, 245, 164, .3); font-size: 13px; }
.in-barra { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr 36px; gap: 10px; align-items: center; font-size: 13px; margin-top: 8px; }
.in-barra span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-barra i { height: 8px; border-radius: 6px; background: rgba(120, 160, 255, .12); overflow: hidden; }
.in-barra em { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.in-aviso { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.in-aviso:first-child { border-top: 0; }
.in-aviso.nuevo span:first-child { color: var(--text); font-weight: 600; }
.ia-informe { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.6; margin: 10px 0 0; color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
table.mini { width: 100%; font-size: 13px; }
table.mini td { padding: 4px 6px; border-top: 1px solid var(--line); }
.pasos-act { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; font-size: 11.5px; color: var(--dim); }
.pasos-act span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.pasos-act span.on { color: var(--text); border-color: rgba(34, 211, 238, .5); }
footer.sello, .foot.sello { color: var(--dim); font-size: 11px; letter-spacing: .02em; text-align: center; padding: 26px 16px 70px; opacity: .8; }
.foot.sello { padding: 8px 0 0; }
@media (max-width: 640px) { .ayuda-fab span { display: none; } .ayuda-fab { padding: 12px; } .cs-linea { grid-template-columns: 58px 1fr; } }
.saludo { font-size: 15px; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.saludo b { color: var(--text); font-size: 17px; }
.saludo-marca { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text); background: linear-gradient(90deg, rgba(129, 140, 248, .22), rgba(34, 211, 238, .18)); border: 1px solid rgba(34, 211, 238, .35); }
.cs-clip[hidden] { display: none; }
.nav .badge-n:empty { display: none; }
.secreto { -webkit-text-security: disc; resize: vertical; }

/* ===== Instrumentos vivos: movimiento honesto (no cambia el dato) ===== */
.gauge .g-vibra { transform-origin: 100px 100px; animation: g-vibra var(--vib, 3s) ease-in-out infinite; animation-delay: var(--vdl, 0s); }
@keyframes g-vibra { 0%, 100% { transform: rotate(0deg); } 18% { transform: rotate(.9deg); } 37% { transform: rotate(-.6deg); } 55% { transform: rotate(.4deg); } 72% { transform: rotate(-1deg); } 88% { transform: rotate(.3deg); } }
.gauge .g-barrido { transform-origin: 100px 100px; animation: g-giro 6s linear infinite; opacity: .16; }
.gauge .g-anillo { transform-origin: 100px 100px; animation: g-giro 24s linear infinite reverse; }
@keyframes g-giro { to { transform: rotate(360deg); } }
.gauge .g-pista { stroke: rgba(120, 160, 255, .1); stroke-width: 3; }
.gauge .g-fill { stroke: var(--gc); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--gc)); transition: stroke .8s; }
.gauge .g-fill-luz { stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 7 93; filter: drop-shadow(0 0 5px var(--gc)); animation: g-luz 2.6s linear infinite; }
@keyframes g-luz { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.gauge .g-tick.on { stroke: var(--gc); filter: drop-shadow(0 0 2px var(--gc)); transition: stroke .6s; }
.gauge .g-read { animation: g-parpadeo 4s steps(1) infinite; }
@keyframes g-parpadeo { 0%, 96% { opacity: 1; } 97% { opacity: .55; } 98% { opacity: 1; } 99% { opacity: .7; } }
.gauge svg { transition: filter .8s; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--gc) 30%, transparent)); }
.gauge:hover svg { filter: drop-shadow(0 0 26px color-mix(in srgb, var(--gc) 55%, transparent)); }
.en-vivo { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--vivo, #34f5a4); font-size: 10px; letter-spacing: .2em; }
.en-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #34f5a4; box-shadow: 0 0 8px #34f5a4; animation: en-vivo 1.4s ease-in-out infinite; }
@keyframes en-vivo { 50% { opacity: .25; } }
.panel-main, .con-lluvia { position: relative; overflow: hidden; }
.panel-main > :not(.lluvia), .con-lluvia > :not(.lluvia) { position: relative; z-index: 1; }
canvas.lluvia { position: absolute; top: 0; bottom: 0; width: 110px; height: 100%; z-index: 0; pointer-events: none; opacity: .85; }
canvas.lluvia.izq { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
canvas.lluvia.der { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent); mask-image: linear-gradient(270deg, #000 30%, transparent); }
@media (max-width: 640px) { canvas.lluvia { width: 36px; opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gauge .g-vibra, .gauge .g-barrido, .gauge .g-anillo, .gauge .g-fill-luz, .gauge .g-read, .en-vivo i { animation: none; } }

/* ===== Mapa y Regiones vivos ===== */
.map-box.mapa-vivo > svg { z-index: 1; }
.map-box .map-tip { z-index: 4; }
.map-box #puntos circle.halo { fill: none !important; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; pointer-events: none; filter: none !important; }
.map-box #puntos g[data-estado="vivo"] circle.halo { stroke: var(--vivo); }
.map-box #puntos g[data-estado="parcial"] circle.halo { stroke: var(--parcial); animation-duration: 1.8s; }
.map-box #puntos g[data-estado="caido"] circle.halo { stroke: var(--caido); animation-duration: 1.1s; }
.map-box #puntos g[data-estado="gris"] circle.halo { display: none; }
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.map-barrido { position: absolute; inset: -40%; z-index: 2; pointer-events: none; background: conic-gradient(from 0deg, transparent 0 300deg, rgba(34, 211, 238, .10) 340deg, rgba(34, 211, 238, .22) 360deg); animation: g-giro 7s linear infinite; mix-blend-mode: screen; }
.map-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .9), transparent); box-shadow: 0 0 14px rgba(34, 211, 238, .8); animation: scan 4.5s linear infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.map-chip { position: absolute; top: 14px; right: 16px; z-index: 3; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(5, 8, 20, .7); border: 1px solid rgba(52, 245, 164, .4); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; flex: none; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--vivo, #34f5a4); box-shadow: 0 0 6px rgba(52, 245, 164, .6); }
.eq.on i { animation: eq .9s ease-in-out infinite alternate; }
.eq.off i { height: 18%; background: var(--caido, #ff5470); box-shadow: none; opacity: .7; }
.eq.off.inestable i { background: var(--parcial, #fbbf24); }
@keyframes eq { 0% { height: 18%; } 50% { height: 95%; } 100% { height: 40%; } }
.region .ico .eq { height: 22px; }
.region .ico .eq i { width: 3.5px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); }
.vivo-fill { transition: width 1.4s cubic-bezier(.2, 1, .3, 1); position: relative; overflow: hidden; }
.vivo-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: brillo 2.4s linear infinite; transform: translateX(-100%); }
@keyframes brillo { to { transform: translateX(100%); } }
.regions.con-lluvia { position: relative; }
.regions.con-lluvia canvas.lluvia { opacity: .5; }
.region-cab { position: relative; overflow: hidden; justify-content: space-between; }
.region-cab .cab-eq { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.region-cab .cab-eq .eq { height: 30px; }
.region-cab .cab-eq .eq i { width: 4px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); }
.region-cab .en-vivo { color: #fff; margin: 0; }
.region-cab canvas.lluvia { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .map-barrido, .map-scan, .map-box #puntos circle.halo, .eq.on i, .vivo-fill::after { animation: none; } .map-barrido, .map-scan { display: none; } }

/* ===== Tablero vivo: marcadores, entradas animadas, cabeceras ===== */
.mo-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; float: right; margin: -4px -4px 6px 10px; }
.mo-flags:empty { display: none; }
.card.con-bandera, .list-item.con-bandera { border-left: 4px solid var(--fc); box-shadow: inset 6px 0 18px -10px var(--fc), 0 0 0 1px color-mix(in srgb, var(--fc) 30%, transparent); }
.card.con-bandera .mo-flags .flag-chip { animation: flag-ondea 3s ease-in-out infinite; }
@keyframes flag-ondea { 50% { box-shadow: 0 0 12px var(--fc); } }
.entra, .stack > .card, .stack > .list-item, .res, .casos-grid > * { animation: entra .5s cubic-bezier(.2, .9, .3, 1) both; }
.stack > :nth-child(2) { animation-delay: .04s; } .stack > :nth-child(3) { animation-delay: .08s; } .stack > :nth-child(4) { animation-delay: .12s; }
.stack > :nth-child(5) { animation-delay: .16s; } .stack > :nth-child(6) { animation-delay: .2s; } .stack > :nth-child(n+7) { animation-delay: .24s; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card.bt.nuevo { border-color: rgba(52, 245, 164, .55); animation: entra .5s both, nuevo-brilla 2.2s ease-in-out .5s infinite; }
@keyframes nuevo-brilla { 50% { box-shadow: 0 0 22px rgba(52, 245, 164, .35); } }
.nuevo-pill { display: inline-block; padding: 1px 7px; margin-right: 4px; border-radius: 6px; font-size: 10px; letter-spacing: .15em; background: #34f5a4; color: #04140d; animation: en-vivo 1.2s ease-in-out infinite; }
.parpadea { color: #34f5a4; animation: en-vivo 1.2s ease-in-out infinite; }
.bt-pulso { position: relative; overflow: hidden; margin-bottom: 18px; padding: 16px 18px; }
.bt-pulso-in { position: relative; z-index: 1; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.bt-pulso-in .eq { height: 28px; }
.bt-pulso-in .mono { margin-left: auto; color: var(--cyan); font-size: 13px; }
.page-head.cab-viva { position: relative; overflow: hidden; border-radius: 18px; padding: 16px 18px; margin-left: -18px; margin-right: -18px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .05), rgba(129, 140, 248, .07), rgba(34, 211, 238, .05)); background-size: 200% 100%; animation: cab-fondo 12s linear infinite; }
@keyframes cab-fondo { to { background-position: 200% 0; } }
.page-head.cab-viva canvas.lluvia { opacity: .45; width: 140px; }
.page-head.cab-viva canvas.lluvia.izq { display: none; }
.list-item .eq { margin-right: 2px; }
@media (prefers-reduced-motion: reduce) { .entra, .stack > *, .res, .card.bt.nuevo, .nuevo-pill, .parpadea, .page-head.cab-viva, .card.con-bandera .mo-flags .flag-chip { animation: none !important; } }

/* ===== Marcha blanca: aviso sutil de desfase ===== */
.reporta { background: none; border: 0; padding: 2px 4px; margin-left: 8px; font: inherit; font-size: 11.5px; color: var(--dim); cursor: pointer; opacity: .75; border-radius: 6px; }
.reporta:hover { color: #fbbf24; opacity: 1; background: rgba(251, 191, 36, .08); }
.mo-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mo-audio > audio, .mo-audio > video { flex: 1 1 100%; }
.oc-acc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.in-aviso.oc-resuelta { opacity: .55; }
.ia-espera { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--violet); margin-top: 8px; animation: en-vivo 1.4s ease-in-out infinite; }
.cls-slot { display: contents; }
.res.ia-lista .ia-resumen, .res.ia-lista .pill.narr { animation: entra .5s both; }

/* ===== Tendencias · Share of Voice ===== */
.sov-top { align-items: stretch; }
.sov-dona { width: 100%; max-width: 260px; display: block; margin: 8px auto; }
.sov-seg { stroke: none; transition: opacity .2s; cursor: default; }
.sov-dona:hover .sov-seg { opacity: .55; } .sov-dona .sov-seg:hover { opacity: 1; }
.sov-dona-n { font: 700 22px var(--mono); fill: var(--text); text-anchor: middle; }
.sov-dona-t { font: 500 10px var(--mono); fill: var(--muted); text-anchor: middle; letter-spacing: .15em; }
.sov-ley { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sov-ley-i { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; padding: 2px 0; cursor: pointer; }
span.sov-ley-i { cursor: default; }
.sov-ley-i i, .sov-nombre i, .cf-ent > i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.sov-ley-i b { color: var(--muted); font-weight: 600; }
.hitos-lista { display: grid; gap: 8px; margin-top: 10px; }
.hito-f { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font-size: 13px; }
.hito-f .dim { grid-column: 2; font-size: 11.5px; }
.hito { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 11px var(--mono); border: 1px solid; }
.hito.h100 { color: #22d3ee; border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .1); }
.hito.h500 { color: #9085e9; border-color: rgba(144, 133, 233, .55); background: rgba(144, 133, 233, .12); }
.hito.h700 { color: #fbbf24; border-color: rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .12); box-shadow: 0 0 12px rgba(251, 191, 36, .25); }
table.ranking td { vertical-align: middle; }
.sov-nombre { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.sov-barra { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: rgba(120, 160, 255, .12); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.sov-barra i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.chispa { width: 110px; height: 28px; display: block; }
.sube { color: #34f5a4; } .baja { color: #ff8a9b; }
.tono-barra { display: flex; width: 90px; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: transparent; }
.tono-barra i { display: block; height: 100%; }
.tono-barra .t-positivo { background: #199e70; } .tono-barra .t-neutral { background: #6b7590; } .tono-barra .t-negativo { background: #d95926; } .tono-barra .t-agresivo { background: #e66767; }
.evo-box { position: relative; margin-top: 10px; }
.evo { width: 100%; height: auto; display: block; }
.evo-grid { stroke: rgba(120, 160, 255, .1); stroke-width: 1; }
.evo-eje { font: 500 10px var(--mono); fill: var(--dim); }
.evo-cruz { stroke: rgba(234, 240, 255, .4); stroke-width: 1; }
.evo-tip { position: absolute; top: 8px; min-width: 170px; padding: 8px 10px; border-radius: 10px; background: rgba(5, 8, 20, .95); border: 1px solid var(--line-2); font-size: 12px; pointer-events: none; z-index: 2; }
.evo-tip div { display: flex; align-items: center; gap: 6px; margin-top: 3px; } .evo-tip i { width: 8px; height: 8px; border-radius: 2px; } .evo-tip .mono { margin-left: auto; padding-left: 10px; }
.td-pend { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; }
.td-cob { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.td-cob .en-vivo { margin: 0; }
.tend-f { display: grid; grid-template-columns: 22px minmax(130px, 1.4fr) 1fr 52px 90px auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tend-b { height: 8px; border-radius: 4px; background: rgba(120, 160, 255, .1); overflow: hidden; } .tend-b i { display: block; height: 100%; background: #3987e5; border-radius: 0 4px 4px 0; }
.historia { padding: 12px 0; border-top: 1px solid var(--line); } .historia:first-child { border-top: 0; }
.hist-cab { display: flex; gap: 10px; align-items: baseline; } .hist-n { font: 700 18px var(--mono); color: var(--cyan); }
.historia button.pill { cursor: pointer; font: inherit; font-size: 11.5px; }
.cf-grupo { padding: 12px 0; border-top: 1px solid var(--line); } .cf-grupo:first-of-type { border-top: 0; }
.cf-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cf-ent { display: grid; grid-template-columns: 12px minmax(100px, 160px) 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.cf-ent .input { padding: 6px 10px; font-size: 12.5px; }
.cf-nueva .input { flex: 1; }
@media (max-width: 760px) { .tend-f { grid-template-columns: 22px 1fr 52px; } .tend-f .tend-b, .tend-f .tono-barra, .tend-f .chips { display: none; } .cf-ent { grid-template-columns: 12px 1fr auto auto; } .cf-ent .input { grid-column: 2 / -1; } }

/* ---------- Planes: Primer Control · Monitor PRO · Torre de Control · Enterprise ---------- */
.sig-plan { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 6px; vertical-align: -2px; flex: none; }
.sig-plan i { width: 3.5px; border-radius: 1px; background: rgba(148, 163, 184, .25); }
.sig-plan i:nth-child(1) { height: 5px; } .sig-plan i:nth-child(2) { height: 8px; } .sig-plan i:nth-child(3) { height: 11px; } .sig-plan i:nth-child(4) { height: 14px; }
.sig-plan.mini { height: 10px; gap: 1.5px; margin-right: 0; }
.sig-plan.mini i { width: 2.5px; } .sig-plan.mini i:nth-child(1) { height: 3px; } .sig-plan.mini i:nth-child(2) { height: 5px; } .sig-plan.mini i:nth-child(3) { height: 7.5px; } .sig-plan.mini i:nth-child(4) { height: 10px; }
.plan-badge { display: inline-flex; align-items: center; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--plan) 60%, transparent); background: color-mix(in srgb, var(--plan) 16%, transparent); white-space: nowrap; }
/* Franja del plan: recorre el borde superior de toda la app */
.app.con-plan::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none;
  background: linear-gradient(90deg, var(--plan) 0%, color-mix(in srgb, var(--plan) 40%, #fff) 50%, var(--plan) 100%); background-size: 200% 100%;
  box-shadow: 0 0 14px color-mix(in srgb, var(--plan) 70%, transparent); }
@media (prefers-reduced-motion: no-preference) { .app.con-plan::before { animation: plan-barrido 7s linear infinite; } }
@keyframes plan-barrido { to { background-position: -200% 0; } }
.nav-lock { margin-left: auto; display: inline-flex; opacity: .85; }
.card.acct.con-plan { border-top: 2px solid var(--plan); }
#cu-plan button { display: inline-flex; align-items: center; }
/* Backend · selector de plan */
.planes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .planes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-card { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 12px 12px 11px; border-radius: 12px; cursor: pointer; color: var(--text);
  background: rgba(10, 16, 34, .5); border: 1px solid var(--line); border-top: 3px solid var(--plan); transition: background .2s, box-shadow .2s; }
.plan-card .sig-plan { margin-bottom: 2px; }
.plan-card span { font-size: 12px; color: var(--muted); }
.plan-card small { font-size: 11.5px; color: var(--dim); }
.plan-card:hover { background: color-mix(in srgb, var(--plan) 8%, transparent); }
.plan-card.on { background: color-mix(in srgb, var(--plan) 14%, transparent); box-shadow: inset 0 0 0 1px var(--plan), 0 0 18px color-mix(in srgb, var(--plan) 30%, transparent); }
.plan-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-mod { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.plan-mod.on { color: var(--text); border-color: rgba(52, 245, 164, .35); }
.plan-cupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px 18px; }
.plan-cupo { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.plan-cupo b { color: var(--text); }
.cupo-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.cupo-linea b { color: var(--text); }
/* Candado: lo que el plan no incluye se ve como avance */
.candado { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; border-top: 3px solid var(--plan); overflow: hidden; }
.candado-vista { filter: blur(7px) saturate(.9); opacity: .55; display: flex; gap: 22px; align-items: center; padding: 22px; pointer-events: none; user-select: none; }
.mq-dona { width: 150px; height: 150px; flex: none; border-radius: 50%; background: conic-gradient(#3987e5 0 46%, #d95926 0 77%, #199e70 0 100%);
  -webkit-mask: radial-gradient(circle, transparent 47%, #000 48%); mask: radial-gradient(circle, transparent 47%, #000 48%); }
.mq-barras { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mq-barras i { display: block; height: 12px; border-radius: 4px; }
.candado-panel h2 { margin: 14px 0 8px; font-size: 22px; }
.candado-panel ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.85; }
@media (max-width: 760px) { .candado { grid-template-columns: 1fr; } .candado-vista { display: none; } }

/* Barra lateral con scroll propio: el menú del Backend es más alto que la pantalla */
@media (min-width: 801px) {
  .sidebar { height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: smooth;
    scrollbar-width: thin; scrollbar-color: rgba(120, 160, 255, .28) transparent; -webkit-overflow-scrolling: touch; }
  .sidebar::-webkit-scrollbar { width: 6px; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, .25); border-radius: 6px; }
  .sidebar::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, .5); }
  .sidebar .bottom { padding-top: 14px; }
}
/* En el celular, el menú abierto también se desplaza si no cabe */
@media (max-width: 800px) { .sidebar.open { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; } }

/* Barra fija para guardar cambios pendientes (Ubicar emisoras) */
.guardar-barra { position: sticky; bottom: 18px; z-index: 30; margin: 16px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, .45); background: rgba(10, 16, 34, .94); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 18px rgba(251, 191, 36, .15); font-size: 14px; }
.guardar-barra[hidden] { display: none; }
.guardar-barra span { color: var(--parcial); font-weight: 600; }
tr.fila-pend td { background: rgba(251, 191, 36, .06); }

/* Buscar: seleccionar fichas y exportar seleccionados o todo */
.sel-barra { position: sticky; top: 8px; z-index: 15; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 12px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 16, 34, .9); backdrop-filter: blur(10px); transition: border-color .2s, box-shadow .2s; }
.sel-barra .chips { margin-left: auto; }
.sel-txt { font-size: 13px; color: var(--muted); }
.sel-barra.on { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 18px rgba(34, 211, 238, .18); }
.sel-barra.on .sel-txt { color: var(--cyan); font-weight: 600; }
.sel-barra.on .btn { border-color: rgba(34, 211, 238, .55); color: var(--text); }
.sel-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--muted); vertical-align: -3px; margin-right: 10px; }
.sel-chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.sel-chk i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .15s, border-color .15s; flex: none; }
.sel-chk input:checked + i { background: var(--cyan); border-color: var(--cyan); }
.sel-chk input:checked + i::after { content: ""; width: 5px; height: 9px; border: solid #041018; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.sel-chk input:indeterminate + i { border-color: var(--cyan); }
.sel-chk input:indeterminate + i::after { content: ""; width: 9px; height: 2px; background: var(--cyan); }
.sel-chk input:focus-visible + i { box-shadow: 0 0 0 3px rgba(34, 211, 238, .35); }
.card.res.sel { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 0 1px rgba(34, 211, 238, .25) inset; }
.ficha-medio { display: inline-block; font: 10.5px var(--mono); letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; margin-left: 6px; color: #9fc7ff; border: 1px solid rgba(57, 135, 229, .45); }
.ficha-medio.tv { color: #c4bdff; border-color: rgba(144, 133, 233, .5); }

/* Aviso completo: onda, bordes del spot y recorte para huella */
.hoja.ancha { width: min(900px, 100%); }
.av-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.av-onda { position: relative; height: 128px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; touch-action: none; cursor: pointer; user-select: none; }
.av-onda canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.av-pre, .av-post { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(3, 6, 15, .35); pointer-events: none; }
.av-zona { position: absolute; top: 0; bottom: 0; background: rgba(251, 191, 36, .08); border-top: 2px solid rgba(251, 191, 36, .6); border-bottom: 2px solid rgba(251, 191, 36, .6); pointer-events: none; }
.av-h { position: absolute; top: 0; bottom: 0; width: 14px; margin-left: -7px; cursor: ew-resize; z-index: 2; }
.av-h::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: #fbbf24; }
.av-h::after { content: ""; position: absolute; left: 1px; top: 50%; width: 12px; height: 26px; margin-top: -13px; border-radius: 4px; background: #fbbf24; box-shadow: 0 0 0 2px rgba(3, 6, 15, .6); }
.av-h:focus-visible::after { box-shadow: 0 0 0 3px rgba(34, 211, 238, .6); }
.av-cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cyan); pointer-events: none; z-index: 1; }
.av-carga { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.av-tiempos { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.av-tiempos b { color: var(--text); font-weight: 600; }
.av-acc { margin: 4px 0; }
.av-lineas { max-height: 170px; overflow: auto; font-size: 13px; line-height: 1.5; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.av-lineas div { color: var(--muted); padding: 1px 0; }
.av-lineas div.en { color: var(--text); border-left: 2px solid #fbbf24; padding-left: 8px; }
.av-final { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.av-ok { margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(34, 211, 238, .4); font-size: 13.5px; }
.av-pasos { margin: 8px 0 0 18px; padding: 0; display: grid; gap: 4px; }
.av-huella { margin-top: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; gap: 8px; }
.av-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.av-reglas { margin: 0 0 0 18px; padding: 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.hoja.ancha .hoja-cab { z-index: 5; }

/* Exportar: tarjetas que se marcan, video/audio y una sola descarga */
.exp { position: relative; transition: border-color .15s, background .15s, box-shadow .15s; padding-right: 40px; }
.exp[aria-pressed="true"] { border-color: var(--cyan); background: rgba(34, 211, 238, .08); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.exp:disabled { opacity: .45; cursor: not-allowed; }
.exp:disabled:hover { border-color: var(--line-2); }
.exp-chk { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.exp[aria-pressed="true"] .exp-chk { background: var(--cyan); border-color: var(--cyan); }
.exp[aria-pressed="true"] .exp-chk::after { content: ""; width: 5px; height: 10px; border: solid #041018; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.exp-tag { font: 10px var(--mono); letter-spacing: .1em; color: var(--cyan); font-style: normal; }
.exp.medio { background: linear-gradient(160deg, rgba(34, 211, 238, .07), rgba(10, 16, 36, .6) 60%); }
.exp.medio[aria-pressed="true"] { background: linear-gradient(160deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .05) 70%); }
.exp-est { font-size: 11.5px; color: var(--cyan); line-height: 1.35; }
.exp-est:empty { display: none; }
.exp-est.ok { color: #34d399; }
.exp-est.mal { color: #f87171; }
.exp-corte { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.exp-corte .seg button { font-size: 12.5px; padding: 6px 12px; }
.exp-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: 12.5px; }
.exp-pie .btn { min-width: 200px; justify-content: center; }
.exp-ocupada .exp { cursor: progress; }
