/* Noche ciruela, oro de moneda y un acento turquesa. El Messiri / Jost / IBM Plex Mono.
   Los colores del año llegan de /theme.css (lib/event.js → THEME); estos son los de respaldo. */
:root {
  color-scheme: dark;
  --night: #120a1c;
  --ink: #1b1029;
  --ink-2: #24163a;
  --gold: #e2b866;
  --gold-deep: #a97a2c;
  --gold-light: #f7e0a8;
  --accent: #45c7b5;
  --text: #f4eadb;
  --muted: #a897b8;
  --warm: 226, 150, 70;
  --cool: 176, 70, 140;

  --ice: var(--accent);
  --line: color-mix(in srgb, var(--gold) 18%, transparent);
  --line-soft: color-mix(in srgb, var(--gold) 9%, transparent);
  --free: #33224a;
  --free-hi: #4a3468;
  --free-edge: #6d5590;
  --reserved: #4a2c12;
  --reserved-edge: #8a5a24;
  --sold: #1f1530;
  --sold-edge: #2e2342;
  --blocked: #1e3340;
  --blocked-edge: #3d6375;
  --ok: #6fd3a0;
  --warn: #f0b75c;
  --bad: #ff8a80;

  --coin: radial-gradient(circle at 34% 28%, var(--gold-light) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  --coin-ring: inset 0 0 0 1.5px rgba(255, 244, 214, .55), inset 0 -2px 3px rgba(70, 40, 6, .45);

  --f-display: "El Messiri", "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-curtain: cubic-bezier(.76, 0, .24, 1);
  --s: 24px;
  --g: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; min-height: 100vh;
  background: var(--night); color: var(--text);
  font-family: var(--f-body); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60% 40% at 8% -6%, rgba(var(--warm), .16), transparent 70%),
    radial-gradient(55% 38% at 96% 0%, rgba(var(--cool), .14), transparent 70%),
    radial-gradient(80% 50% at 50% 110%, rgba(var(--cool), .08), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
[hidden] { display: none !important; }
a { color: var(--gold); text-underline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); color: var(--text); }

.wrap {
  max-width: 960px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 32px 168px;
  display: grid; gap: 26px;
}

/* ---------- Tipografía ---------- */
header { display: grid; gap: 10px; text-align: center; justify-items: center; }
.eyebrow {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.eyebrow::after { transform: scaleX(-1); }
h1 {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(46px, 10vw, 84px); line-height: 1; letter-spacing: -.005em;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 22%, var(--gold-light) 40%, var(--gold) 58%, var(--gold-deep) 82%, var(--gold) 100%);
  background-size: 220% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.when { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.facts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.facts .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--coin); box-shadow: 0 0 6px rgba(226,184,102,.5); }
.facts .muted { color: var(--muted); }

/* ---------- Pestañas, chips, avisos ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tab {
  font: 500 12.5px var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.tab[aria-selected="true"] { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); border-color: var(--gold); }
:is(.tab, .btn, .seat, .chip, .icon-btn):focus-visible, .opt:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.banner {
  position: relative;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px 13px 38px; font-size: 14px; line-height: 1.55; color: var(--muted);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
}
.banner::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--coin); box-shadow: 0 0 8px rgba(226,184,102,.6);
}
.banner.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }
.banner.bad::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.banner.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, var(--ink)); }
.banner.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); }
.banner.warn::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.banner b { color: var(--text); font-weight: 500; }
.banner div + div { margin-top: 4px; }

/* ---------- Referencias ---------- */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 15px; height: 15px; border-radius: 50%; display: inline-block; border: 1px solid transparent; }
.sw-free { background: radial-gradient(circle at 35% 30%, var(--free-hi), var(--free) 70%); border-color: var(--free-edge) !important; }
.sw-sel { background: var(--coin); box-shadow: var(--coin-ring); }
.sw-reserved { background: var(--reserved); border-color: var(--reserved-edge) !important; }
.sw-sold { background: var(--sold); border-color: var(--sold-edge) !important; }
.sw-blocked { background: var(--blocked); border-color: var(--blocked-edge) !important; }

/* ---------- Sala ---------- */
.hall {
  position: relative;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(var(--warm), .10), transparent 70%),
    linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 60%, var(--night)));
  border: 1px solid var(--line); border-radius: 24px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.03);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.hall-inner { width: max-content; min-width: 100%; padding: 0 22px 32px; display: grid; justify-items: center; gap: 22px; }

/* Escenario: un proscenio con un fleco de monedas como el de un pañuelo de cadera. */
.stage {
  position: relative;
  width: calc(19 * (var(--s) + var(--g)) + 40px); height: 46px;
  border-radius: 0 0 50% 50% / 0 0 70% 70%;
  background:
    linear-gradient(180deg, rgba(var(--warm), .38), rgba(var(--warm), .06)),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line); border-top: none;
  display: grid; place-items: center;
  font: 500 11px var(--f-body); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--gold-light);
  text-shadow: 0 0 12px rgba(var(--warm), .6);
}
.stage::before {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 60px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(var(--warm), .16), transparent 70%);
}
.valance { display: flex; justify-content: center; align-items: flex-start; gap: 7px; margin-top: 6px; height: 16px; pointer-events: none; }
.valance i {
  position: relative; width: 9px; height: 9px; margin-top: calc(var(--dy, 0) * 1px); border-radius: 50%;
  background: var(--coin); box-shadow: var(--coin-ring), 0 2px 4px rgba(0,0,0,.4);
  transform-origin: 50% -6px; animation: sway 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.18s);
}
.valance i::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 6px; background: color-mix(in srgb, var(--gold) 55%, transparent); }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

.sector-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; justify-content: center; }
.sector-head h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: .01em; }
.sector-head .price { font: 500 14px var(--f-mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.sector-head .left { font-size: 12.5px; color: var(--muted); }
.sector-head .left b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: var(--g); align-items: center; }
.rl { font: 400 10.5px var(--f-mono); color: color-mix(in srgb, var(--muted) 75%, transparent); text-align: center; font-variant-numeric: tabular-nums; }
.seat {
  width: var(--s); height: var(--s); padding: 0; border-radius: 50%;
  font: 500 9.5px/1 var(--f-body); font-variant-numeric: tabular-nums;
  display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, var(--free-hi), var(--free) 72%);
  color: #d9cbee; border: 1px solid var(--free-edge);
  transition: transform .18s var(--ease-out), box-shadow .18s, background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .seat:hover:not(:disabled) { transform: scale(1.22); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent), 0 4px 10px rgba(0,0,0,.4); z-index: 1; }
}
.seat:active:not(:disabled) { transform: scale(.92); }
.seat:disabled { cursor: not-allowed; }
.seat[data-st="sold"] { background: var(--sold); border-color: var(--sold-edge); color: #4b3f5f; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.seat[data-st="reserved"] { background: var(--reserved); border-color: var(--reserved-edge); color: #c79a5c; }
.seat[data-st="blocked"] { background: var(--blocked); border-color: var(--blocked-edge); color: #8fb4c2; }
.seat[data-st="sel"] {
  background: var(--coin); border-color: transparent; color: #3a2408; font-weight: 600;
  box-shadow: var(--coin-ring), 0 0 16px rgba(226,184,102,.55);
  animation: mint .42s var(--ease-out);
}
@keyframes mint {
  0% { transform: scale(.7) rotateY(90deg); }
  60% { transform: scale(1.18) rotateY(0); }
  100% { transform: scale(1); }
}
.hint { text-align: center; font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Barra de selección ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 40px -20px rgba(0,0,0,.6);
}
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: .45; }
.bar-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.picked { flex: 1 1 220px; min-width: 0; display: grid; gap: 6px; }
.picked .count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.picked .list { font-size: 14px; display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; align-items: center; }
.picked .list .ph { color: var(--text); opacity: .75; }
.seat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px var(--f-mono); letter-spacing: .02em;
  padding: 3px 9px 3px 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); color: var(--gold-light);
  animation: chipIn .3s var(--ease-out);
}
.seat-chip::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--coin); box-shadow: var(--coin-ring); }
@keyframes chipIn { from { opacity: 0; transform: translateY(4px); } }
.total { font-family: var(--f-display); font-size: 30px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  font: 500 12.5px var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold-light) 50%, var(--gold));
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 48%, var(--gold-deep) 100%);
  color: #2b1906; cursor: pointer; text-decoration: none; display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 26px -10px rgba(226,184,102,.65);
  transition: transform .15s var(--ease-out), box-shadow .2s, opacity .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
@media (hover: hover) { .btn:hover:not(:disabled)::after { transform: translateX(120%); } }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--gold); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.btn.ghost::after { display: none; }
.btn.small { padding: 9px 15px; font-size: 11px; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); box-shadow: none; }
.btn.danger::after { display: none; }

/* ---------- Hoja de datos ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: end center;
  background: rgba(8, 4, 14, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
.panel {
  position: relative;
  width: min(520px, 100%); background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 24px 24px 0 0; padding: 26px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: grid; gap: 16px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 -30px 80px -20px rgba(0,0,0,.7);
  animation: rise .45s var(--ease-out);
}
.panel::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.panel.wide { width: min(760px, 100%); }
@media (min-width: 640px) {
  .sheet { place-items: center; }
  .panel { border-radius: 24px; border-bottom: 1px solid var(--line); }
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.panel h3 { margin: 0; font-family: var(--f-display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.panel p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.field { display: grid; gap: 7px; }
.field label, .label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"] {
  font: 400 16px var(--f-body); color: var(--text);
  background: color-mix(in srgb, var(--night) 55%, var(--ink));
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}
.summary span { font-family: var(--f-mono); font-size: 13px; color: var(--gold-light); overflow-wrap: anywhere; }
.summary b { font-family: var(--f-display); font-size: 24px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.err { color: var(--bad); font-size: 13.5px; line-height: 1.5; }
.okmsg { color: var(--ok); font-size: 13.5px; line-height: 1.5; }

/* ---------- Checkout: resumen como talón de entrada, tiempo, datos y pago ---------- */
.checkout { gap: 0; }
.co { display: grid; gap: 20px; }
.co svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.co-step { display: block; margin-bottom: 6px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.co-x {
  flex: none; width: 38px; height: 38px; margin: -4px -6px 0 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.co-x svg { width: 16px; height: 16px; stroke-width: 1.8; }
.co-x:hover { color: var(--gold-light); border-color: var(--gold); }
.co-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Talón: dos mitades separadas por un troquel con muescas a los lados. */
.stub {
  --cut: 11px;
  position: relative; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 60%),
    color-mix(in srgb, var(--night) 45%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold-light) 14%, transparent), 0 18px 40px -24px rgba(0,0,0,.8);
}
.stub-top { position: relative; z-index: 1; display: grid; gap: 3px; padding: 18px 18px 16px; }
.stub-ev { font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--gold-light); line-height: 1.15; }
.stub-meta { font-size: 13px; color: var(--muted); }
.stub-seats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stub-seats .seat-chip { animation: none; }
.stub-bottom {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 16px 18px 16px;
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}
.stub-bottom::before {
  content: ""; position: absolute; top: 0; left: calc(var(--cut) + 6px); right: calc(var(--cut) + 6px);
  border-top: 1.5px dashed color-mix(in srgb, var(--gold) 35%, transparent);
}
.stub-top::before, .stub-top::after {
  content: ""; position: absolute; bottom: calc(var(--cut) * -1); width: calc(var(--cut) * 2); height: calc(var(--cut) * 2);
  border-radius: 50%; background: var(--ink-2); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.stub-top::before { left: calc(var(--cut) * -1); }
.stub-top::after { right: calc(var(--cut) * -1); }
.stub-qty { font: 400 13px var(--f-mono); color: var(--muted); padding-bottom: 4px; }
.stub-total { display: grid; justify-items: end; gap: 2px; }
.stub-total small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.stub-total b { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Tiempo de la reserva: una línea que se consume. */
.hold { display: grid; gap: 10px; }
.hold-row { display: flex; align-items: center; gap: 10px; }
.hold-row svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.hold-row p { flex: 1; font-size: 13px; line-height: 1.45; }
.hold-time {
  flex: none; font: 500 14px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--gold-light);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}
.hold.low .hold-row svg, .hold.low .hold-time { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.hold.low .hold-time { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.timebar { height: 3px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.timebar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform-origin: left; transition: transform 1s linear, background .3s; }
.hold.low .timebar i { background: var(--bad); }

.co-sec { display: grid; gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.co-sec > legend { padding: 0; margin-bottom: 14px; color: var(--gold); }
.co-sec.opts { gap: 10px; }
.co-sec.opts > legend { margin-bottom: 10px; }
.help { font-size: 12px; color: var(--muted); line-height: 1.45; }
.opt-tag {
  font: 500 9.5px var(--f-body); letter-spacing: .16em; text-transform: uppercase; font-style: normal;
  color: var(--muted); opacity: .8; margin-left: 4px;
}
.opt-tag.gold {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 7px; border-radius: 999px; opacity: 1;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.opt-title { font-weight: 500; }

.co-cta { display: grid; gap: 6px; }
.co-pay { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding-block: 17px; font-size: 13.5px; }
.co-pay svg { width: 17px; height: 17px; stroke-width: 1.9; margin-top: -2px; }
.co-back {
  justify-self: center; background: none; border: 0; cursor: pointer; padding: 10px 14px;
  font: 400 13px var(--f-body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent);
}
.co-back:hover { color: var(--text); }
.co-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.trust {
  list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 9px;
  border-top: 1px solid var(--line-soft);
}
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); }
.trust svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
.trust li[hidden] { display: none; }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.opt:hover { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.opt:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.opt input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 2px 0 0; border-radius: 50%;
  border: 1.5px solid var(--free-edge); background: var(--night); cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.opt input:checked { background: var(--coin); border-color: transparent; box-shadow: var(--coin-ring), 0 0 10px rgba(226,184,102,.5); }
.opt input:focus-visible { outline: none; }
.opt span { display: grid; gap: 3px; flex: 1; font-size: 15px; font-weight: 500; }
.opt-ico {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 30px; border-radius: 8px;
}
.opt-ico svg { width: 26px; height: 26px; }
.opt-ico.mp { background: #009ee3; color: #fff; }
.opt-ico.cash { border: 1px solid var(--line); color: var(--gold); }
.opt small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.5; }

/* Resultado: marca (moneda con tilde, reloj o aviso), talón y pasos. */
.done { display: grid; gap: 14px; text-align: center; justify-items: center; padding-block: 6px; }
.done p { max-width: 42ch; overflow-wrap: anywhere; }
.done .co-step { margin: 4px 0 -6px; }
.res-mark {
  position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  animation: mint .6s var(--ease-out);
}
.res-mark svg { display: none; width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.res-mark.ok {
  background: var(--coin); color: #3a2408;
  box-shadow: var(--coin-ring), 0 0 0 8px color-mix(in srgb, var(--gold) 10%, transparent), 0 0 44px rgba(226,184,102,.5);
}
.res-mark.ok .i-ok { display: block; }
.res-mark.ok .i-ok path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .5s .25s var(--ease-out) forwards; }
.res-mark.wait {
  color: var(--gold-light); border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 5%, transparent);
}
.res-mark.wait .i-wait { display: block; width: 32px; height: 32px; stroke-width: 1.8; }
/* Girando: un arco dorado recorre el borde mientras se confirma el pago. */
.res-mark.spin::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--gold);
  animation: spin 1.1s linear infinite;
}
.res-mark.bad {
  color: var(--bad); border: 1.5px solid color-mix(in srgb, var(--bad) 45%, transparent);
  background: color-mix(in srgb, var(--bad) 9%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--bad) 5%, transparent);
}
.res-mark.bad .i-bad { display: block; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.res-stub { width: 100%; text-align: left; margin-top: 4px; }
.res-steps {
  width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: paso; text-align: left;
  display: grid; gap: 10px;
}
.res-steps li {
  counter-increment: paso; position: relative; padding-left: 38px;
  font-size: 13.5px; line-height: 1.5; color: var(--text);
}
.res-steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 500 12px var(--f-mono); color: var(--gold-light);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--gold) 7%, transparent);
}
.done .co-cta { width: 100%; margin-top: 4px; }
.cal { width: 100%; display: grid; gap: 10px; justify-items: center; padding-top: 4px; }
.cal-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cal-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
.cal-btns svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.foot { display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 12px; color: var(--muted); padding-top: 8px; }
.foot .mark { font-family: var(--f-display); font-size: 18px; color: color-mix(in srgb, var(--gold) 70%, transparent); letter-spacing: .02em; }

/* ---------- Pantalla de carga: el telón con el fleco de monedas ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; text-align: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(60% 45% at 50% 38%, rgba(var(--warm), .16), transparent 70%),
    radial-gradient(90% 60% at 50% 120%, rgba(var(--cool), .18), transparent 70%),
    var(--night);
  transition: transform 1.05s var(--ease-curtain), opacity .6s ease .45s;
}
.loader::after {
  /* borde inferior del telón */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5;
}
.loader.out { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.loader-inner { display: grid; gap: 18px; justify-items: center; }
.fringe { position: relative; display: flex; gap: clamp(6px, 1.6vw, 11px); padding-top: 14px; height: 76px; }
.fringe::before {
  /* cordón del que cuelgan las monedas */
  content: ""; position: absolute; left: -18px; right: -18px; top: 0; height: 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.fringe i {
  position: relative; display: block; flex: none;
  width: clamp(14px, 3.6vw, 20px); height: clamp(14px, 3.6vw, 20px); border-radius: 50%;
  margin-top: calc(var(--y) * 1px);
  background: var(--coin); box-shadow: var(--coin-ring), 0 4px 10px rgba(0,0,0,.45);
  transform-origin: 50% -14px;
  animation: drop .7s var(--ease-out) both, shimmy .9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 45ms), calc(.7s + var(--i) * -70ms);
}
.fringe i::before { content: ""; position: absolute; left: 50%; top: -14px; height: 14px; width: 1px; background: color-mix(in srgb, var(--gold) 60%, transparent); }
.fringe i::after {
  /* agujero de la moneda y brillo */
  content: ""; position: absolute; left: 50%; top: 2px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: rgba(40,22,4,.6);
}
@keyframes drop { from { opacity: 0; translate: 0 -28px; } }
@keyframes shimmy { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.loader-venue { margin: 0; font-size: 11px; letter-spacing: .4em; text-indent: .4em; text-transform: uppercase; color: var(--muted); animation: fadeUp .9s var(--ease-out) .5s both; }
.loader-title {
  margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(44px, 11vw, 92px); line-height: 1;
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 25%, var(--gold-light) 45%, var(--gold) 65%, var(--gold-deep) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: unveil 1.6s var(--ease-out) .55s both, sheen 2.6s ease-in-out 1.2s both;
}
.loader-when { margin: 0; font-size: 13px; letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; color: var(--gold); animation: fadeUp .9s var(--ease-out) 1.35s both; }
@keyframes unveil { from { opacity: 0; letter-spacing: .3em; filter: blur(10px); } to { opacity: 1; letter-spacing: 0; filter: blur(0); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
body.loading { overflow: hidden; }

/* Entrada de la página después del telón. */
body.enter .reveal { animation: fadeUp .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + .15s); }
body.enter h1 { animation: sheen 2.4s ease-in-out .3s both; }
body.enter .grid .seat { animation: seatIn .55s var(--ease-out) both; animation-delay: calc(.45s + var(--r, 0) * 22ms); }
body.enter .grid .seat[data-st="sel"] { animation: mint .42s var(--ease-out); }
@keyframes seatIn { from { opacity: 0; transform: translateY(-6px) scale(.6); } }

@media (max-width: 560px) {
  :root { --s: 22px; --g: 3px; }
  .wrap { padding-block: 24px 176px; gap: 22px; }
  .eyebrow { letter-spacing: .26em; text-wrap: balance; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .bar { padding-top: 12px; }
  .bar-inner .btn { padding-block: 13px; }
  .bar .total { font-size: 26px; }
  .bar-inner .btn { flex: 1 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader.out { transform: none; }
}
