[hidden] { display: none !important; }
:root {
  --navy: #002147; --navy2: #0b3266; --oro: #C9A227; --oro-dk: #8A6D1D; --rojo: #dc2626; --verde: #16a34a;
  --azul: #0ea5e9; --ambar: #f59e0b; --bg: #f4f6fb; --card: #fff; --txt: #111827; --mut: #6b7280; --bor: #e2e8f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--txt); font-size: 14px; }
a { color: var(--navy2); }
nav.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 18px; height: 54px; position: sticky; top: 0; z-index: 50; }
nav.top .marca { font-weight: 700; letter-spacing: 2px; font-size: 16px; white-space: nowrap; }
nav.top .marca i { font-style: normal; display: inline-block; width: 9px; height: 9px; background: var(--oro); border-radius: 2px; margin-left: 4px; }
nav.top .marca small { font-weight: 500; letter-spacing: 0; opacity: .7; margin-left: 6px; font-size: 12px; }
nav.top .links { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
nav.top .links a { color: #cbd5e1; text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
nav.top .links a:hover { background: rgba(255,255,255,.08); color: #fff; }
nav.top .links a.on { background: rgba(201,162,39,.18); color: var(--oro); }
nav.top .yo { font-size: 12px; color: #cbd5e1; white-space: nowrap; }
nav.top .yo a { color: var(--oro); margin-left: 10px; }
.badge { background: var(--rojo); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 11px; margin-left: 3px; }
main { max-width: 1400px; margin: 0 auto; padding: 18px; }
h1 { font-size: 20px; margin-bottom: 12px; color: var(--navy); }
h2 { font-size: 16px; margin: 18px 0 10px; color: var(--navy); }
h3 { font-size: 14px; margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--bor); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.fila { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.fila > .card { flex: 1; min-width: 260px; }
.mut { color: var(--mut); }
.small { font-size: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; background: var(--navy); color: #fff; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.oro { background: var(--oro); color: #1f1600; }
.btn.verde { background: var(--verde); }
.btn.rojo { background: var(--rojo); }
.btn.gris { background: #e5e7eb; color: #111; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.xl { padding: 16px 28px; font-size: 17px; border-radius: 12px; }
input, select, textarea { font: inherit; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; }
textarea { min-height: 70px; }
label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin: 8px 0 4px; }
label.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 13px; }
label.chk input { width: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--bor); text-align: left; font-size: 13px; vertical-align: top; }
th { background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #475569; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #fafbff; }
.tabla { overflow-x: auto; border: 1px solid var(--bor); border-radius: 12px; background: #fff; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; white-space: pre-line; }
.flash.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #e5e7eb; color: #111; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--bor); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .4px; }
.filtros { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.filtros label { margin: 0 0 4px; }
.filtros > div { min-width: 130px; }
.barra { height: 8px; background: #eef2f7; border-radius: 5px; overflow: hidden; min-width: 60px; }
.barra i { display: block; height: 100%; background: var(--oro); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.est { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.est::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; }
.est.disponible::before { background: var(--verde); }
.est.marcando::before { background: var(--azul); }
.est.en_llamada::before { background: #2563eb; }
.est.tipificando::before { background: #8b5cf6; }
.est.vinculando::before, .est.reservado::before { background: var(--oro); }
.est.capturando::before { background: #8b5cf6; }
.est.pausa::before, .est.comida::before { background: var(--ambar); }
.est.fuera::before { background: #d1d5db; }
.login { max-width: 360px; margin: 9vh auto; }
.login .logo { text-align: center; margin-bottom: 18px; }
.login .logo img { height: 46px; }
.vacio { text-align: center; padding: 30px; color: var(--mut); }
@media (max-width: 800px) { .grid2, .grid3 { grid-template-columns: 1fr; } nav.top .yo { display: none; } }
