:root {
  --bg: #0f1420;
  --panel: #1b2333;
  --line: #2c3850;
  --txt: #e6ecf5;
  --muted: #93a2bd;
  --brand: #25d366;
  --blue: #3b82f6;
  --warn: #f59e0b;
  --err: #ef4444;
  --ok: #22c55e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--txt);
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 700; color: var(--brand); text-decoration: none; font-size: 18px; }
.top nav { display: flex; gap: 14px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--txt); }
main { padding-top: 24px; padding-bottom: 48px; }
.tarjeta { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
h1 { font-size: 22px; margin-top: 0; }
h2 { font-size: 18px; }
.muted { color: var(--muted); }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: 14px; }
input, select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #121926; color: var(--txt); font-size: 16px; }
input:focus { border-color: var(--blue); outline: none; }
button { cursor: pointer; border: none; border-radius: 8px; padding: 11px 18px; font-size: 15px; font-weight: 600; margin-top: 12px; }
button.primario { background: var(--brand); color: #06130b; }
button.secundario { background: var(--blue); color: #fff; }
button.peligro { background: var(--err); color: #fff; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: not-allowed; }
.chk { display: flex; align-items: center; gap: 8px; }
.chk input { width: auto; }
.error { color: var(--err); }
.ok { color: var(--ok); }
.aviso { background: rgba(245,158,11,.12); color: var(--warn); border: 1px solid rgba(245,158,11,.35); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 600; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.ok { background: rgba(34,197,94,.15); color: var(--ok); }
.badge.warn { background: rgba(245,158,11,.15); color: var(--warn); }
.badge.err { background: rgba(239,68,68,.15); color: var(--err); }
.badge.azul { background: rgba(59,130,246,.15); color: var(--blue); }
.grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: #121926; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpi b { font-size: 26px; display: block; }
.kpi span { color: var(--muted); font-size: 13px; }
.fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.fila > * { flex: 1 1 0; min-width: 130px; }
.fila > button { flex: 0 0 auto; margin-top: 4px; }
.video-container { position: relative; max-width: 460px; margin: 0 auto; }
video { width: 100%; border-radius: 12px; background: #000; }
#resultado { margin-top: 14px; padding: 16px; border-radius: 10px; font-weight: 600; text-align: center; }
#resultado.ok { background: rgba(34,197,94,.15); color: var(--ok); }
#resultado.warn { background: rgba(245,158,11,.15); color: var(--warn); }
#resultado.err { background: rgba(239,68,68,.15); color: var(--err); }
.mini { font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
pre { white-space: pre-wrap; background: #0c111c; padding: 12px; border-radius: 8px; border: 1px solid var(--line); }
.item-invitado { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }