@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
:root {
  --bg: #121212; --card: #1c1c1e; --card2: #26262a; --border: #2c2c2e; --text: #e5e7eb; --muted: #9ca3af; --white: #fff;
  --accent: #c79452; --red: #e50914; --green: #61ce70; --radius: 14px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--white); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.hidden { display: none !important; }

/* Cabecera y pie */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: rgba(18,18,18,.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.05); }
.topbar .brand img { height: 42px; display: block; }
.topbar nav a { color: var(--text); text-decoration: none; margin-left: 22px; font-size: 14px; font-weight: 500; opacity: .85; }
.topbar nav a:hover { opacity: 1; color: var(--accent); }
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 30px 20px 40px; text-align: center; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.footer a { color: var(--muted); }

/* Botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #141008; border: 0; border-radius: 10px; padding: 13px 22px; font: 700 15px var(--font); cursor: pointer; text-decoration: none; transition: transform .15s, filter .15s, background .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #3a3a3e; }
.btn.ghost:hover { border-color: var(--accent); color: var(--white); }
.btn.big { padding: 16px 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.red { background: var(--red); color: #fff; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
input, select, textarea { width: 100%; background: #0f0f10; color: var(--white); border: 1px solid #333338; border-radius: 10px; padding: 12px 14px; font: 15px var(--font); outline: none; transition: border .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.field { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; }
.pill.gold { color: var(--accent); } .pill.red { color: #ff5a5f; } .pill.green { color: var(--green); } .pill.grey { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.err { background: rgba(229,9,20,.12); border: 1px solid rgba(229,9,20,.45); color: #ffb3b6; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.ok { background: rgba(97,206,112,.12); border: 1px solid rgba(97,206,112,.4); color: #b9f1c1; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }

/* Listado */
.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; background: #000 center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,.2) 0%, rgba(18,18,18,.55) 50%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 34px; width: 100%; }
.hero .kicker { color: var(--accent); font-weight: 700; letter-spacing: .2em; font-size: 12px; text-transform: uppercase; margin-bottom: 10px; }
.hero p { max-width: 640px; color: #d0d0d0; font-size: 17px; }
.events { display: grid; gap: 16px; margin-top: 10px; }
.ev-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; text-decoration: none; color: inherit; transition: background .2s, border-color .2s, transform .2s; }
.ev-card:hover { background: var(--card2); border-color: #3a3a3e; transform: translateY(-1px); }
.datebox { background: #141416; border: 1px solid var(--border); border-radius: 12px; text-align: center; padding: 10px 0; }
.datebox .d { font-size: 30px; font-weight: 700; color: var(--white); line-height: 1; }
.datebox .m { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.datebox .y { font-size: 11px; color: var(--muted); }
.ev-card h3 { margin: 6px 0 4px; font-size: 19px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }

/* Página del evento */
.ev-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; background: #000 center 30%/cover no-repeat; }
.ev-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,.15), rgba(18,18,18,.6) 55%, var(--bg)); }
.ev-hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 30px; }
.ev-hero .sub { color: #d6d6d6; font-size: 18px; margin-top: -4px; font-style: italic; }
.ev-poster { float: right; width: 210px; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.7); margin: 0 0 10px 24px; border: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { .ev-poster { display: none; } }
.ev-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 22px; color: #e8e8e8; font-size: 15px; }
.ev-facts span { display: inline-flex; gap: 8px; align-items: center; }
.ev-facts svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 26px; align-items: start; }
.ev-main > section { margin-bottom: 30px; }
.sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.session { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.session:hover:not(:disabled) { border-color: var(--accent); }
.session.on { border-color: var(--accent); background: rgba(199,148,82,.1); box-shadow: 0 0 0 1px var(--accent) inset; }
.session:disabled { opacity: .5; cursor: not-allowed; }
.session .when { font-weight: 700; color: var(--white); font-size: 16px; }
.session .when::first-letter { text-transform: uppercase; }
.session .hour { font-size: 22px; font-weight: 700; color: var(--accent); }
.session .st { font-size: 12px; margin-top: 4px; }
.desc { color: #d6d6d6; }
.desc p { margin: 0 0 1em; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.fact { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.fact b { display: block; color: var(--white); font-size: 15px; }
.fact span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; color: var(--white); font-weight: 600; }
details.faq p { margin: 10px 0 0; color: #cfcfcf; }
.aside { position: sticky; top: 84px; }
.aside .price-from { font-size: 13px; color: var(--muted); }
.aside .price-from b { font-size: 30px; color: var(--white); display: block; }

/* Plano */
.map-wrap { position: relative; background: #0d0d0e; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.map-wrap svg { display: block; width: 100%; height: min(70vh, 640px); cursor: grab; }
.map-wrap svg.panning { cursor: grabbing; }
.map-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.map-tools button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #333; background: rgba(28,28,30,.92); color: #fff; font-size: 20px; cursor: pointer; }
.map-tools button:hover { border-color: var(--accent); }
.seat { cursor: pointer; transition: opacity .1s; }
.seat rect { stroke-width: 1.4; }
.seat.taken { cursor: not-allowed; }
.seat.nosale { cursor: default; }
.seat:not(.taken):not(.nosale):hover rect { stroke: #fff; stroke-width: 2.2; }
.seat.sel rect { fill: #fff !important; stroke: var(--accent) !important; stroke-width: 3; }
.seat.sel text { fill: #111 !important; }
.seat text { font: 700 8.5px var(--font); pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 13px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.legend b { color: var(--white); font-weight: 600; }
.map-hint { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--muted); background: rgba(18,18,18,.8); padding: 4px 10px; border-radius: 8px; pointer-events: none; }

/* Cesta */
.basket .row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.basket .row .seat-name { color: var(--white); font-weight: 600; }
.basket .row select { padding: 7px 10px; font-size: 13px; grid-column: 1 / -1; }
.basket .row .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; padding: 0 4px; }
.basket .row .x:hover { color: #fff; }
.totals { margin: 14px 0; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.totals .grand { color: var(--white); font-size: 20px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 8px; }
.timer { display: flex; align-items: center; gap: 8px; background: rgba(199,148,82,.12); color: var(--accent); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.timer.warn { background: rgba(229,9,20,.14); color: #ff7b80; }
.mobile-bar { display: none; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.steps span { color: #5a5a60; } .steps span.on { color: var(--accent); }

/* Pedido */
.ticket-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: #fff; color: #111; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.ticket-card img { width: 120px; height: 120px; display: block; }
.ticket-card b { font-size: 17px; display: block; }
.ticket-card .code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #555; font-size: 13px; }

/* Consentimiento */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 560px; margin: 0 auto; background: #1f1f22; border: 1px solid #36363a; border-radius: 14px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); font-size: 14px; }
.consent p { margin: 0 0 12px; }
.consent div { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { padding: 10px 16px; font-size: 14px; }
.legal p { color: #cfcfcf; }

/* Integrado en otra web */
body.embed { background: var(--bg); }
body.embed .ev-hero { min-height: 260px; }

@media (max-width: 900px) {
  .ev-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .ev-hero { min-height: 340px; }
  .map-wrap svg { height: 58vh; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(22,22,24,.97); border-top: 1px solid var(--border); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-bar .t { font-size: 13px; color: var(--muted); } .mobile-bar .t b { display: block; color: #fff; font-size: 18px; }
  body.has-bar { padding-bottom: 86px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbar nav a { margin-left: 14px; }
  .ev-card { grid-template-columns: 72px 1fr; padding: 14px; gap: 14px; }
  .ev-card .btn { grid-column: 1 / -1; }
  .datebox .d { font-size: 24px; }
  .grid2 { grid-template-columns: 1fr; }
  .ticket-card { grid-template-columns: 96px 1fr; } .ticket-card img { width: 96px; height: 96px; }
}

#comprar, #mapSec { scroll-margin-top: 80px; }
