:root {
  --bg: #07070a;
  --panel: #121218;
  --line: #26262f;
  --text: #f5f3ef;
  --muted: #a3a1ad;
  --warm: #ffb547;
  --rose: #ff4f81;
  --glow: linear-gradient(100deg, var(--warm), var(--rose));
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- barra superior ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
.brand { font: 700 18px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.live-dot { font: 700 12px/1 var(--sans); letter-spacing: .14em; color: var(--rose); display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- pantalla en vivo ---------- */
.live { display: grid; grid-template-rows: auto 1fr auto; height: 100dvh; }
.stage { position: relative; background: #000; overflow: hidden; min-height: 0; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 55%, #2a1420 0%, #0c0b10 55%, #000 100%); }
.empty h1 { font: 500 clamp(32px, 7vw, 72px)/1.05 var(--serif); }
.empty p { margin-top: 12px; color: var(--muted); font-size: clamp(16px, 2.4vw, 22px); }
.caption { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(92%, 900px); text-align: center;
  font: 500 clamp(14px, 2.1vw, 22px)/1.35 var(--sans); background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 10px; }
.caption:empty { display: none; }
.sound { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.flag { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; color: var(--muted); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.progress i { display: block; height: 100%; width: 0; background: var(--glow); }
.dock { padding: 12px 16px max(10px, env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: center; text-align: center; }
.tagline { font: 500 14px/1.3 var(--serif); color: var(--muted); }
.meta { font-size: 12px; color: var(--muted); min-height: 1.5em; opacity: .8; }
.links { font-size: 11px; color: var(--muted); opacity: .5; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; }
.links a { text-decoration: none; }
.links select { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 11px; }

/* ---------- botones ---------- */
.cta { display: grid; gap: 2px; text-align: center; text-decoration: none; border: 0; border-radius: 16px; padding: 12px 28px;
  background: var(--glow); color: #160a10; box-shadow: 0 8px 40px rgba(255,79,129,.35); min-width: min(100%, 340px); }
.cta b { font: 700 19px/1.2 var(--sans); }
.cta span { font-size: 14px; font-weight: 500; opacity: .85; }
.cta i { font-style: normal; }
.btn { text-decoration: none; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 20px; font-weight: 700; }
.btn.primary { background: var(--glow); border: 0; color: #160a10; }
.btn.danger { border-color: #5b2230; color: #ff8fa8; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- páginas ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.page h1 { font: 500 clamp(28px, 6vw, 44px)/1.1 var(--serif); margin: 12px 0 8px; }
.page h2 { font: 500 22px/1.2 var(--serif); }
.lead { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 16px; display: grid; gap: 12px; }
.big-time { font: 500 clamp(22px, 5vw, 34px)/1.2 var(--serif); background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.note { font-size: 14px; color: var(--muted); }
.link-box { width: 100%; background: #0b0b10; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; }
input[type=number], input[type=email] { width: 100%; background: #0b0b10; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
label.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--rose); }

/* ---------- grabar ---------- */
.cam { position: relative; aspect-ratio: 9 / 16; max-height: 62dvh; margin: 8px auto 0; border-radius: 18px; overflow: hidden; background: #000; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.cam .mirror { transform: scaleX(-1); }
.ring { position: absolute; top: 12px; right: 12px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  font: 700 28px/1 var(--sans); background: rgba(0,0,0,.55); border: 2px solid var(--rose); }
.ring.on { animation: pulse 1s infinite; }
.ring.last { background: var(--rose); color: #160a10; }
.count { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(96px, 30vw, 180px)/1 var(--serif);
  background: rgba(0,0,0,.35); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--rose); animation: spin 1s linear infinite; margin: 8px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .live { grid-template-columns: 1fr 360px; grid-template-rows: auto 1fr; }
  .live .bar { grid-column: 1 / -1; }
  .dock { align-content: center; border-left: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- acceso invisible al panel ---------- */
.k { position: fixed; left: 0; bottom: 0; width: 44px; height: 44px; z-index: 50; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.kf { position: fixed; left: 6px; bottom: 6px; z-index: 51; }
.kf input { width: 140px; background: #0b0b10; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; }

/* ---------- cuenta regresiva del lanzamiento ---------- */
.empty .kick { font: 700 13px/1 var(--sans); letter-spacing: .18em; color: var(--warm); margin: 0 0 14px; }
.empty .lcd { font: 700 clamp(30px, 7vw, 64px)/1 var(--sans); font-variant-numeric: tabular-nums; margin: 14px 0 8px;
  background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty .note { margin-top: 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 48px; width: min(100%, 520px); margin: 8px auto 4px; }
.hours i { background: linear-gradient(to top, var(--rose) calc(var(--f) * 100%), rgba(255,255,255,.08) 0); border-radius: 3px; }
