/* ===================================================================
   Palco · estilos públicos + mapa de butacas
   =================================================================== */
:root {
  --bg: #090d1a;
  --bg-2: #0f1528;
  --sup: #141b31;
  --sup-2: #1b2440;
  --borde: #263152;
  --txt: #eef1f8;
  --txt-2: #a9b3cf;
  --txt-3: #6f7a9a;
  --oro: #e0b930;
  --oro-2: #c49b1e;
  --verde: #2ecf8b;
  --rojo: #ff5d6c;
  --ambar: #ffb547;
  --radio: 16px;
  --sombra: 0 18px 50px rgba(0, 0, 0, .45);
  --fuente: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--txt); font-family: var(--fuente); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.oculto { display: none !important; }

/* --------------------------- Encabezado --------------------------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(9, 13, 26, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.marca-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--oro), #f6dd7a); color: #1a1405; font-size: 17px; box-shadow: 0 6px 18px rgba(224, 185, 48, .35); }
.marca small { display: block; font-size: 11px; color: var(--txt-3); font-weight: 600; letter-spacing: .02em; }
.top nav { margin-left: auto; display: flex; gap: 6px; }
.top nav a { text-decoration: none; color: var(--txt-2); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.top nav a:hover { background: var(--sup); color: var(--txt); }

/* --------------------------- Botones --------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; text-decoration: none; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-oro { background: linear-gradient(135deg, #f3d468, var(--oro) 55%, var(--oro-2)); color: #1d1604; box-shadow: 0 10px 26px rgba(224, 185, 48, .28); }
.btn-oro:hover { box-shadow: 0 12px 32px rgba(224, 185, 48, .45); }
.btn-oro:disabled { filter: grayscale(.8) brightness(.7); box-shadow: none; cursor: not-allowed; }
.btn-sec { background: var(--sup-2); color: var(--txt); border: 1px solid var(--borde); }
.btn-sec:hover { background: #222c4d; }
.btn-texto { background: none; color: var(--txt-2); padding: 8px 10px; }
.btn-texto:hover { color: var(--txt); }
.btn-ancho { width: 100%; }

/* --------------------------- Cartelera --------------------------- */
.hero-cartelera { padding: clamp(36px, 7vw, 80px) clamp(16px, 4vw, 40px) 24px; max-width: 1200px; margin: 0 auto; }
.hero-cartelera h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 10px; }
.hero-cartelera p { color: var(--txt-2); font-size: 17px; margin: 0; max-width: 560px; }
.grid-eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding: 12px clamp(16px, 4vw, 40px) 70px; max-width: 1200px; margin: 0 auto; }
.tarjeta-ev { background: var(--sup); border: 1px solid var(--borde); border-radius: 20px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tarjeta-ev:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #34416b; }
.tarjeta-ev .cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tarjeta-ev h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.tarjeta-ev .meta { color: var(--txt-2); font-size: 14px; }
.tarjeta-ev .pie { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.desde { font-size: 13px; color: var(--txt-3); }
.desde b { color: var(--txt); font-size: 18px; }

/* Póster tipográfico (cuando el evento no trae imagen) */
.poster { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c) 70%, #fff 0%) 0%, transparent 55%), radial-gradient(90% 80% at 90% 100%, color-mix(in srgb, var(--c) 45%, #000) 0%, transparent 60%), linear-gradient(160deg, #1a2244, #0b1020); }
.poster::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); }
.poster .p-fecha { position: absolute; top: 16px; left: 16px; z-index: 1; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 6px 12px; text-align: center; line-height: 1.1; }
.poster .p-fecha b { display: block; font-size: 24px; }
.poster .p-fecha span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #dfe4f2; }
.poster .p-titulo { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.02; letter-spacing: -.03em; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.poster .p-titulo small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .8); margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sup-2); color: var(--txt-2); border: 1px solid var(--borde); }
.chip-verde { background: rgba(46, 207, 139, .12); color: var(--verde); border-color: rgba(46, 207, 139, .3); }
.chip-ambar { background: rgba(255, 181, 71, .12); color: var(--ambar); border-color: rgba(255, 181, 71, .3); }
.chip-rojo { background: rgba(255, 93, 108, .12); color: var(--rojo); border-color: rgba(255, 93, 108, .3); }

/* --------------------------- Página del evento --------------------------- */
.ev-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--borde); }
.ev-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 120% at 85% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(47, 143, 232, .14), transparent 70%); }
.ev-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px); max-width: 1320px; margin: 0 auto; align-items: end; }
.ev-hero h1 { font-size: clamp(30px, 4.8vw, 52px); margin: 8px 0 6px; letter-spacing: -.035em; line-height: 1.02; }
.ev-hero .artista { font-size: 18px; color: var(--txt-2); font-weight: 600; margin: 0 0 18px; }
.datos-ev { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--txt-2); font-size: 14.5px; }
.datos-ev span { display: inline-flex; align-items: center; gap: 8px; }
.datos-ev svg { width: 18px; height: 18px; color: var(--oro); }
.ev-hero .poster { border-radius: 18px; box-shadow: var(--sombra); aspect-ratio: 4 / 5; }

.compra { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; padding: 22px clamp(12px, 3vw, 40px) 40px; max-width: 1320px; margin: 0 auto; }
.panel-mapa { background: var(--bg-2); border: 1px solid var(--borde); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; min-height: 560px; }
.barra-mapa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--borde); }
.zona-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; border: 1px solid var(--borde); background: var(--sup); color: var(--txt); font-size: 13px; font-weight: 700; transition: border-color .15s, background .15s, opacity .15s; }
.zona-chip i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.zona-chip em { font-style: normal; color: var(--txt-2); font-weight: 600; }
.zona-chip.activa { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--sup)); }
.zona-chip.agotada { opacity: .45; }
.zona-chip.agotada em::after { content: ' · agotado'; }
.leyenda { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--borde); font-size: 12.5px; color: var(--txt-2); }
.leyenda span { display: inline-flex; align-items: center; gap: 7px; }
.leyenda i { width: 14px; height: 12px; border-radius: 3px; display: inline-block; }
.lz-l { background: linear-gradient(90deg, #2f8fe8, #3ccb3c, #e64fb0); }
.lz-m { background: #fff; box-shadow: 0 0 0 2px var(--oro); }
.lz-a { background: repeating-linear-gradient(135deg, #59627d 0 3px, #39405a 3px 6px); }
.lz-v { background: #2b3249; }
.lz-b { background: #1b2033; outline: 1px dashed #4b5574; }
.lz-acc { background: none !important; width: auto !important; height: auto !important; font-style: normal; }

/* --------------------------- Mapa (componente) --------------------------- */
.pm { position: relative; flex: 1; min-height: 440px; touch-action: none; user-select: none; -webkit-user-select: none; background: radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%); cursor: grab; }
.pm.pm-moviendo { cursor: grabbing; }
.pm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pm-plano { filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: screen; }
.pm-fila { font-weight: 700; font-family: var(--fuente); fill: var(--txt-3); text-anchor: middle; pointer-events: none; }
.pm-acc { text-anchor: middle; pointer-events: none; fill: #0b1020; }
.pm-a { cursor: pointer; }
.pm-a .pm-cuerpo, .pm-a .pm-respaldo { transform-box: fill-box; transform-origin: center; transition: transform .14s ease, fill .25s, opacity .25s, stroke .2s; }
.pm-a .pm-cuerpo { fill: var(--c); stroke: rgba(0, 0, 0, .35); stroke-width: .7; }
.pm-a .pm-respaldo { fill: color-mix(in srgb, var(--c) 62%, #000); pointer-events: none; }
.pm-a.e-l:hover .pm-cuerpo { transform: scale(1.22); stroke: #fff; stroke-width: 1.4; }
.pm-a.e-m .pm-cuerpo { fill: #fff; stroke: var(--oro); stroke-width: 2.4; transform: scale(1.12); filter: drop-shadow(0 0 4px rgba(224, 185, 48, .9)); }
.pm-a.e-m .pm-respaldo { fill: var(--oro); }
.pm-a.e-a .pm-cuerpo { fill: #4a5270; stroke: none; }
.pm-a.e-a .pm-respaldo { fill: #343b55; }
.pm-a.e-v .pm-cuerpo { fill: #283048; stroke: none; }
.pm-a.e-v .pm-respaldo { fill: #1d2336; }
.pm-a.e-b .pm-cuerpo { fill: #171c2d; stroke: #49536f; stroke-dasharray: 2 1.6; stroke-width: .9; }
.pm-a.e-b .pm-respaldo { fill: #171c2d; }
.pm-a.e-p .pm-cuerpo { fill: var(--ambar); stroke: #7a4d00; }
.pm-a.e-p .pm-respaldo { fill: #b77500; }
.pm-a.e-a, .pm-a.e-v, .pm-a.e-b { cursor: not-allowed; }
.pm-a.sin-zona .pm-cuerpo { fill: #3a4258; stroke: #6f7a9a; stroke-dasharray: 2 2; }
.pm-a.pm-tenue { opacity: .16; }
.pm-a.pm-sel .pm-cuerpo { stroke: #fff; stroke-width: 2.2; filter: drop-shadow(0 0 3px #fff); }
.pm-a.pm-pulso .pm-cuerpo { animation: pm-pulso .6s ease; }
.pm-a.pm-flash .pm-cuerpo { animation: pm-flash 1.4s ease; }
@keyframes pm-pulso { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }
@keyframes pm-flash { 0%, 40% { stroke: var(--rojo); stroke-width: 4; transform: scale(1.5); } 100% { transform: scale(1); } }
.pm-ctl { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.pm-ctl button { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--borde); background: rgba(20, 27, 49, .92); color: var(--txt); font-size: 19px; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.pm-ctl button:hover { background: var(--sup-2); }
.pm-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: rgba(12, 17, 33, .96); border: 1px solid var(--borde); border-radius: 12px; padding: 9px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; min-width: 190px; opacity: 0; transition: opacity .12s; box-shadow: var(--sombra); }
.pm-tip.ver { opacity: 1; }
.pm-tip small { color: var(--txt-3); }
.pm-tip-z { display: inline-flex; align-items: center; gap: 7px; color: var(--txt-2); font-weight: 600; }
.pm-tip-z::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pm-marco { position: absolute; display: none; border: 1.5px dashed var(--oro); background: rgba(224, 185, 48, .1); border-radius: 6px; pointer-events: none; z-index: 4; }

/* --------------------------- Carrito --------------------------- */
.lateral { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; align-self: start; }
.caja { background: var(--sup); border: 1px solid var(--borde); border-radius: 20px; padding: 18px; }
.caja h3 { margin: 0 0 12px; font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.caja h3 svg, h2 svg, h3 svg { width: 19px; height: 19px; flex: none; color: var(--oro); }
.rapido { display: grid; grid-template-columns: 1fr 92px; gap: 8px; }
.rapido select, .campo input, .campo select { width: 100%; background: var(--bg-2); border: 1px solid var(--borde); color: var(--txt); border-radius: 12px; padding: 11px 12px; font: inherit; }
.rapido select:focus, .campo input:focus { outline: 2px solid color-mix(in srgb, var(--oro) 60%, transparent); border-color: transparent; }
.vacio { text-align: center; color: var(--txt-3); padding: 18px 8px 10px; font-size: 14px; }
.vacio .ico { font-size: 30px; margin-bottom: 6px; filter: grayscale(.3); }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; }
.item { display: grid; grid-template-columns: 10px 1fr auto 28px; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--borde); padding: 9px 10px; border-radius: 12px; animation: entra .25s ease; }
.item i { width: 10px; height: 34px; border-radius: 4px; background: var(--c); }
.item b { display: block; font-size: 14px; }
.item small { color: var(--txt-3); font-size: 12px; }
.item .precio { font-family: var(--mono); font-weight: 500; }
.item button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--txt-3); font-size: 18px; }
.item button:hover { background: rgba(255, 93, 108, .14); color: var(--rojo); }
@keyframes entra { from { transform: translateY(6px); opacity: 0; } }
.totales { border-top: 1px dashed var(--borde); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--txt-2); }
.totales div { display: flex; justify-content: space-between; }
.totales .total { color: var(--txt); font-size: 20px; font-weight: 800; margin-top: 4px; }
.totales .total span:last-child { font-family: var(--mono); }
.reloj { display: flex; align-items: center; gap: 10px; background: rgba(224, 185, 48, .08); border: 1px solid rgba(224, 185, 48, .25); border-radius: 12px; padding: 9px 12px; font-size: 13px; color: var(--txt-2); margin-bottom: 12px; }
.reloj b { font-family: var(--mono); color: var(--oro); font-size: 16px; margin-left: auto; }
.reloj.urgente { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .35); }
.reloj.urgente b { color: var(--rojo); }
.garantia { display: flex; gap: 10px; font-size: 12.5px; color: var(--txt-3); align-items: flex-start; }
.garantia svg { flex: none; width: 18px; height: 18px; color: var(--verde); margin-top: 1px; }
.en-vivo { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--txt-2); margin-left: auto; }
.en-vivo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(46, 207, 139, .6); animation: latido 2s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(46, 207, 139, .55); } 70% { box-shadow: 0 0 0 9px rgba(46, 207, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 207, 139, 0); } }

/* Barra fija en celular */
.barra-movil { display: none; }

/* --------------------------- Aviso flotante --------------------------- */
.avisos { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.aviso { pointer-events: auto; background: #1c2645; border: 1px solid #33406a; color: var(--txt); padding: 12px 16px; border-radius: 14px; box-shadow: var(--sombra); font-size: 14px; display: flex; gap: 10px; align-items: center; animation: sube .3s ease; width: 100%; }
.aviso.error { border-color: rgba(255, 93, 108, .5); background: #2a1621; }
.aviso.ok { border-color: rgba(46, 207, 139, .45); background: #10261f; }
@keyframes sube { from { transform: translateY(14px); opacity: 0; } }

/* --------------------------- Modal --------------------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 6, 14, .72); backdrop-filter: blur(6px); }
.modal.abierto { display: flex; animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.modal-caja { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--sup); border: 1px solid var(--borde); border-radius: 22px; padding: 24px; box-shadow: var(--sombra); }
.modal-caja h2 { margin: 0 0 4px; letter-spacing: -.02em; }
.modal-caja .sub { color: var(--txt-2); margin: 0 0 18px; font-size: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.campo label { font-size: 13px; font-weight: 700; color: var(--txt-2); }
.metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.metodo { position: relative; border: 1.5px solid var(--borde); border-radius: 14px; padding: 12px; background: var(--bg-2); display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.metodo input { position: absolute; opacity: 0; }
.metodo b { font-size: 14px; }
.metodo small { color: var(--txt-3); font-size: 12px; }
.metodo:has(input:checked) { border-color: var(--oro); background: rgba(224, 185, 48, .08); }
.simulado { font-size: 12px; color: var(--ambar); background: rgba(255, 181, 71, .08); border: 1px dashed rgba(255, 181, 71, .35); border-radius: 10px; padding: 8px 10px; margin-bottom: 14px; }

/* --------------------------- Confirmación y boletos --------------------------- */
.envoltura { max-width: 980px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 70px; }
.exito { text-align: center; padding: 18px 0 26px; }
.exito .sello { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #5ff0b2, #12a46a); color: #062217; font-size: 36px; box-shadow: 0 14px 40px rgba(46, 207, 139, .35); animation: rebote .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rebote { from { transform: scale(.3); } }
.exito h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; }
.exito p { color: var(--txt-2); margin: 0; }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 28px; }
.boletos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* El boleto */
.boleto { --c: var(--oro); background: #fff; color: #0b1020; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); position: relative; }
.boleto .b-cab { padding: 16px 18px 14px; background: linear-gradient(135deg, #0f1730, #1d2a55); color: #fff; position: relative; }
.boleto .b-cab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.boleto .b-org { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.boleto .b-ev { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 6px; }
.boleto .b-fecha { font-size: 12.5px; opacity: .85; }
.boleto .b-asiento { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 10px 6px; gap: 4px; }
.boleto .b-asiento small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6b7392; }
.boleto .b-asiento b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.boleto .b-zona { margin: 2px 18px 0; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #000); }
.boleto .b-sec { text-align: center; font-size: 12.5px; color: #4a5272; margin-top: 2px; }
.boleto .b-corte { position: relative; margin: 12px 0 0; border-top: 2px dashed #d5d9e6; }
.boleto .b-corte::before, .boleto .b-corte::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.boleto .b-corte::before { left: -10px; } .boleto .b-corte::after { right: -10px; }
.boleto .b-qr { display: flex; flex-direction: column; align-items: center; padding: 16px 16px 18px; gap: 6px; }
.boleto .b-qr svg { width: 180px; height: 180px; }
.boleto .b-codigo { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: #1a2140; }
.boleto .b-pie { font-size: 11px; color: #6b7392; text-align: center; padding: 0 16px 14px; }
.boleto.usado::before { content: 'YA ENTRÓ'; position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); z-index: 2; border: 4px solid var(--rojo); color: var(--rojo); font-weight: 900; font-size: 28px; padding: 4px 14px; border-radius: 10px; background: rgba(255, 255, 255, .85); }
.boleto.anulado { opacity: .5; }

.ficha { background: var(--sup); border: 1px solid var(--borde); border-radius: 22px; padding: 22px; max-width: 520px; margin: 0 auto; }
.ficha .ref { font-family: var(--mono); font-size: clamp(22px, 5vw, 30px); letter-spacing: .1em; text-align: center; background: #fff; color: #0b1020; border-radius: 14px; padding: 16px 10px; margin: 14px 0; }

/* --------------------------- Pie --------------------------- */
.pie-sitio { border-top: 1px solid var(--borde); color: var(--txt-3); font-size: 13px; padding: 26px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; max-width: 1320px; margin: 0 auto; }

/* --------------------------- Responsivo --------------------------- */
@media (max-width: 1020px) {
  .compra { grid-template-columns: 1fr; padding-bottom: 110px; }
  .lateral { position: static; }
  .ev-hero-in { grid-template-columns: 1fr; }
  .ev-hero .poster { display: none; }
  .panel-mapa { min-height: 0; }
  .pm { min-height: 62vh; }
  .barra-movil { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(15, 21, 40, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--borde); }
  .barra-movil .bm-txt { flex: 1; font-size: 13px; color: var(--txt-2); line-height: 1.25; }
  .barra-movil .bm-txt b { display: block; color: var(--txt); font-size: 17px; }
  .barra-movil .btn { padding: 12px 16px; }
}
@media (max-width: 560px) {
  .top { padding: 10px 14px; gap: 10px; }
  .marca { font-size: 15px; min-width: 0; }
  .marca > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .marca small { display: none; }
  .top nav a { padding: 7px 8px; font-size: 13px; white-space: nowrap; }
  .pm { min-height: 50vh; }
  .top nav a:not(.importante) { display: none; }
  .barra-mapa { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .zona-chip { flex: none; }
  .metodos { grid-template-columns: 1fr; }
  .modal-caja { padding: 20px 18px; }
}

/* --------------------------- Impresión --------------------------- */
@media print {
  body { background: #fff; }
  .no-imprimir, .top, .pie-sitio, .acciones, .avisos { display: none !important; }
  .boleto { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .boleto .b-corte::before, .boleto .b-corte::after { background: #fff; }
}

/* Editor: el plano se ve tal cual */
.pm-editor .pm-plano { filter: none; mix-blend-mode: normal; }
.pm-editor { background: #e9ecf3; cursor: crosshair; }
.pm-editor .pm-fila { fill: #22305a; }
.pm-editor .pm-a .pm-cuerpo { stroke: rgba(0,0,0,.55); stroke-width: .9; }
.pm-guia { stroke: var(--oro-2); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; pointer-events: none; }
.pm-punto { fill: var(--oro); stroke: #1d1604; stroke-width: 1.5; pointer-events: none; }
.pm-previa .pm-cuerpo { fill: rgba(224,185,48,.55) !important; stroke: #8a6a00 !important; stroke-dasharray: 2 1.5; }

.compra > *, .panel-mapa, .lateral { min-width: 0; }
@media (max-width: 420px) { .top nav a[href$='index.php'] { display: none; } }
