
/* Layout: invitación sobria. Encabezado breve; la selección de mesas ocupa el centro de la página
   (croquis grande + panel fijo con la mesa elegida); luego video, datos del evento, preguntas y pie. */
:root {
  --bg: #0c0a0b; --surface: #161113; --surface2: #1f191b; --ink: #f2ece3; --muted: #9d958c; --line: rgba(242,236,227,.12);
  --gold: #c9a55c; --gold2: #e3cb94;
  --z1: #c9a55c; --z2: #d78c9d; --z3: #8ea8c8; --z4: #8fb89a; --z5: #b7a2d6; --res: #d9944a; --sold: #3a3234; --floor: #110d0f;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --nav: 56px;
  color-scheme: dark;
}
[hidden] { display: none !important }
* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
html, body { overflow-x: clip }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--bg) }
a { color: inherit }
button { font: inherit; color: inherit }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)) }
section[id] { scroll-margin-top: calc(var(--nav) + 16px) }
.versal { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 500 }
.filete { width: 48px; height: 1px; background: var(--gold); opacity: .6; border: 0; margin: 0 auto }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--nav); background: rgba(12,10,11,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line) }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 600 }
.marca img { height: 28px; width: auto }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0 0 0 auto; padding: 0 }
.nav ul a { text-decoration: none; font-size: 13px; color: var(--muted); letter-spacing: .04em }
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--ink) }
@media (max-width: 640px) { .nav ul { gap: 18px } .nav ul li:not(.clave) { display: none } }

/* ---------- Encabezado ---------- */
.portada { text-align: center; padding-block: 64px 56px }
.portada .escudo { height: 76px; width: auto; display: block; margin: 0 auto 22px }
.portada h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 92px); line-height: 1; letter-spacing: -.01em; margin: 14px 0 6px; text-wrap: balance }
.portada h1 .y { font-style: italic; color: var(--gold) }
.portada .sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); color: var(--muted); margin: 0 0 22px }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: 14px; color: var(--muted); margin: 0 0 30px }
.meta span + span::before { content: "·"; margin: 0 14px; color: var(--gold) }
.bajar { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; letter-spacing: .08em; color: var(--ink) }
.bajar i { width: 1px; height: 28px; background: linear-gradient(var(--gold), transparent) }

/* ---------- Selección de mesas ---------- */
.mesas { padding-block: 24px 40px; border-top: 1px solid var(--line) }
.mesas-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 28px; padding-block: 34px 22px }
.mesas-cab h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.6vw, 58px); line-height: 1; margin: 8px 0 8px }
.mesas-cab p { margin: 0; color: var(--muted) }
.mesas-cab p b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums }
.filtros { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center }
.tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 3px }
.tabs button { background: none; border: 0; border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px }
.tabs button i { width: 7px; height: 7px; border-radius: 50%; background: var(--z) }
.tabs button[aria-pressed="true"] { background: var(--surface2); color: var(--ink) }
.interruptor { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; background: none; border: 0; padding: 4px }
.interruptor .pista-sw { width: 34px; height: 20px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); position: relative; transition: background .2s }
.interruptor .pista-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s }
.interruptor[aria-pressed="true"] { color: var(--ink) }
.interruptor[aria-pressed="true"] .pista-sw { background: rgba(201,165,92,.25); border-color: rgba(201,165,92,.5) }
.interruptor[aria-pressed="true"] .pista-sw::after { transform: translateX(14px); background: var(--gold) }

.mesas .wrap { max-width: 1640px }
.selector { display: grid; grid-template-columns: clamp(340px, 27vw, 440px) minmax(0, 1fr) 330px; grid-template-areas: "video plano panel"; gap: 22px; align-items: start }
.col-video { grid-area: video; position: sticky; top: calc(var(--nav) + 18px); min-width: 0 }
.plano-card { grid-area: plano }
.panel { grid-area: panel }
.col-video figcaption { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); text-align: center }
@media (max-width: 1300px) {
  .selector { grid-template-columns: 360px minmax(0, 1fr); grid-template-areas: "video plano" "video panel" }
  .panel { position: static }
}
@media (max-width: 900px) {
  .selector { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plano" "panel" "video" }
  .col-video { position: static; width: min(100%, 340px); justify-self: center; margin-top: 18px !important }
}
.plano-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px; min-width: 0 }
.salon { position: relative; perspective: 1300px; overflow-x: auto; overflow-y: hidden; border-radius: 12px }
.salon svg { display: block; width: 100%; min-width: 520px; height: auto; transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1) }
.salon.d3 svg { transform: translateY(-2%) rotateX(26deg) scale(.96) }
.plano-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 12px 8px 4px; font-size: 12px; color: var(--muted) }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px }
.leyenda span { display: inline-flex; align-items: center; gap: 7px }
.leyenda i { width: 9px; height: 9px; border-radius: 50%; display: inline-block }
.tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: rgba(22,17,19,.96); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; font-size: 13px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transition: opacity .15s }
.tip.ver { opacity: 1 }
.tip strong { font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; line-height: 1.1 }
.tip span { color: var(--muted) }
.tip em { font-style: normal; color: var(--z) }

/* croquis */
.piso { fill: url(#gPiso) }
.escenario { fill: url(#gEsc) }
.escenario-txt { fill: #2a1d08; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .34em }
.pista { fill: url(#gPista); stroke: rgba(242,236,227,.16); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round }
.lbl { fill: var(--muted); font-size: 11px; letter-spacing: .3em }
.panel-zona { fill: none; stroke-width: 1; stroke-opacity: .25; stroke-dasharray: 1 5; stroke-linecap: round; transition: stroke-opacity .3s }
.zona-txt { font-family: var(--serif); font-style: italic; font-size: 17px; text-anchor: middle; dominant-baseline: central }
.servicio { fill: none; stroke: rgba(242,236,227,.12); stroke-width: 1 }
.servicio-txt { fill: var(--muted); font-size: 11px; letter-spacing: .28em }
.mesa { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: 50% 55%; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .35s }
.mesa:hover, .mesa:focus-visible { transform: translateY(-4px) scale(1.07) }
.mesa .tablero { fill: url(#gMesa); stroke: var(--z); stroke-width: 1.6 }
.mesa:focus-visible .tablero { stroke: var(--ink); stroke-width: 2.4 }
.mesa .anillo { fill: none; stroke: var(--z); stroke-opacity: .3; stroke-width: .8; pointer-events: none }
.mesa .silla { fill: var(--z); opacity: .7 }
.mesa .halo { fill: color-mix(in srgb, var(--z) 10%, transparent); stroke: var(--z); stroke-width: 1.2; opacity: 0; pointer-events: none }
.mesa .num { fill: var(--ink); font-size: 12px; font-weight: 500; text-anchor: middle; dominant-baseline: central; pointer-events: none; letter-spacing: .04em }
.mesa.sel { transform: translateY(-4px) scale(1.1) }
.mesa.sel .tablero { fill: var(--z); stroke: var(--ink); stroke-width: 1.6 }
.mesa.sel .num { fill: #120d0e; font-weight: 600 }
.mesa.sel .halo { opacity: .8; animation: halo 2.4s ease-in-out infinite }
@keyframes halo { 0%, 100% { stroke-opacity: .9 } 50% { stroke-opacity: .25 } }
.mesa.reservada .tablero { fill: rgba(217,148,74,.22); stroke: var(--res); stroke-dasharray: 3 3 }
.mesa.reservada .silla { fill: var(--res); opacity: .45 }
.mesa.vendida { cursor: default }
.mesa.vendida .tablero { fill: var(--sold); stroke: var(--sold) }
.mesa.vendida .silla { fill: var(--sold) }
.mesa.vendida .num { fill: #6f6668 }
.mesa.vendida .anillo, .mesa.reservada .anillo { display: none }
.salon.solo .mesa.vendida, .salon.solo .mesa.reservada { opacity: .12; pointer-events: none }
.salon .mesa.fuera { opacity: .14 }
.salon .zlbl { transition: opacity .35s } .salon .zlbl.fuera { opacity: .25 }
.muro { fill: none; stroke: rgba(242,236,227,.38); stroke-width: 5; stroke-linecap: round }
.muro-int { fill: none; stroke: rgba(242,236,227,.28); stroke-width: 3 }
.tarima { fill: url(#gTarima); stroke: rgba(201,165,92,.5); stroke-width: 1 }
.tarima-txt { fill: #2a1d08; font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .34em }
.luz { fill: #f3dca0 }
.mueble { fill: #3a2a1f; stroke: rgba(201,165,92,.35); stroke-width: 1 }
.hoja-planta { fill: #6f8f5e }
.barra-r { fill: #2a2022; stroke: rgba(201,165,92,.45); stroke-width: 1 }
.cuarto { fill: rgba(242,236,227,.025); stroke: rgba(242,236,227,.14); stroke-width: 1 }
.zlbl-n { font-family: var(--serif); font-style: italic; font-size: 19px; text-anchor: middle }
.zlbl-p { fill: var(--muted); font-size: 12px; letter-spacing: .06em; text-anchor: middle }
.puerta { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 3 4 }

/* panel lateral */
.panel { position: sticky; top: calc(var(--nav) + 18px); display: flex; flex-direction: column; gap: 16px; min-width: 0 }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.05; margin: 6px 0 8px }
.card .tenue { color: var(--muted); margin: 0; font-size: 15px }
.lista-zonas { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line) }
.lista-zonas button { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 2px; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; text-align: left; cursor: pointer }
.lista-zonas button:hover { background: rgba(242,236,227,.03) }
.lista-zonas i { width: 8px; height: 8px; border-radius: 50%; background: var(--z); grid-row: span 2 }
.lista-zonas strong { font-family: var(--serif); font-size: 21px; font-weight: 600 }
.lista-zonas .pr { font-variant-numeric: tabular-nums; text-align: right }
.lista-zonas small { color: var(--muted); font-size: 13px; grid-column: 2 / 4 }
.ficha-mesa { display: grid; place-items: center; padding: 6px 0 14px }
.ficha-mesa svg { width: 150px; height: 150px }
.ficha-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
.estado { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--z) }
.estado.reservada { color: var(--res) } .estado.vendida { color: var(--muted) }
.precio { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 4px 0 0; font-variant-numeric: lining-nums tabular-nums }
dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px }
dt { color: var(--muted) } dd { margin: 0; text-align: right }
.pago { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line) }
.pago ol { margin: 10px 0 18px; padding-left: 18px; display: grid; gap: 9px; font-size: 14px; color: var(--muted) }
.pago ol strong { color: var(--ink); font-weight: 500 }
.cuentas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px }
.cuentas li { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: grid; gap: 1px; color: var(--ink) }
.cuentas span { font-variant-numeric: tabular-nums; user-select: all; font-weight: 500; letter-spacing: .02em }
.cuentas small { color: var(--muted) }
a.wa { display: block; text-align: center; text-decoration: none; font-weight: 500; font-size: 15px; padding: 13px; border-radius: 12px; background: var(--gold); color: #1d1408; letter-spacing: .02em }
a.wa:hover { background: var(--gold2) }
.otra { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px }
.nota { margin: 14px 0 0; font-size: 14px; color: var(--muted) }
.estado-red { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center }

/* taquilla */
.taquilla { border-color: rgba(201,165,92,.45) }
.taquilla .versal { display: block; margin-bottom: 4px }
.estados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 10px 0 16px; border: 1px solid var(--line); border-radius: 12px; padding: 3px }
.estados button { border: 0; font-size: 13px; padding: 8px 4px; border-radius: 9px; background: transparent; cursor: pointer }
.estados button[aria-pressed="true"] { background: var(--surface2) }
label.campo { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px }
label.campo input { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px }
label.campo input:focus { border-color: var(--gold); outline: none }
button.guardar { width: 100%; border: 0; font-weight: 500; padding: 12px; border-radius: 12px; background: var(--gold); color: #1d1408; cursor: pointer }
button.guardar:disabled { opacity: .5; cursor: default }
.msg { font-size: 13px; margin-top: 8px; min-height: 1.4em; color: var(--muted) }
.pago label.campo, .pago .msg { color: var(--muted) }
.subir { display: block; text-align: center; font-weight: 500; font-size: 15px; padding: 13px; border-radius: 12px; border: 1px dashed var(--gold); color: var(--gold); cursor: pointer; margin-top: 4px }
.subir input { position: absolute; width: 1px; height: 1px; opacity: 0 }
.aviso { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink); margin: 0 0 12px }
.aviso small { display: block; color: var(--muted); margin-top: 2px }
.rev { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px }
.rev li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 14px }
.rev li small { color: var(--muted) }
.rev img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; background: var(--bg) }
.rev .acc { display: grid; grid-template-columns: 1fr auto; gap: 8px }
.rev .acc button { border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 500; cursor: pointer }
.rev .ok { background: var(--gold); color: #1d1408 } .rev .no { background: var(--surface2); color: var(--ink) }

/* QR */
.qr-pago { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 10px 0 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink) }
.qr-pago img, .qr-blanco { width: 168px; height: 168px; border-radius: 10px; background: #fff; padding: 6px; box-sizing: border-box; display: grid; place-items: center }
.qr-blanco svg { width: 100%; height: 100% }
.qr-pago small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px }
.qr-pago strong { display: block; font-size: 13px; font-weight: 500 } .qr-pago span { user-select: all; font-variant-numeric: tabular-nums }
.qr-pago em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--res) }
@media (max-width: 420px) { .qr-pago { grid-template-columns: 1fr; justify-items: center; text-align: center } }
.otras summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 6px }
.entrada { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center }
.qr-entrada { width: 216px; height: 216px; margin: 10px auto 8px; background: #fff; border-radius: 14px; padding: 8px; box-sizing: border-box; box-shadow: 0 0 0 1px var(--gold), 0 10px 30px rgba(0,0,0,.4) }
.qr-entrada svg { width: 100%; height: 100% }
.entrada .cod { font-variant-numeric: tabular-nums; letter-spacing: .18em; font-weight: 500; margin: 4px 0 0 }
.entrada dl { text-align: left }
.puerta-card { margin-bottom: 16px }
.pu-fila { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px }
.pu-fila input { font: inherit; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0 }
.pu-fila button { border: 0; border-radius: 10px; padding: 10px 20px; font-weight: 500; background: var(--gold); color: #1d1408; cursor: pointer }
.pu-res { margin-top: 12px; font-size: 14px; color: var(--muted) }
.pu-res strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600 }
.pu-res.bien { color: var(--ink) } .pu-res.bien strong { color: #8fd19e }
.pu-res.mal strong { color: #e58a7f }

.cubre { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; color: var(--ink) }
.cubre legend { font-size: 13px; color: var(--muted); padding: 0 4px }
.cubre label { display: flex; gap: 8px; align-items: center } .cubre p { margin: 4px 0 0 }

.qr-img { width: 168px; height: 168px; border-radius: 10px; background: #fff; image-rendering: pixelated; -webkit-touch-callout: default }
.mini { display: block; margin-top: 8px; background: var(--surface2); color: var(--ink); border: 0; border-radius: 9px; padding: 8px 12px; font-size: 13px; cursor: pointer; text-align: left }
.como-qr { margin: 8px 0 4px !important; padding-left: 18px; font-size: 13px; gap: 4px !important }
.cuenta { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600 } .cuenta.poco { color: #e58a7f }

.plano-card { scroll-margin-top: calc(var(--nav) + 12px) }
.nav-mesa { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px }
.nav-mesa .otra, .nav-mesa .mini { margin: 0 }

/* boleta */
.boleta { display: grid; grid-template-columns: 1fr; margin: 12px 0 0; border-radius: 18px; overflow: hidden; text-align: left; color: #f2ece3;
  background: radial-gradient(120% 90% at 0% 0%, #2a2022 0%, #151012 60%); box-shadow: 0 0 0 1px rgba(201,165,92,.45), 0 18px 40px rgba(0,0,0,.45) }
.b-cuerpo { padding: 20px 20px 18px; border-left: 5px solid var(--z) }
.b-marca { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 17px; font-weight: 600 }
.b-marca img { height: 24px }
.b-pre { margin: 14px 0 0; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold) }
.b-art { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.05; margin: 4px 0 14px }
.b-art i { color: var(--gold); font-style: italic }
.b-datos { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 14px; justify-content: start }
.b-datos .ancho { grid-column: span 2 }
.b-datos small { display: block; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted) }
.b-datos strong { font-size: 14px; font-weight: 500 }
.b-datos .b-mesa { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--z) }
.b-talon { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 16px 16px; background: #f4efe6; color: #1d1408; border-top: 2px dashed rgba(29,20,8,.35) }
.b-talon::before, .b-talon::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface) }
.b-talon::before { left: -11px } .b-talon::after { right: -11px }
.b-qr svg { width: 150px; height: 150px; display: block }
.b-cod { margin: 4px 0 0; font-variant-numeric: tabular-nums; letter-spacing: .2em; font-weight: 600; font-size: 14px }
.b-talon small { font-size: 11px; color: #5a4c3a }
@media (min-width: 1301px) { .b-datos { grid-template-columns: repeat(2, auto) } }
@media (min-width: 520px) and (max-width: 900px) {
  .boleta { grid-template-columns: 1fr auto }
  .b-talon { border-top: 0; border-left: 2px dashed rgba(29,20,8,.35); align-content: center }
  .b-talon::before, .b-talon::after { left: -12px; right: auto } .b-talon::before { top: -11px } .b-talon::after { top: auto; bottom: -11px }
}
label.campo small { display: block; margin-top: 4px; font-size: 12px }

/* pantalla de entrada */
.portal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(90% 70% at 50% 35%, #2a1f21 0%, #0c0a0b 70%); transition: opacity .7s ease, visibility .7s }
.portal.fuera { opacity: 0; visibility: hidden }
.portal-in { max-width: 420px; display: grid; justify-items: center; gap: 6px }
.portal-escudo { height: 96px; margin-bottom: 14px; filter: drop-shadow(0 8px 24px rgba(201,165,92,.25)) }
.portal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 11vw, 64px); line-height: 1; margin: 8px 0 4px }
.portal h2 span { color: var(--gold); font-style: italic }
.portal-sub { color: var(--muted); margin: 0 0 26px; font-size: 15px }
#portal-btn { border: 1px solid var(--gold); background: var(--gold); color: #1d1408; font-weight: 500; font-size: 16px; letter-spacing: .04em; padding: 15px 34px; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 30px rgba(201,165,92,.25) }
#portal-btn:hover { background: var(--gold2) }
.portal-nota { margin: 10px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
body.con-portal { overflow: hidden }
@media (prefers-reduced-motion: reduce) { .portal { transition: none } }

/* legales */
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 14px; line-height: 1.45 }
.acepto input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: none }
button.enlace { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: 2px; cursor: pointer }
.pie-legal { width: 100%; margin-top: 14px; font-size: 12px; line-height: 1.6 } .pie-legal p { margin: 0 }
dialog.legal { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink) }
dialog.legal::backdrop { background: rgba(0,0,0,.7) }
.legal-in { position: relative; padding: 28px 26px 30px; font-size: 14px; line-height: 1.6 }
.legal-in h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 6px 0 4px; padding-right: 36px }
.legal-in h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 22px 0 6px }
.legal-in p, .legal-in li { color: #d9d2c7 } .legal-in ul { padding-left: 18px; margin: 0 }
.legal-in .dato { color: var(--ink) }
.legal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer }
.legal-pie { margin-top: 24px; font-size: 12px; color: var(--muted) !important }

/* modo dueño */
.modo { background: none; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; letter-spacing: .02em }
body.dueno .portada, body.dueno #mesas, body.dueno #evento, body.dueno #preguntas, body.dueno .hoja, body.dueno .nav li:not(#modo-li) { display: none !important }
.dueno-sec { padding: 40px 0 80px }
.d-tit { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 48px); margin: 6px 0 22px }
.resumen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px }
.resumen div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px }
.resumen small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase }
.resumen strong { font-family: var(--serif); font-size: 30px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start }
@media (max-width: 900px) { .d-grid { grid-template-columns: minmax(0, 1fr) } .resumen { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.tabla { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line) }
.tabla > li { border-bottom: 1px solid var(--line); padding: 12px 2px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; font-size: 14px }
.tabla i { width: 8px; height: 8px; border-radius: 50%; background: var(--z) }
.tabla small { color: var(--muted) }
.tabla .est { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.tabla .est.vendida { color: var(--gold) } .tabla .est.reservada { color: var(--res) }
.tabla .acc2 { grid-column: 2 / 4; display: flex; gap: 8px; flex-wrap: wrap }
.tabla .acc2 button { background: var(--surface2); color: var(--ink); border: 0; border-radius: 9px; padding: 7px 12px; font-size: 13px; cursor: pointer }
.tabla .directa { grid-column: 1 / 4; display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px }
.tabla .directa button.vd-no { background: var(--surface2); color: var(--ink) }
.tabla .directa input { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0 }
.tabla .directa button { background: var(--gold); color: #1d1408; border: 0; border-radius: 9px; padding: 8px 14px; font-weight: 500; cursor: pointer }
@media (max-width: 520px) { .tabla .directa { grid-template-columns: 1fr } }

/* barra inferior en celular */
.hoja { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 16px; background: rgba(22,17,19,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.5) }
.hoja strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.1 } .hoja span { color: var(--muted); font-size: 13px }
.hoja a { flex: none; text-decoration: none; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 999px; background: var(--gold); color: #1d1408 }
@media (max-width: 1300px) { .panel { position: static } }
@media (max-width: 1000px) { .hoja.ver { display: flex } }


/* ---------- Vista 3D ---------- */
.vista3d { position: relative; height: clamp(460px, 74vh, 800px); border-radius: 12px; overflow: hidden; background: #0c0a0b }
.vista3d canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none }
.vista3d canvas:active { cursor: grabbing }
.reset3d { position: absolute; right: 12px; top: 12px; border: 1px solid var(--line); background: rgba(12,10,11,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 14px; font-size: 12px; cursor: pointer }
.reset3d:hover { border-color: var(--gold) }
.ayuda3d { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 12px; color: var(--muted); pointer-events: none }
@media (max-width: 700px) { .vista3d { height: 62vh } }

/* ---------- Celular ---------- */
.girar3d { position: absolute; left: 12px; top: 12px; border: 1px solid rgba(201,165,92,.6); background: rgba(12,10,11,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer }
.girar3d[aria-pressed="true"] { background: var(--gold); color: #1d1408; border-color: var(--gold) }
@media (max-width: 700px) {
  .portada { padding-block: 36px 30px }
  .portada .escudo { height: 58px; margin-bottom: 14px }
  .meta { font-size: 13px }
  .mesas-cab { padding-block: 26px 16px }
  .filtros { gap: 10px }
  .tabs { border-radius: 18px }
  .tabs button { padding: 7px 12px }
  .salon svg { min-width: 0 }
  .plano-card { padding: 8px; border-radius: 16px }
  .card { padding: 20px }
  .ayuda3d { right: 14px; font-size: 11px }
  footer { padding-bottom: 120px }
}
@media (max-width: 1000px) { footer { padding-bottom: 120px } }

/* ---------- Secciones de texto ---------- */
.seccion { padding-block: 96px 0 }
.seccion h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.4vw, 54px); line-height: 1.02; margin: 10px 0 0 }
.dos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start }
@media (max-width: 860px) { .dos { grid-template-columns: minmax(0, 1fr); gap: 28px } }
.datos { margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) }
.datos div { padding: 20px 4px; border-bottom: 1px solid var(--line) }
.datos dt { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold) }
.datos dd { margin: 6px 0 0; text-align: left; font-family: var(--serif); font-size: 24px; line-height: 1.2 }
.datos dd small { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted) }
@media (max-width: 520px) { .datos { grid-template-columns: minmax(0, 1fr) } }

/* video */
.visor { position: relative; background: #050405; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 16; width: 100%; max-height: calc(100vh - var(--nav) - 70px) }
.visor video { width: 100%; height: 100%; object-fit: cover; display: block }
.toque { position: absolute; inset: 0; cursor: pointer; background: transparent; border: 0 }
.vacio-video { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px }
.controles { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px }
.controles button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(242,236,227,.25); background: rgba(12,10,11,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center }
.controles svg { width: 18px; height: 18px; fill: currentColor }
.sonido-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(242,236,227,.35); background: rgba(12,10,11,.65); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; padding: 12px 20px; font-size: 14px; cursor: pointer; display: none }
.visor.mudo:not(.sin-video) .sonido-btn { display: block }
.visor.sin-video .controles, .visor.sin-video .toque { display: none }

/* preguntas */
.faq { border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--serif); font-size: 23px; font-weight: 500 }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 22px; color: var(--gold); transition: transform .25s }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 640px }

footer { margin-top: 110px; padding-block: 34px 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted) }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between }
footer .marca { font-size: 17px; color: var(--ink) }
footer .marca img { height: 22px }
footer a { text-decoration: none } footer a:hover { color: var(--ink) }

/* aparición suave (solo desplazamiento, el contenido siempre es visible) */
[data-sube] { transition: transform .9s cubic-bezier(.2,.7,.2,1) }
[data-sube].abajo { transform: translateY(24px) }
@media (prefers-reduced-motion: reduce) {
  .mesa, .salon svg, [data-sube], .faq summary::after, .tip { transition: none }
  [data-sube].abajo { transform: none }
  .mesa.sel .halo { animation: none }
}
