:root {
  --bg: #0d0d12;
  --panel: #17171f;
  --panel-2: #1f1f2a;
  --line: #2c2c3a;
  --text: #f4f4f7;
  --muted: #a3a3b4;
  --accent: #ffcc1a;     /* amarillo Bona */
  --accent-ink: #1a1400;
  --red: #e5322d;
  --green: #22c55e;
  --green-bg: #0f3d22;
  --red-bg: #4a1010;
  --amber-bg: #4a3500;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: .3rem 0 .8rem; }
small, .muted { color: var(--muted); }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.stack > * + * { margin-top: 10px; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 12px; font-size: 16px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 120px; font-family: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text); }
.check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; font-size: 1rem; font-weight: 650; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); cursor: pointer; text-decoration: none; min-height: 46px;
}
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.danger { background: var(--red); border-color: var(--red); color: #fff; }
button.ghost { background: transparent; }
button.wa, .btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
.full { width: 100%; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--panel-2); border: 1px solid var(--line); }
.pill.ok { background: var(--green-bg); border-color: #1f7a45; color: #9ff0bd; }
.pill.warn { background: var(--amber-bg); border-color: #8a6400; color: #ffe08a; }
.pill.bad { background: var(--red-bg); border-color: #8a1f1f; color: #ffb4b4; }
.error { background: var(--red-bg); border: 1px solid #8a1f1f; color: #ffd0d0; padding: 10px 12px; border-radius: 10px; }
.success { background: var(--green-bg); border: 1px solid #1f7a45; color: #c9f7da; padding: 10px 12px; border-radius: 10px; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--panel-2); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .82rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list-item { padding: 12px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.list-item:last-child { border-bottom: 0; }
.ticket { background: #fff; color: #111; border-radius: 16px; padding: 16px; text-align: center; margin: 14px 0; box-shadow: var(--shadow); }
.ticket .qr svg { width: 100%; max-width: 260px; height: auto; }
.ticket h3 { color: #111; margin-top: 6px; font-size: 1.2rem; }
.ticket .code { font-family: ui-monospace, monospace; letter-spacing: 2px; color: #444; }
.flyer { width: 100%; border-radius: var(--radius); display: block; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #0b0b10; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 800; letter-spacing: .5px; }
.brand span { color: var(--accent); }
.attendee-block { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; }
.total-box { display: flex; justify-content: space-between; font-size: 1.05rem; padding: 6px 0; }
.total-box.big { font-size: 1.3rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 1.4rem; }
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 16px 40px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
