:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --gold: #d4af37;
  --ok: #3ddc84;
  --warn: #ffb020;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------------- Telefono ---------------- */
.phone { min-height: 100%; transition: none; }
.phone .screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.phone .wrap { padding: max(28px, env(safe-area-inset-top)) 22px 64px; max-width: 520px; width: 100%; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--gold); margin: 0 0 10px; }
h1 { font-size: 30px; line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.lead { color: #d0d0d0; font-size: 16px; line-height: 1.45; margin: 0; }
.muted { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid button { aspect-ratio: 1; border: 1px solid var(--line); background: #111; border-radius: 14px; font-size: 26px; font-weight: 700; }
.grid button:active { background: #fff; color: #000; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { padding: 14px 8px; border: 1px solid var(--line); background: #111; border-radius: 12px; font-weight: 600; }
.seg button.on { background: #fff; color: #000; border-color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.row2 label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.row2 input { font: inherit; font-size: 22px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #111; color: #fff; width: 100%; -webkit-user-select: text; user-select: text; }
.primary { width: 100%; padding: 16px; border-radius: 14px; border: 0; background: #fff; color: #000; font-weight: 800; font-size: 17px; margin-top: 18px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 12px 4px; font-size: 14px; }
.links { display: flex; justify-content: space-between; margin-top: 8px; }
.seatLabel { font-size: 24px; }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #cfcfcf; font-size: 15px; }
.checks .dot { width: 10px; height: 10px; border-radius: 50%; background: #555; flex: none; }
.checks li.ok .dot { background: var(--ok); }
.checks li.warn .dot { background: var(--warn); }
.checks li.wait .dot { background: #555; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tap { width: 100%; aspect-ratio: 1.6; border-radius: 22px; border: 2px solid #fff; background: #fff; color: #000; font-size: 34px; font-weight: 900; letter-spacing: .04em; }
.tap:active { transform: scale(.98); background: var(--gold); border-color: var(--gold); }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; margin: 14px 0 0; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.center-text { text-align: center; margin: auto; }
.count { font-size: 38vw; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.phone.fullbleed .brand { display: none; }
.brand { position: fixed; bottom: max(10px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 11px; color: #555; letter-spacing: .08em; pointer-events: none; }
#show { background: transparent; }
.phone.fullbleed #armed, .phone.fullbleed #test { background: transparent; }

/* ---------------- Regia ---------------- */
.regia { overflow: hidden; }
.regia #stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.regia canvas { display: block; }
.regia .overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.regia .overlay .big { font-size: 11vw; font-weight: 900; letter-spacing: -.02em; line-height: 1; text-shadow: 0 6px 40px rgba(0,0,0,.8); }
.regia .overlay .sub { font-size: 2.2vw; color: #e6e6e6; margin-top: 2vh; text-shadow: 0 2px 20px rgba(0,0,0,.9); }
.regia .overlay.tap .big { color: var(--gold); animation: pulse .9s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.regia .overlay.dim { background: rgba(0,0,0,.55); }
.regia .overlay.idle .big { font-size: 6.5vw; }
.regia .top { position: fixed; top: 18px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: baseline; pointer-events: none; }
.regia .title { font-size: 20px; font-weight: 800; }
.regia .title small { display: block; font-size: 12px; font-weight: 400; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.regia .scene { font-size: 18px; color: #ddd; }
.regia .panel { position: fixed; right: 20px; bottom: 20px; width: 300px; background: rgba(12,12,12,.92); border: 1px solid #2c2c2c; border-radius: 16px; padding: 16px; font-size: 14px; backdrop-filter: blur(6px); }
.regia .panel h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.regia .panel .btn { width: 100%; padding: 12px; border-radius: 10px; border: 0; background: #fff; color: #000; font-weight: 800; margin-top: 8px; }
.regia .panel .btn.sec { background: #222; color: #fff; font-weight: 600; }
.regia .panel .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0; color: #ccc; }
.regia .panel input { width: 64px; font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid #333; background: #000; color: #fff; text-align: center; }
.regia .panel .keys { color: #777; font-size: 12px; margin-top: 10px; line-height: 1.5; }
.regia .status { font-size: 12px; color: #aaa; }
.regia .status b.ok { color: var(--ok); } .regia .status b.warn { color: var(--warn); }
.regia .qrbox { position: fixed; left: 24px; bottom: 24px; background: #fff; color: #000; border-radius: 18px; padding: 16px; text-align: center; }
.regia .qrbox .qr { width: 240px; height: 240px; }
.regia .qrbox .qr svg, .regia .qrbox .qr img { width: 100%; height: 100%; display: block; }
.regia .qrbox p { margin: 10px 0 0; font-weight: 700; font-size: 15px; }
.regia .qrbox small { display: block; font-size: 11px; color: #555; margin-top: 4px; word-break: break-all; max-width: 240px; }
.regia .stats { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, 90vw); background: #0a0a0a; border: 1px solid #2c2c2c; border-radius: 22px; padding: 32px 36px; }
.regia .stats h2 { margin: 0 0 6px; font-size: 28px; }
.regia .stats .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.regia .stats .kpi { background: #151515; border-radius: 14px; padding: 16px; }
.regia .stats .kpi b { display: block; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.regia .stats .kpi span { color: var(--muted); font-size: 13px; }
.regia .stats .bars .bar { display: grid; grid-template-columns: 130px 1fr 50px; align-items: center; gap: 10px; margin: 8px 0; color: #ccc; }
.regia .stats .bars .track { height: 12px; background: #1d1d1d; border-radius: 6px; overflow: hidden; }
.regia .stats .bars .fill { height: 100%; background: #fff; border-radius: 6px; }
.regia .stats .note { color: #777; font-size: 12px; margin-top: 16px; }
.regia .flash { position: fixed; inset: 0; background: #fff; pointer-events: none; }
.regia .brandR { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #555; letter-spacing: .08em; }
