/* Mango Tango – reservas. Tokens primero; todo lo demás los usa. */
:root {
  --bg: #0d0907;
  --bg-2: #140e0a;
  --surface: #1b130e;
  --surface-2: #241a13;
  --line: rgba(255, 214, 170, 0.12);
  --line-strong: rgba(255, 214, 170, 0.24);
  --text: #f6ece2;
  --muted: #bba795;
  --dim: #7a685a;
  --mango: #f5a524;
  --mango-2: #ffc45c;
  --mango-ink: #1a0f04;
  --coral: #e8553a;
  --gold: linear-gradient(180deg, #ffe9a8 0%, #f6c24a 45%, #d18f17 100%);
  --ok: #7fd49b;
  --danger: #ff7a63;

  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-hero: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --fs-price: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--mango);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
/* Grano sutil de película + brillo cálido arriba */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 60% at 85% -10%, rgba(245, 165, 36, 0.13), transparent 60%),
    radial-gradient(80% 50% at -10% 110%, rgba(232, 85, 58, 0.08), transparent 60%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: var(--mango-2); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Estructura ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.top {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 9, 7, 0.8);
  backdrop-filter: blur(8px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--text); }
.brand-mark { display: block; width: auto; height: 40px; flex: none; }
.brand b { font: 800 1.5rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { color: var(--muted); font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; }
.top nav a { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; }
.top nav a:hover { color: var(--text); }

.banner {
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  padding: var(--s-2) 0;
}
.banner .wrap { display: flex; gap: var(--s-3); align-items: center; }
.banner--demo { background: repeating-linear-gradient(-45deg, rgba(245, 165, 36, 0.12) 0 12px, rgba(245, 165, 36, 0.05) 12px 24px); color: var(--mango-2); }
.banner--warn { background: rgba(232, 85, 58, 0.14); color: #ffc2b5; }
.tag {
  display: inline-block;
  font: 700 var(--fs-xs)/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.6em;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* ---------- Encabezado de página ---------- */
.hero { padding: var(--s-7) 0 var(--s-6); }
.eyebrow { color: var(--mango); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 var(--s-3); }
.hero h1 {
  margin: 0;
  font: 800 var(--fs-hero)/0.9 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--mango); }
.hero p { color: var(--muted); max-width: 52ch; margin: var(--s-4) 0 0; font-size: var(--fs-lg); }

/* ---------- Layout de reserva ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-7); align-items: start; padding-bottom: var(--s-8); }

.step { position: relative; padding: 0 0 var(--s-7) 72px; }
.step::before { /* riel vertical */
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
}
.step:last-child::before { display: none; }
.step-n {
  position: absolute;
  left: 0;
  top: 0;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  font: 800 1.25rem/1 var(--f-display);
  color: var(--dim);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.step.is-active .step-n { color: var(--mango); border-color: var(--mango); }
.step.is-done .step-n { color: var(--mango-ink); background: var(--mango); border-color: var(--mango); }
.step h2 {
  margin: 0.35rem 0 var(--s-1);
  font: 800 var(--fs-xl)/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.step .hint { margin: 0 0 var(--s-5); color: var(--muted); font-size: var(--fs-sm); }
.step.is-locked { opacity: 0.38; pointer-events: none; }
.step.is-locked .hint::after { content: ' Primero completa el paso anterior.'; }

/* Tipos de mesa: filas, no tarjetas */
.types { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.type { border-bottom: 1px solid var(--line); }
.type label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5) var(--s-3);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.type label:hover { background: rgba(255, 214, 170, 0.035); }
.type input { appearance: none; margin: 0; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.type input::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--mango); transform: scale(0); transition: transform 0.2s var(--ease); }
.type input:checked { border-color: var(--mango); }
.type input:checked::after { transform: scale(1); }
.type input:checked ~ .type-main .type-name { color: var(--mango-2); }
.type:has(input:checked) { background: linear-gradient(90deg, rgba(245, 165, 36, 0.08), transparent 70%); box-shadow: inset 2px 0 0 var(--mango); }
.type-name { font: 800 1.5rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; transition: color 0.2s; }
.type-zone { color: var(--mango); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-left: var(--s-2); }
.type-desc { color: var(--muted); font-size: var(--fs-sm); margin: var(--s-1) 0 var(--s-2); }
.type-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-xs); color: var(--dim); letter-spacing: 0.04em; }
.type-meta b { color: var(--text); font-weight: 600; }
.type-price { text-align: right; }
.type-price small { display: block; color: var(--dim); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; }
.type-price strong { font: 800 var(--fs-price)/1 var(--f-display); letter-spacing: 0.01em; }

/* Stepper */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.stepper button {
  width: 64px;
  border: 0;
  background: var(--surface);
  font: 700 1.5rem/1 var(--f-body);
  cursor: pointer;
  transition: background 0.2s;
}
.stepper button:hover:not(:disabled) { background: var(--surface-2); color: var(--mango); }
.stepper button:disabled { color: var(--dim); cursor: not-allowed; }
.stepper output { min-width: 120px; padding: var(--s-3) var(--s-4); text-align: center; border-inline: 1px solid var(--line); }
.stepper output b { display: block; font: 800 2.5rem/1 var(--f-display); }
.stepper output span { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.range-note { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--dim); }

/* Calendario */
.cal { max-width: 560px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.cal-head h3 { margin: 0; font: 800 1.75rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; }
.cal-nav { display: flex; gap: var(--s-2); }
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--mango); color: var(--mango); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: var(--fs-xs); color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: var(--s-2); }
.day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  font: 700 1.125rem/1 var(--f-body);
  padding: 0;
  cursor: default;
}
.day small { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; margin-top: 3px; line-height: 1; }
.day.is-open { border-color: rgba(245, 165, 36, 0.4); cursor: pointer; background: rgba(245, 165, 36, 0.04); }
.day.is-open:hover { border-color: var(--mango); background: rgba(245, 165, 36, 0.1); }
.day.is-open small { color: var(--muted); }
.day.is-low small { color: var(--coral); }
.day.is-closed { color: var(--dim); opacity: 0.45; }
.day.is-soldout { color: var(--dim); }
.day.is-soldout span { text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.day.is-soldout small { color: var(--coral); }
.day.is-selected { background: var(--mango); border-color: var(--mango); color: var(--mango-ink); }
.day.is-selected small { color: var(--mango-ink); }
.day.is-today::after { content: ''; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-open { border: 1px solid var(--mango); }
.lg-sold { background: linear-gradient(135deg, transparent 45%, var(--coral) 45% 55%, transparent 55%); border: 1px solid var(--line-strong); }
.lg-closed { background: var(--surface-2); }
.cal-loading { opacity: 0.5; pointer-events: none; }

/* Formulario */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); max-width: 640px; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-size: var(--fs-md);
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 214, 170, 0.36); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mango); background: var(--surface-2); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: var(--fs-xs); min-height: 1em; }

.policy { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); margin-top: var(--s-5); max-width: 640px; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; }
.policy input { appearance: none; margin: 2px 0 0; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; }
.policy input:checked { background: var(--mango); border-color: var(--mango); }
.policy input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--mango-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.policy-text { margin: var(--s-4) 0 0; padding: var(--s-4); max-width: 640px; border-left: 2px solid var(--line-strong); color: var(--dim); font-size: var(--fs-xs); line-height: 1.7; }
.policy-text p { margin: 0 0 var(--s-2); }

/* ---------- Ticket (resumen fijo) ---------- */
.ticket {
  position: sticky;
  top: var(--s-5);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -40px rgba(245, 165, 36, 0.35);
}
.ticket-top { padding: var(--s-5); }
.ticket-label { display: flex; justify-content: space-between; align-items: center; color: var(--mango); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.ticket-label span:last-child { color: var(--dim); letter-spacing: 0.1em; }
.ticket h3 { margin: var(--s-3) 0 var(--s-1); font: 800 2rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; }
.ticket-zone { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.ticket dl { margin: var(--s-5) 0 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
.ticket dt { color: var(--dim); }
.ticket dd { margin: 0; text-align: right; font-weight: 600; }
.ticket dd.is-empty { color: var(--dim); font-weight: 400; }
.perf { position: relative; height: 0; border-top: 1px dashed var(--line-strong); margin: 0 var(--s-4); }
.perf::before, .perf::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.perf::before { left: calc(-1 * var(--s-4) - 13px); clip-path: inset(0 0 0 50%); }
.perf::after { right: calc(-1 * var(--s-4) - 13px); clip-path: inset(0 50% 0 0); }
.ticket-bottom { padding: var(--s-5); }
.money-row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-2); }
.money-row b { color: var(--text); font-weight: 600; }
.money-total { display: flex; justify-content: space-between; align-items: flex-end; margin: var(--s-4) 0 var(--s-5); }
.money-total span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mango); }
.money-total strong { font: 800 3rem/0.9 var(--f-display); }
.fine { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--dim); text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  min-height: 56px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--r-md);
  background: var(--mango);
  color: var(--mango-ink);
  font: 800 1.25rem/1 var(--f-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--mango-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--surface-2); color: var(--dim); cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover:not(:disabled) { background: transparent; border-color: var(--mango); color: var(--mango); }
.btn--auto { width: auto; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-size: var(--fs-sm); margin-top: var(--s-4); }
.alert--error { background: rgba(255, 122, 99, 0.12); color: #ffc2b5; border: 1px solid rgba(255, 122, 99, 0.35); }

/* ---------- Eventos ---------- */
.sub { margin: 0 0 var(--s-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.events { margin-bottom: var(--s-6); max-width: 640px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.event {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(245, 165, 36, 0.07), transparent 60%), var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.event:hover { border-color: var(--mango); }
.event.is-selected { border-color: var(--mango); background: linear-gradient(90deg, rgba(245, 165, 36, 0.22), rgba(245, 165, 36, 0.04)), var(--surface); }
.event-date { display: flex; flex-direction: column; align-items: center; padding: var(--s-2) 0; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); line-height: 1; }
.event-date small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.event-date b { font: 800 1.9rem/1 var(--f-display); color: var(--mango); margin: 2px 0; }
.event-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.event-body b { font: 800 1.35rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; }
.event-body span { font-size: var(--fs-sm); color: var(--muted); }
.event-cta { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mango); white-space: nowrap; }
.event.is-selected .event-cta { color: var(--text); }
.day.is-event { border-color: var(--mango); background: rgba(245, 165, 36, 0.16); }
.day.is-event small { color: var(--mango-2); }
.day.is-event.is-selected small { color: var(--mango-ink); }
.lg-event { background: rgba(245, 165, 36, 0.35); border: 1px solid var(--mango); }
.ticket-event { color: var(--mango-2) !important; letter-spacing: 0.08em !important; text-align: right; max-width: 60%; }

/* ---------- Mapa ---------- */
.legend { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-2) var(--s-4); }
.legend li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); }
.legend b { display: block; font-weight: 700; line-height: 1.2; }
.legend small { color: var(--dim); font-size: var(--fs-xs); }
.legend em { font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); white-space: nowrap; }
.legend em.is-zero { color: var(--coral); }
.sw { width: 18px; height: 18px; border-radius: 4px; display: block; }
.sw.cat-booth { border-radius: 50%; }
.sw.cat-mesa { border-radius: 50%; }

.zone-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s-5); align-items: start; }
.guide { margin: 0; position: sticky; top: var(--s-5); }
.guide .sub { margin-bottom: var(--s-2); }
.map-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden; }
.map { display: block; width: 100%; height: auto; }
.map .tbl { cursor: pointer; transition: opacity 0.25s var(--ease); }
.map.has-sel .tbl:not(.is-zone) { opacity: 0.18; }
.map .tbl.is-zone .tbl-ring { stroke: #fff; stroke-width: 6; stroke-dasharray: none; }
.map .tbl.is-zone .tbl-shape { filter: brightness(1.15) drop-shadow(0 0 12px rgba(255, 196, 92, 0.8)); }
.zones.is-loading { opacity: 0.55; pointer-events: none; }
.zones .type.is-off { opacity: 0.45; }
.zones .type.is-off label { cursor: not-allowed; }
.zone-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.zone-title .sw { flex: none; }
.zones .type-zone { display: block; margin: 2px 0 0; }
.zone-badge { font-style: normal; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; padding: 0.2em 0.55em; border-radius: var(--r-sm); background: rgba(127, 212, 155, 0.12); color: var(--ok); white-space: nowrap; }
.zone-badge.is-low { background: rgba(232, 85, 58, 0.14); color: #ffb3a3; }
.zone-badge.is-zero { background: rgba(255, 122, 99, 0.12); color: var(--danger); }
.map-floor { fill: #17110d; }
.map-line { stroke: rgba(255, 214, 170, 0.35); stroke-width: 3; }
.map-word { font: 800 64px/1 var(--f-display); fill: rgba(255, 214, 170, 0.13); letter-spacing: 6px; }
.map-word--stage { font-size: 120px; fill: rgba(255, 214, 170, 0.1); letter-spacing: 12px; }
.map-dance { fill: rgba(255, 214, 170, 0.03); stroke: rgba(255, 214, 170, 0.55); stroke-width: 4; }
.map-bar { fill: rgba(232, 85, 58, 0.12); stroke: var(--coral); stroke-width: 3; }
.map-bar-text { font: 800 34px/1 var(--f-display); fill: var(--coral); letter-spacing: 6px; }
.map-wc { fill: none; stroke: rgba(255, 214, 170, 0.4); stroke-width: 2; }
.map-wc-text { font: 700 15px/1 var(--f-body); fill: rgba(255, 214, 170, 0.55); }
.map-small { font: 700 18px/1 var(--f-body); fill: rgba(255, 214, 170, 0.3); letter-spacing: 4px; }

.cat-x { --c: #e2bd62; --ink: #241a05; }
.cat-grand { --c: #f5a524; --ink: #1a0f04; }
.cat-medium { --c: #f0892c; --ink: #1a0f04; }
.cat-small { --c: #e46d38; --ink: #1a0b04; }
.cat-booth { --c: #120c09; --ink: #f6ece2; --ring: #d9473a; }
.cat-mesa { --c: #4c8a46; --ink: #f3fbef; }
.sw { background: var(--c); }
.sw.cat-booth { box-shadow: inset 0 0 0 3px var(--ring); }

.tbl { cursor: pointer; outline: none; }
.tbl-shape { fill: var(--c); transition: filter 0.2s var(--ease), opacity 0.2s; }
.tbl-ring { fill: none; stroke: transparent; stroke-width: 5; transition: stroke 0.2s; }
.cat-booth .tbl-ring { stroke: var(--ring); stroke-dasharray: 10 7; stroke-width: 6; }
.tbl text { fill: var(--ink); pointer-events: none; font-family: var(--f-body); }
.tbl-top { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.cat-mesa .tbl-top { font-size: 11px; }
.tbl-num { font: 800 24px/1 var(--f-display); }
.tbl-num--rect { font-size: 24px; letter-spacing: 1px; }
.tbl-num--rect.is-small { font-size: 17px; }
.tbl-x { stroke: transparent; stroke-width: 0; }
.tbl:hover:not(.is-taken):not(.is-off) .tbl-shape, .tbl:focus-visible .tbl-shape { filter: brightness(1.25); }
.tbl:hover:not(.is-taken):not(.is-off) .tbl-ring, .tbl:focus-visible .tbl-ring { stroke: rgba(255, 255, 255, 0.6); stroke-dasharray: none; }
.tbl.is-off { cursor: default; }
.tbl.is-off .tbl-shape { opacity: 0.55; }
.tbl.is-taken { cursor: not-allowed; }
.tbl.is-taken .tbl-shape { fill: #2b221c; }
.tbl.is-taken text { fill: #6f6055; }
.tbl.is-taken .tbl-ring { stroke: transparent; }
.tbl.is-taken .tbl-x { stroke: var(--coral); stroke-width: 4; stroke-linecap: round; }
.tbl.is-selected .tbl-ring { stroke: #fff; stroke-width: 6; stroke-dasharray: none; }
.tbl.is-selected .tbl-shape { filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 196, 92, 0.9)); }

.map-alt { margin-top: var(--s-4); max-width: 640px; }
.map-alt select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-size: var(--fs-md);
}
.map-alt select:disabled { color: var(--dim); }
.picked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--s-4);
  margin-top: var(--s-4);
  max-width: 640px;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--mango);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(245, 165, 36, 0.12), transparent 70%);
}
.picked .eyebrow { display: block; margin: 0 0 var(--s-1); }
.picked b { display: block; font: 800 2rem/1 var(--f-display); text-transform: uppercase; }
.picked small { color: var(--muted); font-size: var(--fs-sm); }
.picked dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); font-size: var(--fs-sm); align-content: center; }
.picked dt { color: var(--dim); }
.picked dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Panel: eventos ---------- */
.ev-admin { margin: var(--s-7) 0 var(--s-8); }
.ev-admin h2 { margin: 0 0 var(--s-2); font: 800 var(--fs-xl)/1 var(--f-display); text-transform: uppercase; }
.ev-admin > p { color: var(--muted); margin: 0 0 var(--s-5); font-size: var(--fs-sm); }
.ev-form { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--s-3) var(--s-4); padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); margin-bottom: var(--s-5); }
.ev-form .field--full { grid-column: 1 / -1; }
.ev-form .field input { background: var(--bg-2); }
.ev-form .row-actions { grid-column: 1 / -1; display: flex; gap: var(--s-3); flex-wrap: wrap; }
.ev-form .row-actions .btn { width: auto; min-height: 48px; font-size: 1.05rem; }
.ev-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.ev-row b { font: 800 1.2rem/1.1 var(--f-display); text-transform: uppercase; }
.ev-row .res-act .btn { min-height: 40px; }

/* Barra móvil (resumen colapsado) */
.mbar, .m-only { display: none; }

.skeleton { height: 96px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255, 214, 170, 0.04), transparent); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.foot { border-top: 1px solid var(--line); padding: var(--s-5) 0; color: var(--dim); font-size: var(--fs-xs); }
.foot .wrap { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- Páginas de estado (confirmación / pago demo) ---------- */
.center-page { min-height: calc(100vh - 110px); display: grid; align-items: center; padding-block: var(--s-7); }
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-7); align-items: center; }
.status-copy h1 { margin: 0; font: 800 var(--fs-hero)/0.9 var(--f-display); text-transform: uppercase; }
.status-copy h1 em { font-style: normal; color: var(--mango); }
.status-copy p { color: var(--muted); font-size: var(--fs-lg); max-width: 46ch; }
.code-big { font: 800 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--f-display); letter-spacing: 0.06em; color: var(--mango); margin: var(--s-3) 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

.mock-card { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s-4); background: var(--bg-2); font-size: var(--fs-sm); color: var(--muted); }
.mock-card .num { font: 600 1.125rem/1 ui-monospace, 'SFMono-Regular', Consolas, monospace; color: var(--text); letter-spacing: 0.12em; margin: var(--s-2) 0; }
.mock-card .row { display: flex; justify-content: space-between; }
.timer { font-variant-numeric: tabular-nums; color: var(--mango-2); font-weight: 700; }

/* ---------- Panel del club ---------- */
.admin-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding: var(--s-6) 0 var(--s-5); }
.admin-top h1 { margin: 0; font: 800 var(--fs-xl)/1 var(--f-display); text-transform: uppercase; }
.admin-top h1 span { color: var(--mango); }
.datebar { display: flex; align-items: center; gap: var(--s-2); }
.datebar input { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 0 var(--s-3); height: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-5); }
.stat { background: var(--bg-2); padding: var(--s-4); }
.stat small { display: block; color: var(--dim); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.stat b { font: 800 2.25rem/1.1 var(--f-display); }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-6); }
.inv-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); background: var(--surface); }
.inv-item header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.inv-item b { font: 800 1.25rem/1 var(--f-display); text-transform: uppercase; }
.inv-item .left { font-weight: 700; }
.inv-item .left.is-zero { color: var(--coral); }
.inv-item small { color: var(--dim); font-size: var(--fs-xs); }
.bar { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: var(--s-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--mango); }

.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.chip { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 0.4rem 0.9rem; font-size: var(--fs-sm); cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--mango); color: var(--mango-ink); border-color: var(--mango); font-weight: 700; }
.search { flex: 1 1 220px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 1rem; }

.rlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.res { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-2); border-bottom: 1px solid var(--line); }
.res.is-cancelled { opacity: 0.45; }
.res-code { font: 800 1.125rem/1 var(--f-display); letter-spacing: 0.06em; color: var(--mango-2); }
.res-name { font-weight: 700; }
.res-sub { color: var(--muted); font-size: var(--fs-sm); }
.res-sub a { color: var(--muted); }
.res-notes { color: var(--dim); font-size: var(--fs-xs); font-style: italic; margin-top: 2px; }
.res-act { display: flex; gap: var(--s-2); justify-content: flex-end; align-items: center; }
.res-act .btn { min-height: 44px; width: auto; font-size: 1rem; padding: 0 var(--s-4); }
.badge { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3em 0.6em; border-radius: var(--r-sm); white-space: nowrap; }
.badge--confirmed { background: rgba(245, 165, 36, 0.14); color: var(--mango-2); }
.badge--checked_in { background: rgba(127, 212, 155, 0.14); color: var(--ok); }
.badge--hold { background: rgba(255, 214, 170, 0.08); color: var(--muted); }
.badge--cancelled { background: rgba(255, 122, 99, 0.12); color: var(--danger); }
.empty { padding: var(--s-7) 0; text-align: center; color: var(--dim); }


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .book { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-6); }
  .status-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); }
  .res { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .res-type { grid-column: 2; }
  .res-act { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 768px) {
  .hero { padding: var(--s-6) 0 var(--s-5); }
  .book { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
  .book .ticket { display: none; }
  .m-only { display: block; margin: 0 0 140px; }
  .ev-form { grid-template-columns: minmax(0, 1fr); }
  .ev-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ev-row > span:first-child { grid-column: 1 / -1; }
  .step { padding-left: 0; padding-bottom: var(--s-6); }
  .step::before { display: none; }
  .step-n { position: static; width: 36px; height: 36px; font-size: 1rem; margin-bottom: var(--s-3); }
  .mbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
    background: rgba(20, 14, 10, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-strong);
  }
  .mbar-info { flex: 1; min-width: 0; }
  .mbar-info small { display: block; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-info b { font: 800 1.75rem/1 var(--f-display); }
  .mbar .btn { width: auto; min-height: 48px; font-size: 1.05rem; }
  .status-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); }
  .res-code { grid-column: 1 / -1; }
  .res-act { grid-column: 1 / -1; justify-content: flex-start; }
  .res-act .btn { flex: 1; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .type label { grid-template-columns: 22px minmax(0, 1fr); align-items: start; padding: var(--s-4) var(--s-1); }
  .type input { margin-top: 2px; }
  .type-price { grid-column: 2; text-align: left; display: flex; gap: var(--s-2); align-items: baseline; }
  .type-zone { display: block; margin: var(--s-1) 0 0; }
  .stepper button { width: 56px; }
  .cal-grid { gap: 4px; }
  .day { font-size: 1rem; }
  .day small { font-size: 0.55rem; }
  .legend { grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-3); }
  .legend li { grid-template-columns: 14px minmax(0, 1fr); font-size: var(--fs-xs); }
  .legend em { grid-column: 2; }
  .sw { width: 14px; height: 14px; }
  .event { grid-template-columns: 56px minmax(0, 1fr); }
  .event-cta { display: none; }
  .datebar { width: 100%; }
  .datebar input { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Zonas: en pantallas medianas y celular, el mapa-guía va arriba y entero (sin desplazamiento lateral). */
@media (max-width: 1024px) {
  .zone-layout { grid-template-columns: minmax(0, 1fr); }
  .guide { position: static; order: -1; max-width: 460px; }
}
@media (max-width: 768px) {
  .guide { max-width: none; }
}
@media (max-width: 420px) {
  .zones .type-price { grid-column: 2; }
}
.assign { margin-top: var(--s-2); width: 100%; max-width: 240px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 0.45rem 0.6rem; font-size: var(--fs-sm); }
.assign:focus { outline: none; border-color: var(--mango); }
@media (max-width: 768px) {
  .res-type { grid-column: 1 / -1; }
  .res-act { grid-row: auto; }
  .assign { max-width: none; }
}
/* Tarjetas de zona compactas (precio debajo) para dejar espacio al mapa-guía. */
.zones .type label { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: var(--s-3) var(--s-4); }
.zones .type input { margin-top: 4px; }
.zones .type-price { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: var(--s-2); }
.zones .type-price small { display: inline; }
.zones .type-price strong { font-size: 1.75rem; }

/* Logo completo en la portada */
.hero { position: relative; }
.hero-logo { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: clamp(170px, 16vw, 230px); height: auto; filter: drop-shadow(0 18px 40px rgba(245, 165, 36, 0.25)); }
@media (max-width: 1024px) {
  .hero-logo { position: static; transform: none; display: block; width: 140px; margin: 0 0 var(--s-5); }
}
@media (max-width: 420px) {
  .hero-logo { width: 112px; }
  .brand-mark { height: 34px; }
}
@media (max-width: 768px) {
  .hero-logo { display: none; }
}

/* ---------- Entrada al panel: video del banner de fondo ---------- */
.login-screen { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--s-5) var(--gutter); overflow-y: auto; background: var(--bg); }
.login-screen[hidden] { display: none; }
body.is-login { overflow: hidden; }
body.is-login .top { display: none; }
.login-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.login-shade {
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(13, 9, 7, 0.35), rgba(13, 9, 7, 0.82) 100%),
    linear-gradient(180deg, rgba(13, 9, 7, 0.55), rgba(13, 9, 7, 0.25) 40%, rgba(13, 9, 7, 0.85));
}
.login {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  margin: auto;
  padding: var(--s-6) var(--s-6) var(--s-5);
  text-align: center;
  background: rgba(16, 11, 8, 0.58);
  border: 1px solid rgba(255, 214, 170, 0.18);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(245, 165, 36, 0.06) inset;
}
.login-logo { display: block; width: min(280px, 100%); height: auto; margin: 0 auto var(--s-5); filter: drop-shadow(0 14px 30px rgba(245, 165, 36, 0.3)); }
.login .eyebrow { margin-bottom: var(--s-2); }
.login h1 { font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; margin: 0 0 var(--s-2); }
.login > p { color: var(--muted); margin: 0 0 var(--s-5); font-size: var(--fs-sm); }
.login .field { margin-bottom: var(--s-4); text-align: left; }
.login .field input { background: rgba(13, 9, 7, 0.7); }
.login .alert { text-align: left; }
.login-foot { display: block; margin-top: var(--s-4); color: var(--dim); font-size: var(--fs-xs); }
@media (max-width: 420px) {
  .login { padding: var(--s-5) var(--s-4) var(--s-4); }
  .login-logo { width: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-video { display: none; }
}

/* ---------- Fotos de eventos ---------- */
.event.has-img { grid-template-columns: 132px minmax(0, 1fr) auto; padding-left: var(--s-2); }
.event-media { position: relative; display: block; width: 132px; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.event-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.event:hover .event-media img { transform: scale(1.04); }
.event-media .event-date { position: absolute; left: 6px; bottom: 6px; padding: 4px 8px; background: rgba(13, 9, 7, 0.82); border-color: rgba(255, 214, 170, 0.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.event-media .event-date b { font-size: 1.35rem; margin: 1px 0; }
.event-media .event-date small { font-size: 0.6rem; }
@media (max-width: 420px) {
  .event.has-img { grid-template-columns: 96px minmax(0, 1fr); }
  .event-media { width: 96px; }
}

/* Panel: elegir foto */
.photo-pick { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.photo-thumb { width: 160px; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; border: 1px dashed var(--line-strong); background: var(--bg-2); display: grid; place-items: center; flex: none; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb span { font-size: var(--fs-xs); color: var(--dim); }
.photo-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); flex: 1 1 220px; }
.field .photo-btn { min-height: 44px; font: 800 1rem/1 var(--f-display); letter-spacing: 0.08em; color: var(--text); cursor: pointer; }
.field .photo-btn:hover { color: var(--mango); }
#evPhoto:focus-visible + * , .photo-actions:focus-within .photo-btn { border-color: var(--mango); }
.photo-msg { flex-basis: 100%; color: var(--dim); font-size: var(--fs-xs); }
.ev-info { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.ev-thumb { width: 72px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; flex: none; }
.ev-thumb--empty { display: grid; place-items: center; background: var(--bg-2); border: 1px dashed var(--line); font-size: 0.65rem; color: var(--dim); }

/* Logo horizontal oficial en el menú */
.brand-logo { display: block; height: 40px; width: auto; flex: none; }
@media (max-width: 420px) {
  .brand-logo { height: 32px; }
}

/* ---------- Panel: período y rango de fechas ---------- */
.datebar { flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); }
.drange { display: flex; align-items: flex-end; gap: var(--s-2); flex-wrap: wrap; }
.dfield { display: flex; flex-direction: column; gap: 4px; }
.dfield > span { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dfield > span i { font-style: normal; font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--dim); }
.dfield input, .period { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 0 var(--s-3); height: 40px; color: var(--text); }
.period { padding-right: var(--s-6); min-width: 150px; font-weight: 700; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23f5a524' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.period:focus, .dfield input:focus { outline: none; border-color: var(--mango); }
.icon-btn--sm { width: 32px; height: 40px; }
.day-head { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-5) var(--s-2) var(--s-2); border-bottom: 1px solid var(--line-strong); }
.day-head b { font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; color: var(--mango-2); }
.day-head span { font-size: var(--fs-sm); color: var(--muted); }
.day-head em { margin-left: auto; font-style: normal; font-size: var(--fs-xs); color: var(--dim); }
@media (max-width: 768px) {
  .datebar { width: 100%; }
  .dfield--period, .dfield--period .period { width: 100%; }
  .drange { width: 100%; }
  .drange .dfield { flex: 1 1 120px; }
  .drange .dfield input { width: 100%; }
}
@media (max-width: 768px) {
  .drange .dfield { order: -1; flex: 1 1 calc(50% - var(--s-2)); min-width: 0; }
  .drange .icon-btn { flex: none; }
}

/* =========================================================
   Portada dinámica: video del club + título animado + próximo evento
   ========================================================= */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: min(92vh, 820px);
  background:
    radial-gradient(80% 70% at 75% 40%, rgba(245, 165, 36, 0.16), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(232, 85, 58, 0.18), transparent 60%),
    #120c09;
}
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 8s var(--ease); }
.stage-video.is-on { opacity: 1; transform: scale(1); }
.stage-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 9, 7, 0.94) 0%, rgba(13, 9, 7, 0.72) 42%, rgba(13, 9, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(13, 9, 7, 0.7) 0%, rgba(13, 9, 7, 0) 22%, rgba(13, 9, 7, 0) 62%, var(--bg) 100%);
}
.stage-glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: -25vmax; bottom: -40vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 165, 36, 0.22), transparent);
  filter: blur(10px); animation: glow-drift 14s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glow-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(12vmax, -6vmax) scale(1.15); } }

.top--over { background: linear-gradient(180deg, rgba(13, 9, 7, 0.75), rgba(13, 9, 7, 0)); border-bottom: 1px solid rgba(255, 214, 170, 0.08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.stage .banner { background-color: rgba(13, 9, 7, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.stage .hero {
  flex: 1; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-7); align-items: center;
  padding: var(--s-7) var(--gutter) var(--s-8);
}
.stage .hero h1 { font: 800 clamp(3.2rem, 1.4rem + 6.4vw, 7.5rem)/0.86 var(--f-display); max-width: 11ch; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.stage .hero h1 span, .stage .hero h1 em { display: inline-block; }
.stage .hero h1 em { font-style: normal; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(245, 165, 36, 0.35)); }
.stage .hero .eyebrow { color: var(--mango-2); }
.hero-lead { color: rgba(246, 236, 226, 0.82) !important; font-size: var(--fs-lg); max-width: 46ch; margin: var(--s-5) 0 0 !important; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-cta .btn { min-height: 58px; padding: 0 var(--s-6); }
.hero-cta .btn:not(.btn--ghost) { box-shadow: 0 14px 40px -12px rgba(245, 165, 36, 0.7); }
.hero-cta .btn--ghost { background: rgba(13, 9, 7, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-facts { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-4) 0; }
.hero-facts li { padding: 0 var(--s-5); border-left: 1px solid rgba(255, 214, 170, 0.22); display: flex; flex-direction: column; gap: 2px; }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; }
.hero-facts span { font-size: var(--fs-xs); color: var(--muted); }

/* Tarjeta del próximo evento */
.next-event {
  align-self: center; overflow: hidden; border-radius: 18px;
  background: rgba(20, 14, 10, 0.62); border: 1px solid rgba(255, 214, 170, 0.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}
.next-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgba(245, 165, 36, 0.35), rgba(232, 85, 58, 0.25) 60%, #1b130e); overflow: hidden; }
.next-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 9, 7, 0.85)); }
.next-tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.4em 0.7em; border-radius: 999px; background: var(--mango); color: var(--mango-ink); }
.next-date { position: absolute; left: 16px; bottom: 12px; z-index: 1; display: flex; align-items: baseline; gap: 8px; }
.next-date b { font: 800 3rem/0.9 var(--f-display); color: #fff; }
.next-date span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mango-2); }
.next-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.next-body h2 { margin: 0; font: 800 1.75rem/1 var(--f-display); text-transform: uppercase; }
.next-body p { margin: var(--s-2) 0 var(--s-4); color: var(--muted); font-size: var(--fs-sm); }
.next-body .btn { min-height: 50px; font-size: 1.05rem; }
.next-more { display: block; margin-top: var(--s-3); text-align: center; font-size: var(--fs-xs); color: var(--muted); }

/* Indicador para bajar */
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 214, 170, 0.45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mango); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Entrada escalonada */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

main.wrap { position: relative; }
.stage + main .book { padding-top: var(--s-6); }

@media (max-width: 1024px) {
  .stage .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-bottom: var(--s-8); }
  .next-event { max-width: 460px; width: 100%; }
}
@media (max-width: 768px) {
  .stage { min-height: 0; }
  .stage-shade { background: linear-gradient(180deg, rgba(13, 9, 7, 0.78) 0%, rgba(13, 9, 7, 0.55) 40%, rgba(13, 9, 7, 0.8) 75%, var(--bg) 100%); }
  .stage .hero { padding: var(--s-6) var(--gutter) var(--s-7); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: var(--s-6); }
  .hero-facts li { padding: 0 var(--s-3); }
  .hero-facts b { font-size: 1.1rem; }
  .next-event { max-width: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 420px) {
  .hero-facts li { flex: 1 1 33%; padding: 0 var(--s-2); }
  .hero-facts span { font-size: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .stage-video, .stage-glow, .scroll-cue span { display: none; }
}
.stage .hero .eyebrow { font-size: var(--fs-xs); margin: 0 0 var(--s-4); max-width: none; letter-spacing: 0.26em; }
.stage .next-body p { max-width: none; font-size: var(--fs-sm); margin: var(--s-2) 0 var(--s-4); }
@media (max-width: 768px) {
  .next-event { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .next-media { aspect-ratio: auto; min-height: 100%; }
  .next-tag { top: 8px; left: 8px; font-size: 0.55rem; padding: 0.35em 0.55em; }
  .next-date { left: 10px; bottom: 8px; flex-direction: column; gap: 2px; }
  .next-date b { font-size: 2.1rem; }
  .next-date span { font-size: 0.6rem; }
  .next-body { padding: var(--s-3) var(--s-4) var(--s-4); }
  .next-body h2 { font-size: 1.3rem; }
  .stage .next-body p { margin: 4px 0 var(--s-3); font-size: var(--fs-xs); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .next-body .btn { min-height: 44px; font-size: 0.95rem; }
  .next-more { margin-top: var(--s-2); }
}

/* ---------- Panel: usuarios y roles ---------- */
.who-nav { display: flex; align-items: center; gap: var(--s-3); }
.who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.who b { font-size: var(--fs-sm); }
.who small { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mango-2); }
.us-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.us-row.is-off { opacity: 0.5; }
.us-who { display: flex; flex-direction: column; }
.us-row .res-act .btn { min-height: 40px; }
.ev-form .us-active { grid-column: 1 / -1; margin-top: 0; }
.res-arrived { margin-top: 4px; font-size: var(--fs-xs); color: var(--ok); font-weight: 600; }
.res-table { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.res-table b { color: var(--mango-2); }
/* Mesero: la lista ocupa todo el ancho y los botones son grandes para la puerta */
.role-mesero .res-act .btn { min-height: 52px; min-width: 120px; font-size: 1.1rem; }
@media (max-width: 768px) {
  .us-row { grid-template-columns: minmax(0, 1fr) auto; }
  .us-row > span:nth-child(3) { grid-column: 1 / -1; }
  .us-row .res-act { grid-column: 1 / -1; }
  .who { display: none; }
}

/* ---------- Panel: menú superior (solo administrador) ---------- */
.admin-nav { display: flex; align-items: stretch; gap: var(--s-1); margin: 0 auto 0 var(--s-6); align-self: stretch; }
.admin-nav a {
  position: relative; display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--s-4); color: var(--muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.04em; transition: color 0.2s var(--ease);
}
.admin-nav a:hover { color: var(--text); }
.admin-nav a[aria-current="page"] { color: var(--mango-2); }
.admin-nav a[aria-current="page"]::after { content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mango); box-shadow: 0 0 14px rgba(245, 165, 36, 0.6); }
.admin-nav svg { flex: none; }
.nav-count { font-style: normal; font-size: 0.6875rem; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(245, 165, 36, 0.16); color: var(--mango-2); }
.nav-count:empty { display: none; }
.top .wrap { min-height: 68px; }

.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding: var(--s-6) 0 var(--s-4); }
.view-head h1 { margin: 0; font: 800 var(--fs-xl)/1 var(--f-display); text-transform: uppercase; }
.view-head h1 span { color: var(--mango); }
.view-head .btn { min-height: 50px; }
.view-intro { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--s-5); max-width: 70ch; }
.ev-admin.view { margin-top: 0; }

/* ---------- Vista de usuarios ---------- */
.us-stats { margin-bottom: var(--s-5); }
.us-panel { border: 1px solid var(--mango); border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(245, 165, 36, 0.08), transparent 60%), var(--surface); padding: var(--s-5); margin-bottom: var(--s-6); scroll-margin-top: var(--s-5); }
.us-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.us-panel-head h2 { margin: 0; font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; }
.us-panel .ev-form { padding: 0; border: 0; background: none; margin: 0; }
.role-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.role-pick legend { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.role-opt { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-2); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.role-opt:has(input:checked) { border-color: var(--mango); background: rgba(245, 165, 36, 0.08); }
.role-opt input { margin: 3px 0 0; accent-color: var(--mango); width: 18px; height: 18px; }
.role-opt b { display: block; }
.role-opt small { color: var(--muted); font-size: var(--fs-xs); }

.us-grid { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-4); }
.us-grid .empty { grid-column: 1 / -1; }
.us-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); transition: border-color 0.2s, transform 0.2s var(--ease); }
.us-card:hover { border-color: rgba(245, 165, 36, 0.45); }
.us-card.is-off { opacity: 0.55; }
.us-top { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.us-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 1.25rem/1 var(--f-display); letter-spacing: 0.04em; background: rgba(127, 212, 155, 0.14); color: var(--ok); border: 1px solid rgba(127, 212, 155, 0.35); }
.us-avatar.is-admin { background: rgba(245, 165, 36, 0.16); color: var(--mango-2); border-color: rgba(245, 165, 36, 0.45); }
.us-id { display: flex; flex-direction: column; min-width: 0; }
.us-id b { font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-id b em { font-style: normal; font-weight: 600; color: var(--muted); font-size: var(--fs-sm); }
.us-id span { color: var(--dim); font-size: var(--fs-sm); }
.us-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.us-last { margin: 0; color: var(--dim); font-size: var(--fs-xs); }
.us-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.us-actions .btn { width: auto; min-height: 40px; padding: 0 var(--s-4); font-size: 0.95rem; flex: 1 1 auto; }
.btn--danger:hover:not(:disabled) { border-color: var(--danger) !important; color: var(--danger) !important; }

@media (max-width: 1024px) {
  .admin-nav { margin-left: var(--s-4); }
  .admin-nav a { padding: 0 var(--s-3); }
}
@media (max-width: 768px) {
  .top .wrap { flex-wrap: wrap; row-gap: 0; }
  .admin-nav { order: 3; width: 100%; margin: 0; border-top: 1px solid var(--line); justify-content: space-between; }
  .admin-nav a { flex: 1; justify-content: center; padding: var(--s-3) var(--s-2); font-size: var(--fs-xs); flex-direction: column; gap: 4px; }
  .admin-nav a[aria-current="page"]::after { left: 20%; right: 20%; }
  .nav-count { position: absolute; top: 6px; right: calc(50% - 26px); }
  .role-pick { grid-template-columns: 1fr; }
  .view-head .btn { width: 100%; }
}
.field .role-opt { text-transform: none; letter-spacing: normal; font-size: var(--fs-sm); font-weight: 400; color: var(--text); }
.field .role-opt b { font-weight: 700; }

/* ---------- Descargas ---------- */
.export-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-3); }
.export-note { margin-right: auto; font-size: var(--fs-xs); color: var(--dim); }
.export-bar .btn { min-height: 42px; font-size: 1rem; padding: 0 var(--s-4); }

/* ---------- Actividad ---------- */
.lg-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); margin-bottom: var(--s-4); }
.lg-filters .period { min-width: 200px; }
.lg-quick { display: flex; gap: var(--s-2); align-items: center; height: 40px; }
.lg-summary { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.lg-list { list-style: none; margin: 0 0 var(--s-8); padding: 0; }
.lg-day { padding: var(--s-5) var(--s-2) var(--s-2); font: 800 1.2rem/1 var(--f-display); text-transform: uppercase; color: var(--mango-2); border-bottom: 1px solid var(--line-strong); }
.lg-row { display: grid; grid-template-columns: 76px minmax(160px, 220px) 150px minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.lg-row time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-sm); }
.lg-who { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.lg-who b { display: block; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-who small { color: var(--dim); font-size: var(--fs-xs); }
.us-avatar--sm { width: 32px; height: 32px; font-size: 0.85rem; }
.lg-detail { font-size: var(--fs-sm); color: var(--text); }
.lg-tag { justify-self: start; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35em 0.6em; border-radius: var(--r-sm); white-space: nowrap; background: rgba(255, 214, 170, 0.08); color: var(--muted); }
.lg-tag--access { background: rgba(120, 170, 255, 0.12); color: #a9c6ff; }
.lg-tag--fail { background: rgba(255, 122, 99, 0.14); color: var(--danger); }
.lg-tag--checkin { background: rgba(127, 212, 155, 0.14); color: var(--ok); }
.lg-tag--cancel { background: rgba(232, 85, 58, 0.14); color: #ffb3a3; }
.lg-tag--table { background: rgba(245, 165, 36, 0.14); color: var(--mango-2); }
.lg-tag--event { background: rgba(226, 189, 98, 0.14); color: #ecd28e; }
.lg-tag--user { background: rgba(190, 150, 255, 0.12); color: #d2bcff; }
@media (max-width: 1024px) {
  .lg-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .lg-detail { grid-column: 2 / -1; }
}
@media (max-width: 768px) {
  .lg-filters .dfield { flex: 1 1 calc(50% - var(--s-3)); }
  .lg-filters .period, .lg-filters input { width: 100%; min-width: 0; }
  .lg-row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); }
  .lg-row time { grid-column: 1 / -1; font-size: var(--fs-xs); }
  .lg-detail { grid-column: 1 / -1; }
  .export-note { flex-basis: 100%; }
  .export-bar .btn { flex: 1; }
}

/* Precios propios de un evento (panel) */
.ev-prices { border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 14px 16px 16px; margin: 0; min-width: 0; }
.ev-prices legend { padding: 0 6px; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.ev-price { display: grid; gap: 4px; font-size: .85rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.ev-price input { width: 100%; min-width: 0; }
