/* El Sarao Pub · reservar mesa y política de datos. Se carga después de menu.css y usa sus tokens.
   El protagonista es el plano: la sala vista desde arriba, el escenario bajo su luz y las mesas de
   la zona elegida que se encienden como luces de tarima. Lo demás se queda quieto. */

.rv {
  --alert: #FF2600;
  --field: #0F1820;
}

/* ---------- Cabecera ---------- */
.rv-top {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 6px;
}
.rv-logo img { width: 104px; height: auto; }
.rv-toplink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(244, 239, 248, .16); text-decoration: none; font-weight: 500; font-size: 15px;
}
.rv-toplink:hover { background: var(--night-3); }

.rv-main { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) calc(40px + env(safe-area-inset-bottom)); outline: none; }

.rv-hero { padding: 26px 0 22px; display: grid; gap: 10px; }
.rv-title {
  font: 900 clamp(54px, 15vw, 96px)/.86 var(--display);
  text-transform: uppercase; letter-spacing: -.005em;
}
.rv-fee {
  justify-self: start; max-width: 38rem;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: rgba(255, 38, 0, .1); border: 1px solid rgba(255, 38, 0, .45);
  font-size: 15px; line-height: 1.45;
}
.rv-fee strong { color: var(--paper); }

.rv-h2 { font: 800 clamp(28px, 7vw, 36px)/1.06 var(--display); text-transform: uppercase; letter-spacing: .005em; outline: none; }
.rv-h3 { font: 600 16px/1.3 var(--body); margin: 26px 0 10px; }
.rv-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.rv-note strong { color: var(--paper); }
.rv-loading { color: var(--muted); padding: 24px 0; }
.rv-link { color: var(--crown); text-underline-offset: 3px; font-weight: 500; }
.rv-error {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px;
  background: rgba(255, 38, 0, .12); border: 1px solid rgba(255, 38, 0, .45);
}
.rv-card { margin-top: 8px; padding: 22px 20px; border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.rv-closed { justify-items: start; }

/* ---------- Botones ---------- */
.rv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; font: 600 16px/1.1 var(--body); text-align: center;
  transition: background .2s, transform .1s, opacity .2s;
}
.rv-btn:active { transform: translateY(1px); }
.rv-btn:disabled { opacity: .45; cursor: not-allowed; }
.rv-btn-primary { background: var(--crown); color: var(--night); }
.rv-btn-primary:not(:disabled):hover { background: #FFC933; }
.rv-btn-ghost { background: transparent; border-color: rgba(244, 239, 248, .18); color: var(--paper); }
.rv-btn-ghost:hover { background: var(--night-3); }
.rv-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.rv-actions .rv-btn-primary { flex: 0 1 220px; }

/* ---------- Pasos ---------- */
.rv-steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  counter-reset: step; margin-bottom: 26px;
}
.rv-steps li {
  counter-increment: step; display: grid; gap: 8px; font-size: 13px; color: var(--faint);
  padding-top: 10px; border-top: 3px solid var(--night-3);
}
.rv-steps li span::before { content: counter(step) " · "; font-variant-numeric: tabular-nums; }
.rv-steps li.is-done { color: var(--muted); border-top-color: rgba(248, 184, 0, .45); }
.rv-steps li.is-current { color: var(--paper); font-weight: 600; border-top-color: var(--crown); }

/* ---------- Paso 1: mesa o local completo ---------- */
.rv-kind { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-bottom: 26px; }
.rv-kind-opt {
  display: grid; gap: 4px; text-align: left; padding: 16px 18px; min-height: 72px; cursor: pointer;
  border-radius: var(--r-md); background: var(--night-2); border: 2px solid var(--line);
}
.rv-kind-opt:hover { border-color: rgba(248, 184, 0, .45); }
.rv-kind-opt[aria-checked="true"] { border-color: var(--crown); background: color-mix(in srgb, var(--crown) 10%, var(--night-2)); }
.rv-kind-t { font: 800 26px/1 var(--display); text-transform: uppercase; }
.rv-kind-d { font-size: 14px; color: var(--muted); }
.rv-private-info {
  margin-bottom: 24px; padding: 16px 18px; border-radius: var(--r-md);
  background: color-mix(in srgb, #6B4DFF 14%, var(--night-2)); border: 1px solid rgba(154, 133, 255, .45);
}
.rv-private-info .rv-policy-title { color: #B9AAFF; }
.rv-private-info ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.rv-private-info strong { color: var(--paper); }
.rv-month { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.rv-month-name { font: 800 26px/1 var(--display); text-transform: uppercase; }
.rv-month .rv-round:disabled { opacity: .3; }
.rv-date-fee { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-date[aria-pressed="true"] .rv-date-fee { color: var(--night); }
.rv-form textarea {
  padding: 12px 14px; border-radius: var(--r-sm); width: 100%; resize: vertical;
  background: var(--field); border: 1px solid rgba(244, 239, 248, .16); color: var(--paper); font: 400 16px/1.4 var(--body);
}
.rv-form textarea:focus { outline: none; border-color: var(--crown); box-shadow: 0 0 0 3px rgba(248, 184, 0, .2); }
.rv-form input[type="number"] {
  min-height: 52px; padding: 0 14px; border-radius: var(--r-sm); width: 100%;
  background: var(--field); border: 1px solid rgba(244, 239, 248, .16); color: var(--paper); font: 400 16px/1.2 var(--body);
}

/* ---------- Paso 1: noche y hora ---------- */
.rv-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-top: 16px; }
.rv-date {
  display: grid; justify-items: center; gap: 2px; padding: 10px 4px 9px; min-height: 84px;
  border-radius: var(--r-md); background: var(--night-2); border: 1px solid var(--line); cursor: pointer;
}
.rv-date:hover { border-color: rgba(244, 239, 248, .24); }
.rv-date-dow, .rv-date-m { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rv-date-n { font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.rv-date[aria-pressed="true"] { background: var(--crown); border-color: var(--crown); color: var(--night); }
.rv-date[aria-pressed="true"] .rv-date-dow, .rv-date[aria-pressed="true"] .rv-date-m { color: var(--night); }

.rv-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rv-slot {
  min-height: 48px; border-radius: 999px; cursor: pointer; font: 600 15px/1 var(--body);
  background: var(--night-2); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.rv-slot:hover { border-color: rgba(244, 239, 248, .24); }
.rv-slot[aria-pressed="true"] { background: var(--crown); border-color: var(--crown); color: var(--night); }

/* ---------- Paso 2: personas, plano y zona ---------- */
.rv-party { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 14px; }
.rv-party-label { font-weight: 600; }
.rv-stepper { display: flex; align-items: center; gap: 6px; }
.rv-round {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: var(--night-3); border: 1px solid rgba(244, 239, 248, .16);
  font: 500 26px/1 var(--body);
}
.rv-round:disabled { opacity: .35; cursor: not-allowed; }
.rv-party-n { min-width: 64px; text-align: center; font: 900 52px/1 var(--display); color: var(--crown); font-variant-numeric: tabular-nums; }

.rv-plan { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #0B1218; }

.rv-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 14px; }
.rv-zone {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  align-items: center; text-align: left; padding: 14px 16px; min-height: 64px; cursor: pointer;
  border-radius: var(--r-md); background: var(--night-2); border: 2px solid var(--line);
}
.rv-zone-dot { grid-row: 1 / 3; width: 14px; height: 14px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zc) 22%, transparent); }
.rv-zone-name { font: 800 24px/1 var(--display); text-transform: uppercase; }
.rv-zone-desc { font-size: 13px; color: var(--muted); }
.rv-zone:hover:not([aria-disabled="true"]) { border-color: color-mix(in srgb, var(--zc) 55%, transparent); }
.rv-zone[aria-checked="true"] { border-color: var(--zc); background: color-mix(in srgb, var(--zc) 12%, var(--night-2)); }
.rv-zone[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.rv-zone[aria-disabled="true"] .rv-zone-dot { background: var(--faint); box-shadow: none; }

/* ---------- Paso 3: datos ---------- */
.rv-form { display: grid; gap: 16px; margin-top: 16px; }
.rv-form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.rv-form label small { color: var(--faint); font-weight: 400; font-size: 13px; }
.rv-form input:not([type]),
.rv-form input[type="tel"],
.rv-form input[type="email"],
.rv-form input[type="text"] {
  min-height: 52px; padding: 0 14px; border-radius: var(--r-sm); width: 100%;
  background: var(--field); border: 1px solid rgba(244, 239, 248, .16); color: var(--paper);
  font: 400 16px/1.2 var(--body);
}
.rv-form input::placeholder { color: var(--faint); }
.rv-form input:focus { outline: none; border-color: var(--crown); box-shadow: 0 0 0 3px rgba(248, 184, 0, .2); }
.rv input[aria-invalid="true"] { border-color: var(--alert); }

.rv-check { display: grid !important; grid-template-columns: 24px 1fr; gap: 12px !important; align-items: start; font-weight: 400 !important; font-size: 14px !important; line-height: 1.5; color: var(--muted); cursor: pointer; }
.rv-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--crown); cursor: pointer; }
.rv-check a { color: var(--crown); text-underline-offset: 3px; }
.rv-check input[aria-invalid="true"] { outline: 2px solid var(--alert); outline-offset: 2px; }
.rv-check-strong {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--night-2); border: 2px solid rgba(255, 38, 0, .55);
  color: var(--paper) !important; font-size: 15px !important;
}

/* ---------- Paso 4: resumen y política ---------- */
.rv-summary { margin: 16px 0 0; display: grid; border-radius: var(--r-md); background: var(--night-2); border: 1px solid var(--line); }
.rv-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.rv-summary div:first-child { border-top: 0; }
.rv-summary dt { color: var(--muted); font-size: 14px; }
.rv-summary dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.rv-policy {
  margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255, 38, 0, .12); border: 1px solid rgba(255, 38, 0, .5); border-left-width: 5px;
  font-size: 16px; line-height: 1.55;
}
.rv-policy-title { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #FF8A73; margin-bottom: 8px; }

/* ---------- Mi reserva ---------- */
.rv-ticket { margin-top: 4px; padding: 0 0 8px; display: grid; gap: 14px; }
.rv-ticket-head {
  padding: 22px 20px; border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--line);
  display: grid; gap: 10px; position: relative;
}
.rv-ticket-head .eyebrow { color: var(--crown); }
.rv-ticket[data-status="expirada"] .rv-ticket-head .eyebrow,
.rv-ticket[data-status="cancelada"] .rv-ticket-head .eyebrow,
.rv-ticket[data-status="no_show"] .rv-ticket-head .eyebrow { color: #FF8A73; }
.rv-ticket[data-status="confirmada"] .rv-ticket-head .eyebrow,
.rv-ticket[data-status="llego"] .rv-ticket-head .eyebrow { color: #3DDC84; }
.rv-code-label { margin-top: 8px; padding-top: 14px; border-top: 1px dashed rgba(244, 239, 248, .2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.rv-code { font: 900 clamp(44px, 13vw, 64px)/1 var(--display); color: var(--crown); letter-spacing: .04em; user-select: all; }

.rv-timer { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 4px 4px 0; }
.rv-timer-n { font: 900 56px/1 var(--display); color: var(--crown); font-variant-numeric: tabular-nums; }
.rv-timer-l { color: var(--muted); }
.rv-timer.is-urgent .rv-timer-n { color: #FF8A73; }
.rv-reject { padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 38, 0, .12); border: 1px solid rgba(255, 38, 0, .45); }

.rv-pay { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: pay; }
.rv-pay > li {
  counter-increment: pay; display: grid; gap: 10px; justify-items: start;
  padding: 18px 18px 18px 64px; border-radius: var(--r-md); background: var(--night-2); border: 1px solid var(--line); position: relative;
}
.rv-pay > li::before {
  content: counter(pay); position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--crown); color: var(--night); font: 800 20px/1 var(--display);
}
.rv-pay.is-review > li:first-child { opacity: .55; }
.rv-pay-title { font-weight: 600; font-size: 17px; }
.rv-pay .rv-note { margin-top: 0; }
#proof-form { display: grid; gap: 12px; width: 100%; }
.rv-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.rv-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rv-file-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--night-3); border: 1px solid rgba(244, 239, 248, .2); font-weight: 600;
}
.rv-file:focus-within .rv-file-btn { outline: 2px solid var(--crown); outline-offset: 3px; }
.rv-file-name { color: var(--muted); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
#proof-form .rv-btn { justify-self: start; }

.rv-policy-mini { padding: 14px 16px; border-radius: var(--r-md); background: var(--night-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rv-policy-mini summary { cursor: pointer; color: var(--paper); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.rv-policy-mini p { margin-top: 8px; }
.rv-help { color: var(--muted); font-size: 14px; }
.rv-help a { color: var(--crown); text-underline-offset: 3px; }
#t-again { justify-self: start; }

.rv-foot { max-width: 720px; margin: 0 auto; padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }
.rv-foot a { color: var(--muted); }

/* ---------- Política de datos ---------- */
.rv-legal { max-width: 720px; margin: 0 auto; padding: 18px var(--gutter) 56px; line-height: 1.65; color: #D5DBE2; }
.rv-legal h1 { font: 900 clamp(40px, 10vw, 64px)/.92 var(--display); text-transform: uppercase; color: var(--paper); margin: 12px 0 14px; }
.rv-legal h2 { font: 800 26px/1.1 var(--display); text-transform: uppercase; color: var(--paper); margin: 34px 0 10px; }
.rv-legal p, .rv-legal ul, .rv-legal ol { margin: 0 0 12px; }
.rv-legal ul { list-style: disc; padding-left: 22px; }
.rv-legal ol { padding-left: 22px; }
.rv-legal li { margin-bottom: 6px; }
.rv-legal strong { color: var(--paper); }

@media (max-width: 520px) {
  .rv-actions { flex-direction: column-reverse; }
  .rv-actions .rv-btn, .rv-actions .rv-btn-primary { flex: none; width: 100%; }
  .rv-steps li { font-size: 12px; }
  .rv-pay > li { padding-left: 58px; }
}
