:root {
  --bg: #050a14;
  --bg-2: #081120;
  --panel: rgba(14, 22, 40, 0.82);
  --panel-solid: #0c1526;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eef2ff;
  --muted: #93a3c4;
  --dim: #6b7c9e;
  --gold: #f6c453;
  --gold-2: #e0a92e;
  --green: #16a34a;
  --green-2: #34d399;
  --cyan: #38bdf8;
  --red: #ef4444;
  --blue: #4f7cff;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(246, 196, 83, 0.14), transparent 60%),
    radial-gradient(900px 600px at 105% 0%, rgba(22, 163, 74, 0.16), transparent 58%),
    radial-gradient(900px 700px at 50% 120%, rgba(56, 189, 248, 0.1), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: rgba(246, 196, 83, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }

/* ── Topbar dashboard ────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 28px;
  background: rgba(5, 10, 20, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green-2), var(--cyan), var(--gold));
  background-size: 250% 100%;
  animation: navFlow 12s linear infinite;
  opacity: 0.75;
}
@keyframes navFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 36px; width: auto; display: block; background: #fff; padding: 4px 8px; border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.brand-divider { width: 1px; height: 30px; background: var(--line-2); }
.headline { min-width: 0; }
.eyebrow { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--gold); }
.headline h1 { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: 0.4px; line-height: 1.05; text-transform: uppercase; }
.headline p { color: var(--muted); font-size: 10.5px; margin-top: 1px; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.12); font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #86efac; }
.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green-2); animation: pulse 1.6s infinite; }
.live.off { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.live.off i { background: var(--red); animation: none; }
.clock-wrap { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.clock { font-family: var(--display); font-size: 23px; letter-spacing: 1px; color: var(--text); font-variant-numeric: tabular-nums; }
.clock-label { font-size: 8px; font-weight: 700; letter-spacing: 1.4px; color: var(--dim); margin-top: 3px; }
.page-nav { display: flex; gap: 7px; }
.nav-link { padding: 8px 13px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 12px; font-weight: 600; color: var(--muted); transition: all 0.15s; }
.nav-link:hover { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }
.nav-link.primary { color: #1a1205; background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-color: transparent; box-shadow: 0 8px 20px rgba(246, 196, 83, 0.25); }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { max-width: 1500px; margin: 0 auto; padding: 26px 32px 44px; }

.hero-grid {
  display: grid;
  grid-template-columns: 2.1fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.total-card {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 196, 83, 0.26);
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(246, 196, 83, 0.18), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(22, 163, 74, 0.14), transparent 60%),
    linear-gradient(145deg, #0f1a2e, #080f1d 70%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.total-card::after {
  content: ""; position: absolute; right: -80px; top: -100px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(246, 196, 83, 0.2), transparent 65%);
  pointer-events: none;
}
.total-head { display: flex; align-items: center; justify-content: space-between; }
.kicker { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold); }
.pulse { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; color: #86efac; }
.pulse i { width: 5px; height: 5px; border-radius: 50%; background: var(--green-2); animation: pulse 1.6s infinite; }
.total-value { font-family: var(--display); font-size: clamp(64px, 8vw, 104px); font-weight: 800; letter-spacing: 1px; line-height: 0.95; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.total-delta { font-size: 12px; color: var(--muted); min-height: 18px; }
.total-delta.up { color: #86efac; }
.total-delta.down { color: #fca5a5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 14px; }
.split-item { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.split-item span { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: var(--dim); }
.split-item strong { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.split-item small { color: var(--dim); font-size: 10px; }
.split-item.general { border-color: rgba(246, 196, 83, 0.24); background: rgba(246, 196, 83, 0.07); }
.split-item.general strong { color: var(--gold); }
.split-item.joven { border-color: rgba(56, 189, 248, 0.24); background: rgba(56, 189, 248, 0.07); }
.split-item.joven strong { color: var(--cyan); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--green-2)); transition: width 0.7s ease; }
.progress-row > span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.updated { margin-top: 8px; color: var(--dim); font-size: 10.5px; }

.mini-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
.mini-card::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--gold); opacity: 0.09; filter: blur(10px); }
.mini-label { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: var(--dim); }
.mini-card strong { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1.05; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.mini-card small { color: var(--dim); font-size: 10.5px; }

/* ── Contenido ──────────────────────────────────────────── */
.content-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.side-column { display: flex; flex-direction: column; gap: 14px; }

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.panel-head p { color: var(--dim); font-size: 11px; margin-top: 2px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--muted); white-space: nowrap; }

.table-wrap { overflow: auto; max-height: 540px; }
.results-table, .admin-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.results-table th, .admin-table th {
  position: sticky; top: 0; z-index: 1;
  padding: 10px 14px; text-align: left;
  background: #0b1424;
  color: var(--dim); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.results-table td, .admin-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.results-table tbody tr:hover, .admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.results-table tr.leader { background: rgba(246, 196, 83, 0.06); }
.results-table tr.leader td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.results-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.results-table .total-cell { font-weight: 700; color: var(--gold); }
.mesa-number { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--gold); }
.mesa-name { color: var(--dim); font-size: 10px; margin-top: 1px; }
.admin-name { color: var(--text); font-weight: 500; }
.admin-name.none { color: var(--dim); font-style: italic; }
.type-badge { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }
.type-badge.general { color: #fde68a; background: rgba(246, 196, 83, 0.12); border: 1px solid rgba(246, 196, 83, 0.28); }
.type-badge.joven { color: #a5f3fc; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.28); }
.type-badge.mixta { color: #ddd6fe; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.3); }
.type-badge.sin_asignar { color: #94a3b8; background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.22); }
.empty-row { text-align: center; color: var(--dim); padding: 30px !important; }

.bars { display: flex; flex-direction: column; gap: 11px; padding: 16px 18px; }
.bar-row { display: grid; grid-template-columns: 86px 1fr 46px; gap: 10px; align-items: center; }
.bar-label { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-label b { color: var(--text); font-weight: 600; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width 0.7s ease; }
.bar-fill.joven { background: linear-gradient(90deg, #0ea5e9, var(--cyan)); }
.bar-value { text-align: right; font-size: 11.5px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.bar-value.joven { color: var(--cyan); }

.sparkline { display: block; width: 100%; height: 140px; padding: 10px 14px 0; }
.spark-legend { display: flex; justify-content: space-between; padding: 4px 18px 14px; color: var(--dim); font-size: 9.5px; }

.feed { list-style: none; margin: 0; padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 8px; max-height: 190px; overflow: auto; }
.feed li { display: flex; gap: 8px; align-items: baseline; padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.feed li b { color: var(--text); font-weight: 600; }
.feed li time { margin-left: auto; color: var(--dim); font-size: 9.5px; white-space: nowrap; }
.feed-empty { justify-content: center; color: var(--dim); }

.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; }

/* ── Botones / formularios ──────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 12px; font-weight: 600; transition: all 0.15s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-2); }
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205; border-color: transparent; box-shadow: 0 8px 20px rgba(246, 196, 83, 0.2); }
.btn.primary:hover { box-shadow: 0 10px 26px rgba(246, 196, 83, 0.3); }
.btn.small { height: 32px; padding: 0 10px; font-size: 11px; }
.btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.08); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

input, select { height: 38px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(4, 8, 16, 0.65); color: var(--text); font-size: 12px; outline: none; min-width: 0; }
input:focus, select:focus { border-color: rgba(246, 196, 83, 0.5); box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.1); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a3c4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 28px; }

/* ── Admin ──────────────────────────────────────────────── */
.admin-head { display: flex; align-items: center; gap: 24px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: rgba(5, 10, 20, 0.9); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.admin-head .brand img { height: 36px; }
.admin-head h1 { font-family: var(--display); font-size: 27px; text-transform: uppercase; letter-spacing: 0.4px; }
.admin-head .page-nav { margin-left: auto; }
.admin-wrap { max-width: 1500px; margin: 0 auto; padding: 22px 32px 44px; display: flex; flex-direction: column; gap: 14px; }
.admin-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.token-box { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.token-box label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }
.token-box input { width: 130px; height: 32px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 18px; align-items: center; }
.form-row input { flex: 1 1 140px; }
.form-row select { flex: 0 0 130px; }
.mesa-form input[type="number"] { flex: 0 0 105px; }
.admin-list { list-style: none; margin: 0; padding: 0 18px 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.admin-list li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 11px; }
.admin-list li b { font-weight: 600; }
.admin-list li button { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(239, 68, 68, 0.15); color: #fca5a5; font-size: 12px; line-height: 1; }
.admin-table input { height: 32px; width: 80px; font-size: 11.5px; }
.admin-table select { height: 32px; font-size: 11.5px; width: 128px; }
.admin-table .row-actions { display: flex; gap: 5px; }
.admin-table .save-btn { height: 30px; padding: 0 9px; font-size: 10.5px; }
.admin-table tr.dirty { background: rgba(246, 196, 83, 0.05); }

/* ── Proyección ─────────────────────────────────────────── */
body.projection { height: 100vh; overflow: hidden; background: #04080f; }
.projection-bg { position: fixed; inset: 0; background: radial-gradient(1200px 700px at 50% -20%, rgba(246, 196, 83, 0.2), transparent 60%), radial-gradient(900px 700px at 100% 100%, rgba(22, 163, 74, 0.2), transparent 60%), #04080f; pointer-events: none; }
.projection-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 2vw; padding: 2vh 3vw; border-bottom: 1px solid var(--line); }
.proj-logo { height: 8vh; max-height: 84px; width: auto; background: #fff; padding: 0.7vh 1.1vh; border-radius: 1vh; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.proj-logo.pp { height: 6.5vh; }
.proj-title { flex: 1; text-align: center; }
.proj-title span { font-size: 0.85vw; letter-spacing: 0.35vw; color: var(--gold); font-weight: 700; }
.proj-title h1 { font-family: var(--display); font-size: 4.2vw; line-height: 1; text-transform: uppercase; letter-spacing: 0.1vw; }
.proj-title p { color: var(--muted); font-size: 1vw; letter-spacing: 0.12vw; }
.proj-clock { text-align: right; }
.proj-clock strong { display: block; font-family: var(--display); font-size: 2.4vw; line-height: 1; font-variant-numeric: tabular-nums; }
.proj-clock span { font-size: 0.7vw; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12vw; }
.projection-main { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - 12vh - 2vh); padding: 1.5vh 3vw 2vh; gap: 1.4vh; }
.proj-total { text-align: center; }
.proj-kicker { display: block; font-size: 0.9vw; letter-spacing: 0.4vw; color: var(--gold); font-weight: 700; }
.proj-number { font-family: var(--display); font-size: 13vw; font-weight: 800; line-height: 0.82; letter-spacing: 0.2vw; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proj-sub { color: var(--muted); font-size: 0.8vw; letter-spacing: 0.1vw; }
.proj-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2vw; min-height: 0; }
.proj-block { display: flex; flex-direction: column; border-radius: 1.2vw; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); padding: 1.4vh 1.5vw; min-height: 0; }
.proj-block.general { border-color: rgba(246, 196, 83, 0.3); background: linear-gradient(160deg, rgba(246, 196, 83, 0.1), rgba(255, 255, 255, 0.01)); }
.proj-block.joven { border-color: rgba(56, 189, 248, 0.28); background: linear-gradient(160deg, rgba(56, 189, 248, 0.08), rgba(255, 255, 255, 0.01)); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1vh; }
.block-head span { display: inline-flex; align-items: center; gap: 0.7vw; font-size: 0.95vw; letter-spacing: 0.3vw; font-weight: 700; color: var(--muted); }
.block-logo { height: 2.6vw; max-height: 46px; width: auto; background: #fff; padding: 0.2vw 0.45vw; border-radius: 0.4vw; }
.block-head b { font-family: var(--display); font-size: 3.1vw; line-height: 1; font-variant-numeric: tabular-nums; }
.proj-block.general .block-head b { color: var(--gold); }
.proj-block.joven .block-head b { color: var(--cyan); }
.proj-bars { display: flex; flex-direction: column; gap: 0.8vh; overflow: hidden; }
.proj-bar { display: grid; grid-template-columns: 6vw 1fr 4vw; gap: 0.8vw; align-items: center; }
.proj-bar span { font-size: 0.9vw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-bar .track { height: 1.3vh; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.proj-bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width 0.8s ease; }
.proj-block.joven .fill { background: linear-gradient(90deg, #0ea5e9, var(--cyan)); }
.proj-bar b { font-family: var(--display); font-size: 1.2vw; text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
.proj-block.joven .proj-bar b { color: var(--cyan); }
.proj-foot { display: flex; align-items: center; gap: 2vw; border-top: 1px solid var(--line); padding-top: 1.2vh; }
.proj-stat span { display: block; font-size: 0.7vw; letter-spacing: 0.25vw; color: var(--dim); }
.proj-stat b { font-family: var(--display); font-size: 2vw; line-height: 1; }
.proj-ticker { flex: 1; overflow: hidden; border-left: 1px solid var(--line); padding-left: 2vw; }
.proj-ticker div { white-space: nowrap; color: var(--muted); font-size: 1.05vw; animation: ticker 22s linear infinite; }
.proj-status { position: fixed; bottom: 1.2vh; right: 2vw; display: flex; align-items: center; gap: 0.5vw; color: var(--dim); font-size: 0.65vw; letter-spacing: 0.15vw; text-transform: uppercase; }
.proj-status i { width: 0.45vw; height: 0.45vw; border-radius: 50%; background: var(--green-2); animation: pulse 1.6s infinite; }

/* ── Reporte ────────────────────────────────────────────── */
body.report { background: #e9edf5; color: #111827; }
.report-actions { display: flex; gap: 8px; padding: 14px 22px; background: #0b1424; position: sticky; top: 0; z-index: 10; }
.report-actions .btn { border-color: rgba(255, 255, 255, 0.15); color: #e5e7eb; background: rgba(255, 255, 255, 0.06); }
.report-actions .btn.primary { background: var(--gold); color: #1a1205; }
.report-sheet { max-width: 900px; margin: 26px auto; background: #fff; padding: 38px 42px; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.report-head { display: flex; align-items: center; gap: 22px; padding-bottom: 18px; border-bottom: 3px solid #111827; }
.report-head img { height: 56px; width: auto; }
.report-head div { flex: 1; text-align: center; }
.report-head span { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #374151; }
.report-head h1 { font-family: var(--display); font-size: 30px; text-transform: uppercase; color: #111827; line-height: 1.05; }
.report-head p { font-size: 12px; color: #4b5563; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 26px; }
.report-summary div { padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; text-align: center; }
.report-summary span { display: block; font-size: 9px; letter-spacing: 1.2px; color: #6b7280; text-transform: uppercase; }
.report-summary strong { display: block; font-family: var(--display); font-size: 30px; color: #111827; line-height: 1.1; }
.report-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.report-table th { background: #111827; color: #fff; padding: 8px; text-align: left; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.report-table td { padding: 7px 8px; border-bottom: 1px solid #e5e7eb; }
.report-table tr:nth-child(even) td { background: #f9fafb; }
.report-foot { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 12px; border-top: 1px solid #d1d5db; font-size: 10px; color: #6b7280; }
.report h2 { font-family: var(--display); font-size: 20px; text-transform: uppercase; margin-bottom: 8px; color: #111827; }

/* ── Toast / animaciones ────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: #101b2e; color: var(--text); box-shadow: var(--shadow); font-size: 12px; }
.toast[hidden] { display: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; padding: 14px 18px; gap: 12px; }
  .head-actions { width: 100%; justify-content: space-between; }
  .wrap { padding: 18px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .total-card { grid-column: 1 / -1; }
  .side-column { grid-template-columns: 1fr; }
  .admin-head { flex-wrap: wrap; padding: 14px 18px; }
  .admin-wrap { padding: 16px; }
  .admin-grid { grid-template-columns: 1fr; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .projection { overflow: auto; }
  .proj-title h1 { font-size: 6vw; }
}
@media (max-width: 600px) {
  .brand img { height: 30px; }
  .headline h1 { font-size: 22px; }
  .headline p { display: none; }
  .head-actions .clock-wrap { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .mini-card strong { font-size: 34px; }
  .admin-table { font-size: 10.5px; }
  .report-sheet { padding: 20px; margin: 10px; }
  .report-head { flex-direction: column; text-align: center; }
  .report-summary { grid-template-columns: 1fr 1fr; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body.report { background: #fff; }
  .no-print, .report-actions { display: none !important; }
  .report-sheet { box-shadow: none; margin: 0; max-width: none; padding: 0; border-radius: 0; }
  .report-head { border-bottom: 2px solid #000; }
  .report-table th { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; }
  .report-table tr:nth-child(even) td { background: #f3f4f6 !important; -webkit-print-color-adjust: exact; }
}
