/* ==========================================================================
   Flujo de reserva y ticket
   ========================================================================== */

.booking { padding: calc(var(--header-h) + 36px) 0 120px; }
.booking .container { max-width: 1400px; }
.booking-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.booking-top h1 { font-size: clamp(42px, 6vw, 72px); }
.booking-top p { margin: 8px 0 0; color: var(--muted); max-width: 520px; }

.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); transition: all 0.4s var(--ease); }
.steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 16px; letter-spacing: 0; }
.steps li.is-active { color: var(--ink); border-color: var(--gold); background: rgba(201, 164, 92, 0.08); }
.steps li.is-active span { background: var(--gold); color: #120e07; border-color: var(--gold); }
.steps li.is-done { color: var(--muted); cursor: pointer; }
.steps li.is-done span { color: var(--gold); border-color: var(--gold); }
@media (max-width: 760px) {
  .steps { width: 100%; }
  .steps li { flex: 1; justify-content: center; padding: 6px; }
  .steps li b { display: none; }
}

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
@media (max-width: 1080px) { .booking-layout { grid-template-columns: 1fr; } }

.panel { display: none; animation: panelIn 0.7s var(--ease); }
.panel.is-active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.panel-title h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 0; line-height: 1.1; }
.panel-title small { color: var(--muted); font-size: 13.5px; }
.block + .block { margin-top: 44px; }

/* Experiencias */
.exp-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.exp-option { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
.exp-option:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.exp-option.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 50px -20px rgba(201, 164, 92, 0.45); }
.exp-option .thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.exp-option .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.exp-option .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(22, 19, 15, 0.9)); }
.exp-option .info { padding: 14px 18px 18px; display: grid; gap: 4px; }
.exp-option .kind { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.exp-option h3 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.05; }
.exp-option .meta { color: var(--muted); font-size: 13px; }
.exp-option .tick { position: absolute; top: 12px; right: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #120e07; transform: scale(0); transition: transform 0.4s var(--ease); }
.exp-option.is-selected .tick { transform: scale(1); }
.exp-option .tick svg { width: 16px; }

/* Fechas */
.dates { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--gold-3) transparent; }
.date-chip { flex: none; scroll-snap-align: start; width: 84px; padding: 14px 6px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; justify-items: center; gap: 2px; cursor: pointer; line-height: 1; transition: all 0.3s var(--ease); }
.date-chip small { font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); font-weight: 700; }
.date-chip b { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 6px 0 4px; }
.date-chip span { font-size: 10.5px; letter-spacing: 0.2em; color: var(--dim); font-weight: 600; }
.date-chip em { font-style: normal; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 6px; font-weight: 700; }
.date-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.date-chip.is-selected { background: var(--gold); border-color: var(--gold); color: #120e07; }
.date-chip.is-selected small, .date-chip.is-selected span, .date-chip.is-selected em { color: #3a2c12; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.time-chip { min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: var(--serif); font-size: 22px; transition: all 0.3s var(--ease); }
.time-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.time-chip.is-selected { background: var(--gold); border-color: var(--gold); color: #120e07; }
.empty { padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Zona + personas */
.zone-step { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .zone-step { grid-template-columns: 1fr; } }
.zone-step .floor { max-height: none; }
.zone-cards { display: grid; gap: 12px; }
.zone-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); width: 100%; }
.zone-card:hover, .zone-card.is-hover { border-color: var(--line-strong); }
.zone-card.is-selected { border-color: var(--gold); background: linear-gradient(135deg, rgba(201, 164, 92, 0.12), rgba(201, 164, 92, 0.02)); }
.zone-card[disabled] { opacity: 0.45; cursor: not-allowed; }
.zone-card .zone-swatch { margin-top: 8px; }
.zone-card h4 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.05; }
.zone-card p { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zone-card .feat { display: block; margin-top: 6px; font-size: 12px; color: #cfc6b6; }
.zone-card .zp { text-align: right; line-height: 1.1; }
.zone-card .zp b { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--gold-2); }
.zone-card .zp small { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.avail::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.avail.available { color: var(--ok); }
.avail.few { color: #e9b45a; }
.avail.soldout, .avail.unavailable { color: var(--danger); }

.qty { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.qty h4 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.qty p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; color: var(--gold-2); transition: background 0.2s; }
.stepper button:hover { background: rgba(201, 164, 92, 0.14); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; background: none; }
.stepper output { min-width: 42px; text-align: center; font-family: var(--serif); font-size: 28px; }


.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.back { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; transform: rotate(180deg); }

/* Resumen */
.summary { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; box-shadow: var(--shadow); }
.summary-media { height: 130px; position: relative; overflow: hidden; background: #000; }
.summary-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0.4; filter: blur(1px); }
.summary-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--surface-2)); }
.summary-media .eyebrow { position: absolute; left: 22px; bottom: 14px; z-index: 1; }
.summary-body { padding: 6px 24px 24px; }
.summary h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.05; }
.summary dl { margin: 0; display: grid; gap: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary dd.muted { color: var(--dim); font-weight: 500; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.summary .total span { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.summary .total b { font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--gold-2); }
.secure { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.secure svg { width: 18px; color: var(--gold); flex: none; }
@media (max-width: 1080px) { .summary { display: none; } }

/* Barra inferior móvil */
.bottom-bar { position: fixed; z-index: 46; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: rgba(10, 9, 8, 0.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); }
.bottom-bar .bb-info { line-height: 1.2; min-width: 0; }
.bottom-bar small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-bar b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--gold-2); }
@media (max-width: 1080px) { .bottom-bar { display: flex; } .booking .step-actions .btn-next { display: none; } }

.loading { position: relative; pointer-events: none; }
.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #120e07; animation: spin 0.8s linear infinite; }
.loading > * { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ticket de confirmación ---------- */
.ticket-wrap { padding: calc(var(--header-h) + 50px) 0 120px; }
.ticket-head { text-align: center; display: grid; justify-items: center; gap: 16px; margin-bottom: 40px; }
.ticket-head h1 { font-size: clamp(42px, 6vw, 76px); }
.ticket-head p { margin: 0; color: var(--muted); max-width: 560px; }
.state-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); background: radial-gradient(circle, rgba(201, 164, 92, 0.2), transparent 70%); }
.state-icon svg { width: 32px; height: 32px; }
.state-icon.ok { animation: pop 0.9s var(--ease); }
.state-icon.warn { border-color: #e9b45a; color: #e9b45a; }
.state-icon.bad { border-color: var(--danger); color: var(--danger); background: radial-gradient(circle, rgba(224, 113, 95, 0.18), transparent 70%); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

.ticket { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 230px; border-radius: 24px; background: linear-gradient(135deg, #1e1a14, #14110d); border: 1px solid var(--line-strong); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ticket::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 0%, rgba(201, 164, 92, 0.16), transparent 50%); pointer-events: none; }
.ticket-main { padding: 34px 36px; display: grid; gap: 24px; position: relative; }
.ticket-main .brandline { display: flex; justify-content: space-between; align-items: center; }
.ticket-main .brandline img { height: 18px; width: auto; }
.ticket-main h2 { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
.ticket-grid small { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.ticket-grid b { font-weight: 600; font-size: 15px; }
.ticket-stub { position: relative; border-left: 2px dashed var(--line-strong); padding: 34px 24px; display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.ticket-stub::before { top: -15px; }
.ticket-stub::after { bottom: -15px; }
.ticket-stub small { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ticket-code { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); letter-spacing: 0.06em; color: var(--gold-2); line-height: 1; white-space: nowrap; }
.ticket-total b { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.barcode { width: 150px; height: 46px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: 0.7; border-radius: 2px; }
@media (max-width: 680px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: 1fr 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--line-strong); }
  .ticket-stub::before, .ticket-stub::after { top: -15px; bottom: auto; }
  .ticket-stub::before { left: -15px; }
  .ticket-stub::after { left: auto; right: -15px; }
  .ticket-main { padding: 26px 22px; }
}
.ticket-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.ticket-rules { max-width: 760px; margin: 60px auto 0; }
.ticket-rules h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 8px; }

@media print {
  .site-header, .site-footer, .wa-float, .ticket-actions, .ticket-rules, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .ticket { box-shadow: none; }
}
