/* Tema claro (valores de :root) y tema oscuro. El interruptor del encabezado cambia data-theme en <html>. */
:root {
  --ink: #0b0b0c;
  --muted: #6b6b70;
  --line: #e4e4e7;
  --bg: #ffffff;
  --soft: #f5f5f6;
  --card: #ffffff;
  --accent: #0b0b0c;
  --accent-ink: #ffffff;
  --input-bg: #ffffff;
  --input-line: #c9c9ce;
  --top-bg: rgba(255, 255, 255, .94);
  --thumb: #0b0b0c;
  --map-bg: #ffffff;
  --map-line: #d9d9de;
  --stage: #efeff1;
  --seat-taken: #c9c9ce;
  --seat-taken-line: #9c9ca3;
  --sel: #0b0b0c;
  --sel-line: #ffffff;
  --warn-bg: #fff6d9;
  --warn-ink: #6b4e00;
  --ok-bg: #e7f6ec;
  --ok-ink: #14532d;
  --bad-bg: #fde8e8;
  --bad-ink: #8a1c1c;
  --knob: #f0567a;
  --radius: 14px;
}
:root[data-theme="dark"] {
  --ink: #f2f2f3;
  --muted: #a3a3ab;
  --line: #34343a;
  --bg: #0e0e10;
  --soft: #1a1a1e;
  --card: #1f1f23;
  --accent: #ffffff;
  --accent-ink: #0b0b0c;
  --input-bg: #141417;
  --input-line: #4a4a52;
  --top-bg: rgba(14, 14, 16, .92);
  --thumb: #2a2a30;
  --map-bg: #1f1f23;
  --map-line: #3c3c44;
  --stage: #2c2c32;
  --seat-taken: #45454c;
  --seat-taken-line: #5c5c64;
  --sel: #ffffff;
  --sel-line: #0b0b0c;
  --warn-bg: #3a3010;
  --warn-ink: #f4d77a;
  --ok-bg: #12331f;
  --ok-ink: #9be3b4;
  --bad-bg: #3d1717;
  --bad-ink: #f3a3a3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: 28px; padding-bottom: 56px; }
a { color: inherit; }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap.wide { max-width: 1400px; }
.narrow { max-width: 680px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--top-bg); backdrop-filter: blur(8px); z-index: 5; }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 68px; }
.top-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.top nav a.on { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.top-cta { border-radius: 10px; padding: 8px 18px; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.top nav, .foot nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.foot nav { gap: 18px; }
.top nav { flex-wrap: nowrap; }
.top nav a, .foot nav a { text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.top nav a:hover, .foot nav a:hover { text-decoration: underline; }
.devbar { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-size: 13px; padding: 6px 16px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.foot nav a { font-weight: 500; font-size: 13px; }

/* Interruptor de tema: sol · palanca · luna */
.theme { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted); }
.theme svg { width: 18px; height: 18px; display: block; }
.theme .track { width: 46px; height: 26px; border-radius: 999px; background: var(--soft); border: 1px solid var(--input-line); position: relative; flex: none; }
.theme .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--knob); transition: transform .18s; }
:root[data-theme="dark"] .theme .track::after { transform: translateX(20px); }
.theme:focus-visible { outline: 2px solid var(--knob); outline-offset: 2px; border-radius: 999px; }

/* ---------- Portada: filtros por estado y tarjetas de evento ---------- */
.filterbar { background: var(--soft); border-bottom: 1px solid var(--line); }
.filter-in { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.filter-in::-webkit-scrollbar { display: none; }
.filterbar select { width: auto; flex: none; border-radius: 10px; padding: 9px 14px; font-size: 15px; margin-right: 6px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 18px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.home-title { text-align: center; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: 0; margin: 14px 0 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; background: var(--card); }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.card-img { aspect-ratio: 1410 / 1770; position: relative; background: linear-gradient(140deg, #2b2b33, #0b0b0c) center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.card-img { overflow: hidden; }
.card-img > .card-initial { color: #fff; font-size: 96px; font-weight: 800; opacity: .28; }
.card-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity .3s, transform .35s; }
.card-img > img.ready { opacity: 1; }
.card:hover .card-img > img { transform: scale(1.03); }
.card-date { z-index: 1; }
.grid.is-empty { display: block; }
.card-date { position: absolute; top: 0; right: 0; background: var(--card); color: var(--ink); padding: 10px 12px 12px 16px; border-bottom-left-radius: 16px; text-align: right; line-height: 1.35; }
.card-date strong { display: block; font-size: 17px; white-space: nowrap; }
.card-date span { display: block; font-size: 14px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h2 { font-size: 17px; font-weight: 800; margin: 0; text-transform: uppercase; line-height: 1.35; letter-spacing: 0; }
.card-body p { margin: 0; }
.card-place { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding-bottom: 6px; }
.card-place svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.card-place b { display: block; }
.card-foot { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-from { color: var(--muted); font-size: 13px; }
.card-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.card-cta svg { width: 20px; height: 20px; }
.date { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); }
.tag.off { background: var(--soft); color: var(--muted); }
.empty { padding: 28px; text-align: center; background: var(--soft); border-radius: var(--radius); color: var(--muted); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--card); color: var(--bad-ink); border-color: var(--bad-ink); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn.block { display: block; width: 100%; text-align: center; border-radius: 12px; padding: 14px 22px; }

.alert, .notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert { background: var(--warn-bg); color: var(--warn-ink); }
.notice { background: var(--ok-bg); color: var(--ok-ink); }
.bad { background: var(--bad-bg); color: var(--bad-ink); }

.event-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.event-head > div { flex: 1; min-width: 260px; }
.poster { width: 200px; max-width: 100%; height: auto; aspect-ratio: 1410 / 1770; object-fit: cover; object-position: center top; border-radius: var(--radius); background: var(--soft); }
.desc { margin-top: 12px; opacity: .85; }
select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=file], textarea {
  font: inherit; color: inherit; background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 10px; padding: 9px 12px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.fields.single { grid-template-columns: 1fr; max-width: 420px; }
.fields .full { grid-column: 1 / -1; }

/* ---------- Selección de boletos: zonas · mapa · carrito ---------- */
.picker { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.picker.two { grid-template-columns: minmax(0, 1fr) 340px; max-width: 980px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pk-title { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.pk-zones .pk-title, .cart-head { padding: 18px 16px; border-bottom: 1px solid var(--line); }
.pk-map .pk-title { padding: 6px 0 14px; }
.zonelist { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.zonelist li + li { border-top: 1px solid var(--line); }
.zonelist button, .zonelist .zrow-static {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  font: inherit; color: inherit; border: 0; border-left: 6px solid var(--zc, var(--line)); padding: 14px 16px;
  background: var(--card);
  background: color-mix(in srgb, var(--zc, transparent) 14%, var(--card));
}
.zonelist button { cursor: pointer; }
.zonelist button:hover, .zonelist button[aria-pressed="true"] { background: color-mix(in srgb, var(--zc, transparent) 32%, var(--card)); }
.zonelist strong { font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.zonelist .price { font-size: 18px; font-weight: 800; }
.zonelist .avail { font-size: 12px; color: var(--muted); }
.zonelist .soldout strong, .zonelist .soldout .price { opacity: .5; text-decoration: line-through; }
.zonelist .zrow-static { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.zonelist .zrow-static > div { display: flex; flex-direction: column; gap: 2px; }
.zonelist select { width: 76px; flex: none; }

.mapbox { position: relative; background: var(--map-bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.zoombar { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.zoombar button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--input-line); background: var(--card); color: var(--ink); font: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); padding: 0; }
.zoombar button:hover { background: var(--soft); }
.zoombar svg { width: 18px; height: 18px; }
.seatmap { touch-action: none; user-select: none; -webkit-user-select: none; }
.seatmap svg { display: block; width: 100%; height: auto; max-height: 84vh; }
.seatmap.zoomed svg { cursor: grab; }
.seat { stroke: rgba(0, 0, 0, .35); stroke-width: .8; transition: opacity .15s; }
.seat.free { cursor: pointer; }
.seat.free:hover { stroke: var(--ink); stroke-width: 1.6; }
.seat.taken { fill: var(--seat-taken); stroke: var(--seat-taken-line); }
.seat.sel { fill: var(--sel); stroke: var(--sel-line); stroke-width: 1.5; }
.seat.dim { opacity: .16; }
.map-line { stroke: var(--map-line); }
.map-gap { stroke: var(--map-bg); }
.map-stage { fill: var(--stage); stroke: var(--ink); }
.map-text { fill: var(--ink); }
.map-sub { fill: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .lg-taken { background: var(--seat-taken); border: 1px solid var(--seat-taken-line); }
.legend .lg-sel { background: var(--sel); border: 1px solid var(--sel-line); outline: 1px solid var(--line); }
.seat-info { margin: 10px 0 0; min-height: 20px; }

.pk-cart { position: sticky; top: 76px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-head .pk-title { display: flex; align-items: center; gap: 10px; }
.cart-head svg { width: 20px; height: 20px; }
.cart-body { padding: 16px; }
.cart-items { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.cart-items li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cart-items .ci-top, .cart-items .ci-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-items .ci-top strong { text-transform: uppercase; font-size: 14px; }
.cart-items .ci-bottom { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cart-items .ci-bottom b { color: var(--ink); font-size: 14px; white-space: nowrap; }
.cart-items .ci-x { width: 24px; height: 24px; border-radius: 6px; border: 0; background: var(--soft); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; flex: none; padding: 0; }
.cart-items .ci-x:hover { background: var(--bad-bg); color: var(--bad-ink); }
.cart-items .ci-empty { border-style: dashed; color: var(--muted); font-size: 14px; text-align: center; }
.cart-row { display: flex; justify-content: flex-end; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cart-row[hidden] { display: none; }
.cart-row > span:last-child { min-width: 110px; text-align: right; white-space: nowrap; }
.cart-row.total { font-size: 17px; font-weight: 800; border-bottom: 0; }
.cart-fields { display: grid; gap: 12px; margin: 10px 0 14px; }
.cart-note { margin: 10px 0 0; }

@media (max-width: 1100px) {
  .picker { grid-template-columns: 240px minmax(0, 1fr); }
  .picker .pk-cart { grid-column: 1 / -1; position: static; }
  .picker.two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .picker, .picker.two { grid-template-columns: 1fr; gap: 28px; }
  .zonelist { max-height: 300px; }
  .pk-map .pk-title { font-size: 16px; }
}

.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 22px 0; background: var(--card); }
.summary table, .table { width: 100%; border-collapse: collapse; }
.summary td { padding: 6px 0; }
.summary td:last-child { text-align: right; white-space: nowrap; }
.summary .sum td { border-top: 1px solid var(--line); font-weight: 700; padding-top: 10px; }
.tickets { display: grid; gap: 14px; margin-bottom: 18px; }
.ticket { display: flex; gap: 18px; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; break-inside: avoid; background: var(--card); }
.ticket.used { opacity: .5; }
.ticket p { margin: 0; }
.qr { width: 162px; height: 162px; flex: none; background: #fff; padding: 6px; border-radius: 6px; }
.qr img, .qr canvas { width: 150px; height: 150px; display: block; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .04em; margin-top: 6px !important; word-break: break-all; }
.legal h2 { margin-top: 22px; font-size: 17px; }

.adminnav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.adminnav form { margin-left: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.table th { background: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.zrow { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.zrow .muted { padding-bottom: 10px; min-width: 90px; }
.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: auto; }
.result { border-radius: var(--radius); padding: 22px; text-align: center; margin: 18px 0; }
.result h2 { font-size: 26px; }
code { background: var(--soft); padding: 1px 5px; border-radius: 5px; font-size: .92em; }

@media (max-width: 900px) {
  .top-in { grid-template-columns: auto 1fr auto; }
  .top .mainnav { justify-content: center; gap: 18px; }
  .top-cta { display: none; }
}
@media (max-width: 620px) {
  .fields { grid-template-columns: 1fr; }
  .top-in { gap: 10px; height: 60px; }
  .top .mainnav { gap: 14px; }
  .top nav a { font-size: 13.500px; }
  .theme svg { display: none; }
  .brand span { display: none; }
  .filter-in { justify-content: flex-start; }
  .ticket { flex-direction: column; align-items: flex-start; }
  .zrow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
}
@media print {
  :root, :root[data-theme="dark"] { --ink: #000; --muted: #444; --bg: #fff; --card: #fff; --line: #ccc; --soft: #f2f2f2; }
  .top, .foot, .devbar, .btn, .toasts, .mb-head, .order-foot { display: none !important; }
  main { padding: 0; }
  .tk { break-inside: avoid; }
}

/* ==========================================================================
   Página del evento: validación del carrito y paso de pago
   ========================================================================== */
input[aria-invalid="true"] { border-color: var(--bad-ink); }
.cart-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.cart-hint:empty { display: none; }
.cart-step { margin: 0; }
.cart-buyer { margin: 14px 0 12px; display: grid; gap: 8px; font-size: 14px; }
.cart-buyer > div { display: flex; justify-content: space-between; gap: 14px; }
.cart-buyer dt { color: var(--muted); }
.cart-buyer dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pay-status { display: flex; align-items: center; gap: 8px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.pay-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.picker[data-step="pago"] { grid-template-columns: minmax(0, 1fr) 360px; max-width: 1180px; }
.pk-pay { min-width: 0; }
.pay-top { margin-bottom: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 0; margin: 0 0 6px; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { color: var(--ink); }
.pay-title { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; }
.pay-top p { margin: 0; }

.acc { display: grid; gap: 14px; }
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.acc-item:has(.acc-head[aria-expanded="true"]) { border-color: var(--muted); box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
.acc-h { margin: 0; font-size: inherit; letter-spacing: 0; }
.acc-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acc-head:hover { background: var(--soft); }
.acc-head:focus-visible { outline: 2px solid var(--knob); outline-offset: -2px; border-radius: 18px; }
.acc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.acc-ico svg { width: 24px; height: 24px; }
.acc-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-txt strong { font-size: 16px; line-height: 1.3; }
.acc-txt small { color: var(--muted); font-size: 13px; }
.acc-chev { flex: none; color: var(--muted); }
.acc-chev svg { width: 22px; height: 22px; display: block; transition: transform .2s; }
.acc-head[aria-expanded="true"] .acc-chev svg { transform: rotate(180deg); }
.acc-body { padding: 18px 18px 20px; border-top: 1px solid var(--line); animation: acc-in .22s ease-out; }
.acc-body > p { font-size: 15px; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pay-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.btn.btn-wa { background: #1fae5b; border-color: #1fae5b; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.btn-wa svg { width: 20px; height: 20px; flex: none; }
.bank { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bank > div { display: flex; justify-content: space-between; align-items: center; gap: 6px 14px; padding: 11px 14px; flex-wrap: wrap; }
.bank > div + div { border-top: 1px solid var(--line); }
.bank dt { color: var(--muted); font-size: 13px; }
.bank dd { margin: 0 0 0 auto; font-weight: 700; display: flex; align-items: center; gap: 10px; text-align: right; overflow-wrap: anywhere; }
.bank .bank-total { background: var(--soft); }
.bank .bank-total dd { font-size: 17px; font-weight: 800; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.copy { border: 1px solid var(--input-line); background: var(--soft); color: var(--ink); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: none; }
.copy:hover { border-color: var(--ink); }
.copy.done { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.pay-note { font-size: 14px; color: var(--muted); }
.pay-foot { margin: 16px 0 0; }

/* ==========================================================================
   Avisos flotantes (esquina superior derecha)
   ========================================================================== */
.toasts { position: fixed; top: 82px; right: 20px; z-index: 60; display: grid; gap: 10px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 14px 18px; box-shadow: 0 18px 48px rgba(0, 0, 0, .32); animation: toast-in .3s cubic-bezier(.2, .8, .2, 1); }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--knob); }
.toast.out { animation: toast-out .22s ease-in forwards; }
.toast-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); display: flex; align-items: center; justify-content: center; }
.toast-ico svg { width: 20px; height: 20px; }
.toast-title { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.toast-body p { margin: 0; font-size: 13.5px; color: var(--muted); }
.toast-body .toast-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.toast-links a { color: var(--ink); font-weight: 700; font-size: 13.5px; text-underline-offset: 3px; }
.toast-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.toast-x:hover { background: var(--line); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }

/* ==========================================================================
   Mis boletos
   ========================================================================== */
.mb { max-width: 920px; margin: 0 auto; }
.mb-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.mb-head .cart-hint { margin-top: 10px; color: var(--bad-ink); }
.mb-search { display: flex; gap: 10px; margin-top: 18px; }
.mb-search input { flex: 1; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.mb-search .btn { border-radius: 12px; white-space: nowrap; }
.mb-count { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 14px; }
.mb .empty p { margin: 0 0 6px; }
.mb .empty p:last-child { margin: 0; }

.order { --notch: var(--card); border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 20px; margin-bottom: 24px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.order-head h2 { font-size: 22px; margin: 2px 0 4px; }
.order-head p { margin: 0; }
.order-meta { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.badge-wait { display: inline-flex; align-items: center; gap: 6px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-wait svg { width: 16px; height: 16px; flex: none; }
.badge-wait.sm { font-size: 11px; padding: 4px 9px; }
.badge-wait.sm svg { width: 13px; height: 13px; }
.wait-alert { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.wait-alert svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.wait-alert p { margin: 0; }

.tk-list { display: grid; gap: 16px; }
.tk { display: grid; grid-template-columns: minmax(0, 1fr) 190px; background: var(--soft); border-radius: 16px; border-left: 6px solid var(--zc); position: relative; overflow: hidden; }
.tk-main { padding: 16px 18px; min-width: 0; }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.tk-brand { color: var(--ink); font-size: 12px; }
.tk-artist { font-size: 20px; font-weight: 800; text-transform: uppercase; margin: 8px 0 12px; line-height: 1.2; letter-spacing: 0; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.tk-grid .wide { grid-column: 1 / -1; }
.tk-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tk-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.tk-zone { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.tk-zone::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--zc); flex: none; }
.tk-stub { border-left: 2px dashed var(--line); padding: 16px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; text-align: center; }
.tk-stub::before, .tk-stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--notch); }
.tk-stub::before { top: -10px; }
.tk-stub::after { bottom: -10px; }
.tk-qr { width: 144px; height: 144px; background: #fff; border-radius: 10px; padding: 6px; display: flex; align-items: center; justify-content: center; flex: none; }
.tk-qr img { width: 132px; height: 132px; display: block; object-fit: contain; }
.tk-qr.missing { background: repeating-linear-gradient(45deg, #f1f1f3 0 8px, #e4e4e7 8px 16px); color: #6b6b70; font-weight: 800; letter-spacing: .12em; }
.tk-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .06em; margin: 0; }
.order-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-sum { margin: 0; display: grid; gap: 4px; font-size: 14px; flex: 1; min-width: 240px; max-width: 420px; }
.order-sum > div { display: flex; justify-content: space-between; gap: 18px; }
.order-sum dt { color: var(--muted); }
.order-sum dd { margin: 0; font-weight: 600; text-align: right; }
.order-sum .sum { font-size: 16px; font-weight: 800; padding-top: 6px; }
.order-sum .sum dt { color: var(--ink); }

/* ==========================================================================
   Ajustes responsivos de las piezas nuevas
   ========================================================================== */
@media (max-width: 1100px) {
  .picker[data-step="pago"] { grid-template-columns: minmax(0, 1fr) 320px; }
  .picker[data-step="pago"] .pk-cart { grid-column: auto; position: sticky; }
}
@media (max-width: 760px) {
  .picker[data-step="pago"] { grid-template-columns: 1fr; gap: 22px; }
  .picker[data-step="pago"] .pk-cart { position: static; }
  .event-head { flex-wrap: nowrap; gap: 14px; align-items: flex-start; }
  .event-head > div { min-width: 0; }
  .event-head .poster { width: 96px; border-radius: 12px; }
  .pay-title { font-size: 22px; }
}
@media (max-width: 620px) {
  .toasts { top: 70px; right: 12px; left: 12px; width: auto; }
  .mb-search { flex-direction: column; }
  .order { padding: 14px; border-radius: 16px; }
  .tk { grid-template-columns: 1fr; }
  .tk-stub { border-left: 0; border-top: 2px dashed var(--line); flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .tk-stub::before { top: -11px; left: -10px; }
  .tk-stub::after { top: -11px; bottom: auto; left: auto; right: -10px; }
  .acc-head { padding: 14px; gap: 12px; }
  .acc-ico { width: 40px; height: 40px; }
  .acc-body { padding: 16px 14px 18px; }
  .bank dd { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .acc-body, .pay-status i { animation: none; }
}
.pay-top strong, .pay-note strong[data-folio-ref] { white-space: nowrap; }

/* ==========================================================================
   Imágenes verticales (1410 × 1770), varias fechas y textos editables
   ========================================================================== */
.card-badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: rgba(11, 11, 12, .78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }

.event-info { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 760px; }
.event-info p { margin: 0 0 8px; }
.event-info a, .legal a { color: var(--ink); text-underline-offset: 3px; }

.mapstage { position: relative; }
.datebar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.datebar-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.datebar-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.date-opt { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 104px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--input-line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; line-height: 1.2; }
.date-opt:hover { border-color: var(--ink); }
.date-opt[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.date-opt:focus-visible { outline: 2px solid var(--knob); outline-offset: 2px; }
.date-opt .do-dow { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.date-opt .do-day { font-size: 16px; font-weight: 800; text-transform: uppercase; }
.date-opt .do-time { font-size: 11px; opacity: .75; }

.cart-date { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cart-date:empty { display: none; }

.legal-intro { margin-bottom: 8px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.legal-sec { margin-top: 6px; }

@media (max-width: 760px) {
  .event-head .poster { width: 104px; }
  .datebar { padding: 12px; }
  .datebar-opts { width: 100%; }
  .date-opt { flex: 1; min-width: 0; }
}
