/* ==================== MODO PARTIDO (spec 34): Inicio "Partido", Mi lugar, Pedir y la luz azul ==================== */
/* Zona oscura total con neón: es uno de los "momentos" de la spec 25 */
.zone-dark.ez{background:var(--abyss);background-image:radial-gradient(120% 50% at 85% 0%,rgba(61,139,255,.26),transparent 60%),linear-gradient(180deg,var(--abyss) 0%,var(--abyss-2) 100%);border-radius:0;box-shadow:none}
#app[data-tema="casa"] .zone-dark.ez{background:var(--casa-night);background-image:radial-gradient(120% 50% at 50% 0%,rgba(111,179,230,.2),transparent 60%),linear-gradient(180deg,var(--casa-night) 0%,var(--abyss-2) 100%)}
.ez>*+*{margin-top:12px}
.ez h2{font-family:var(--tech);font-size:1.22rem;font-weight:700;line-height:1.05;letter-spacing:.02em;text-transform:uppercase;color:var(--white)}
.ez-glass{position:relative;padding:14px;border-radius:var(--r-card);background:var(--glass);border:1px solid var(--glass-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.ez-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px;margin-bottom:10px}
.ez-meta{display:inline-flex;align-items:center;gap:5px;min-width:0;font-size:.76rem;font-weight:600;color:var(--cyan)}
.ez-meta svg{flex:none;width:14px;height:14px}
.ez-ic{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:rgba(61,139,255,.16);border:1px solid rgba(126,222,241,.3);color:var(--cyan)}
.ez-ic svg{width:20px;height:20px}
.ez-ic.ok{background:var(--cyan);border-color:var(--cyan);color:var(--navy-g1)}
.ez-row{display:flex;align-items:center;gap:12px}
.ez-row .tx,.ez-track-top .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ez-row b,.ez-track-top b{font-size:.95rem;line-height:1.25;color:var(--white)}
.ez-row small,.ez-track-top small{font-size:.78rem;line-height:1.3;color:var(--on-dark-2)}
.ez-row .btn{flex:none}

/* ---------- Héroe: escudos, cuenta regresiva o marcador ---------- */
.ez-hero{display:flex;flex-direction:column;gap:14px;padding-bottom:6px}
.ez-hero-bg{position:absolute;z-index:-1;top:0;left:0;right:0;height:min(420px,62vh);overflow:hidden;pointer-events:none;
  background:radial-gradient(70% 55% at 50% 35%,rgba(61,139,255,.45),transparent 70%),radial-gradient(40% 30% at 15% 10%,rgba(126,222,241,.25),transparent 70%),linear-gradient(180deg,var(--abyss-2),var(--abyss))}
.ez-hero-bg img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;opacity:.5}
#view .ez-hero-bg img.ld{opacity:.5}
.ez-hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,11,31,.55) 0%,rgba(4,11,31,.2) 35%,rgba(4,11,31,.75) 75%,var(--abyss) 100%)}
#app[data-tema="casa"] .ez-hero-bg::after{background:linear-gradient(180deg,rgba(3,8,23,.55) 0%,rgba(3,8,23,.2) 35%,rgba(3,8,23,.75) 75%,var(--casa-night) 100%)}
.ez-tag{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:.78rem;font-weight:600;color:var(--on-dark-2);text-shadow:0 1px 6px rgba(0,0,0,.6)}
.ez-vs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
.ez-team{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.ez-team b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--tech);font-size:clamp(.8rem,3.4vw,1rem);font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.ez-crest{width:clamp(58px,18vw,84px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--glass);border:1px solid var(--glass-line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 0 0 1px rgba(61,139,255,.25),0 8px 24px rgba(4,11,31,.5)}
.ez-crest img{width:70%;height:70%;object-fit:contain;filter:drop-shadow(0 0 10px rgba(61,139,255,.6))}
.ez-ini{font-family:var(--tech);font-size:clamp(1.15rem,5vw,1.5rem);font-weight:700;letter-spacing:.04em;color:var(--white)}
.ez-mid{display:flex;flex-direction:column;align-items:center;gap:6px}
.ez-cd{display:flex;flex-direction:column;align-items:center}
.ez-cd b,.ez-score b{font-family:var(--num);font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:var(--white);text-shadow:var(--neon-glow)}
.ez-cd b{font-size:clamp(2.3rem,11.5vw,3.3rem);letter-spacing:.01em}
.ez-cd small{margin-top:4px;font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--on-dark-2)}
.ez-score{display:flex;align-items:center;gap:10px}
.ez-score b{font-size:clamp(3rem,15vw,4.2rem)}
.ez-score i{font-style:normal;font-family:var(--num);font-size:2rem;color:var(--on-dark-2)}
.ez-min{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:14px;background:var(--red);font-family:var(--num);font-size:1rem;font-weight:700;font-variant-numeric:tabular-nums;animation:live-halo 2s ease-out infinite}
.ez-min .dot{width:7px;height:7px;border-radius:50%;background:var(--white);animation:blink 1.2s infinite}
.ez-min.fin{background:var(--glass);border:1px solid var(--glass-line);font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;animation:none;white-space:nowrap}

/* ---------- Tu lugar ---------- */
.ez-seat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.ez-seat div{min-width:0;padding:8px 4px;border-radius:12px;background:rgba(255,255,255,.06);text-align:center}
.ez-seat small{display:block;font-size:.66rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--on-dark-2)}
.ez-seat b{display:block;font-family:var(--num);font-size:clamp(1.15rem,6.2vw,1.7rem);font-weight:700;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--white)}
.ez-lugar .ez-seat{margin-bottom:12px}

/* ---------- Pide sin perderte el partido ---------- */
.ez-pide-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
.ez-tile{display:flex;flex-direction:column;gap:4px;min-width:0;padding:6px 6px 8px;border-radius:var(--r-tile);background:var(--glass);border:1px solid var(--glass-line);color:var(--white);text-align:left;transition:transform .15s,box-shadow .15s}
.ez-tile:hover,.ez-tile:focus-visible{box-shadow:0 0 0 1px var(--neon),var(--neon-glow)}
.ez-tile:active{transform:scale(.97)}
.ez-tile b{font-size:.82rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ez-tile small{font-family:var(--num);font-size:.92rem;font-weight:700;color:var(--cyan)}
.ez-ph{position:relative;display:block;overflow:hidden;border-radius:12px;background:radial-gradient(circle at 50% 40%,rgba(126,222,241,.25),rgba(61,139,255,.12) 60%,rgba(255,255,255,.04))}
.ez-tile .ez-ph{aspect-ratio:4/3}
.ez-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- Luz azul (botón) ---------- */
.ez-luz-btn{display:flex;align-items:center;gap:14px;width:100%;min-height:76px;padding:14px 16px;border-radius:var(--r-card);background:linear-gradient(135deg,var(--electric-ink),var(--sky-ink));color:var(--white);text-align:left;box-shadow:var(--lugar-glow);transition:transform .15s}
.ez-luz-btn:active{transform:scale(.98)}
.ez-luz-btn .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ez-luz-btn b{font-family:var(--tech);font-size:1.45rem;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.02em}
.ez-luz-btn small{font-size:.8rem;line-height:1.3}
.ez-luz-dot{flex:none;width:44px;height:44px;border-radius:50%;background:radial-gradient(circle,var(--white) 0 26%,var(--cyan) 50%,rgba(126,222,241,0) 72%);animation:ezGlow 2.4s ease-in-out infinite}
@keyframes ezGlow{0%,100%{opacity:.65;transform:scale(.92)}50%{opacity:1;transform:scale(1.05)}}

/* ---------- Salida ---------- */
.ez-out b{font-size:.92rem}
.ez-out.on{border-color:rgba(126,222,241,.55);box-shadow:var(--lugar-glow)}
.ez-visita .ez-head{align-items:center}
.ez-visita .pts{font-family:var(--num);font-size:1.2rem;color:var(--white)}
.ez-visita ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.ez-visita li{display:flex;align-items:center;gap:8px;font-size:.84rem;color:var(--on-dark-2)}
.ez-visita li svg{flex:none;width:16px;height:16px;color:var(--cyan)}

/* ---------- Seguimiento del pedido ---------- */
.ez-track{padding:12px 14px;border-radius:var(--r-card);background:rgba(10,26,68,.85);border:1px solid rgba(126,222,241,.4);box-shadow:var(--lugar-glow)}
.ez-track-top{display:flex;align-items:center;gap:12px}
.ez-track-top b{font-family:var(--tech);font-size:1.15rem;letter-spacing:.02em;text-transform:uppercase}
.ez-track-top .ez-meta{flex:none}
.ez-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:10px}
.ez-steps li{height:5px;border-radius:3px;background:rgba(255,255,255,.16)}
.ez-steps li.ok{background:var(--cyan)}
.ez-steps li.on{background:var(--cyan);animation:ezStep 1.6s ease-in-out infinite alternate}
@keyframes ezStep{0%{opacity:.4}100%{opacity:1}}
.ez-inicio>.ez-track+.ez-hero{margin-top:16px}

/* ---------- Mi lugar: boleto, mapa y familia ---------- */
.ez-ticket{padding:14px;border-radius:var(--r-card);background:var(--white);color:var(--text);box-shadow:0 0 0 1px rgba(126,222,241,.5),0 14px 34px rgba(61,139,255,.3)}
.ez-tk-top{display:flex;align-items:center;gap:14px}
.ez-qr{flex:none;width:clamp(92px,28vw,118px);aspect-ratio:1}
.ez-qr .qr{display:block;width:100%;height:100%}
.ez-tk-tx{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.ez-tk-n{margin-top:4px;font-family:var(--tech);font-size:1.3rem;font-weight:700;line-height:1.05;text-transform:uppercase;color:var(--navy)}
.ez-tk-tx small{font-size:.78rem;line-height:1.3;color:var(--muted)}
.ez-ticket .ez-seat{margin-top:12px;padding-top:12px;border-top:1.5px dashed var(--gray-light)}
.ez-ticket .ez-seat div{background:var(--bg-card)}
.ez-ticket .ez-seat small{color:var(--muted)}
.ez-ticket .ez-seat b{color:var(--navy)}
.ez-svc{margin-left:-16px;margin-right:-16px;padding:2px 16px 4px}
.ez-svc .chip{height:36px}
.ez-svc .chip.on{background:var(--cyan);border-color:var(--cyan);color:var(--navy-g1)}
.ez-map{display:flex;flex-direction:column;align-items:center;gap:4px;height:clamp(160px,30vh,250px)}
.ez-mapa{flex:1;min-height:0;width:100%}
.ez-ml:has(.ez-out.on) .ez-map{height:clamp(150px,24vh,220px)}
.ez-mapa .shell{fill:rgba(255,255,255,.03);stroke:var(--glass-line);stroke-width:1}
.ez-mapa .secs path{fill:rgba(255,255,255,.1)}
.ez-mapa .secs path.mine{fill:var(--electric);filter:drop-shadow(0 0 6px rgba(61,139,255,.9))}
.ez-mapa .pitch{fill:rgba(126,222,241,.08);stroke:rgba(126,222,241,.55);stroke-width:1.2}
.ez-mapa .lines{fill:none;stroke:rgba(126,222,241,.4);stroke-width:1}
.ez-mapa text{font-family:var(--tech);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;fill:var(--white)}
.ez-mapa .gate circle{fill:var(--celeste);stroke:var(--white);stroke-width:2}
.ez-svc-pt circle{fill:var(--on-dark-2)}
.ez-svc-pt .halo{fill:var(--cyan);opacity:0}
.ez-svc-pt.on circle{fill:var(--cyan)}
.ez-svc-pt.on .halo{animation:ezHalo 1.6s ease-in-out infinite}
@keyframes ezHalo{0%,100%{opacity:.15}50%{opacity:.5}}
.ez-map-tx{font-size:.76rem;color:var(--on-dark-2);text-align:center}
.ez-fam h2{font-size:1rem;margin-bottom:8px}
.ez-fam-row{display:flex;flex-wrap:wrap;gap:8px}
.ez-fam-it{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px 14px 4px 4px;border-radius:22px;background:var(--glass);border:1px solid var(--glass-line)}
.ez-fam-it i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-family:var(--tech);font-weight:700;background:var(--navy-g2);color:var(--white)}
.ez-fam-it>span{display:flex;flex-direction:column}
.ez-fam-it b{font-size:.86rem;line-height:1.1}
.ez-fam-it small{font-size:.74rem;color:var(--on-dark-2)}

/* ---------- Pedir ---------- */
.ez-pd-tabs{margin-left:-16px;margin-right:-16px;padding:2px 16px 4px}
.ez-pd-note{display:flex;align-items:center;gap:8px;font-size:.82rem;font-weight:600;color:var(--cyan)}
.ez-pd-note svg{flex:none;width:16px;height:16px}
.ez-pd-list{display:flex;flex-direction:column;gap:8px}
.ez-pd-it{display:flex;align-items:center;gap:12px;padding:8px;border-radius:var(--r-tile);background:var(--glass);border:1px solid var(--glass-line)}
.ez-pd-it .ez-ph{flex:none;width:56px;height:56px}
.ez-pd-it .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ez-pd-it b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;line-height:1.2;color:var(--white)}
.ez-pd-it b .flag{vertical-align:1px;margin-left:4px}
.ez-pd-it small{font-size:.74rem;color:var(--on-dark-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ez-pd-it .pr{font-family:var(--num);font-size:1rem;font-weight:700;color:var(--cyan)}
.qty.ez-qty{flex:none;height:44px;border-color:rgba(255,255,255,.3)}
.qty.ez-qty button{width:40px;color:var(--white)}
.qty.ez-qty button[disabled]{opacity:.35}
.qty.ez-qty span{min-width:22px;color:var(--white)}
.ez-bar{justify-content:space-between}
.ez-bar.off{display:none}
.ez-bar-tx{display:flex;flex-direction:column;padding-left:6px;color:var(--white);min-width:0}
.ez-bar-tx small{font-size:.74rem;color:var(--on-dark-2)}
.ez-bar-tx b{font-family:var(--tech);font-size:1.3rem;line-height:1.1;font-variant-numeric:tabular-nums}
.buybar.ez-bar>.btn{flex:none;min-width:0;max-width:62%;overflow:hidden;text-overflow:ellipsis}

/* ---------- Hoja de pago (oscura) ---------- */
.ez-pay h3{font-family:var(--tech);font-size:1.5rem;font-weight:700;text-transform:uppercase;color:var(--white)}
.ez-pay-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:4px;margin:8px 0 4px}
.ez-pay-list li{display:flex;justify-content:space-between;gap:12px;font-size:.88rem;color:var(--on-dark-2)}
.ez-pay-list b{color:var(--white);font-variant-numeric:tabular-nums;white-space:nowrap}
.ez-lbl{margin:14px 0 6px;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--on-dark-2)}
.ez-opts{display:flex;flex-direction:column;gap:8px}
.ez-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;border-radius:var(--r-tile);background:var(--glass);border:1px solid var(--glass-line);color:var(--white);text-align:left}
.ez-opt .ez-ic{width:36px;height:36px}
.ez-opt .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ez-opt b{font-size:.92rem}
.ez-opt small{font-size:.76rem;color:var(--on-dark-2)}
.ez-opt.on{background:rgba(61,139,255,.18);border-color:var(--cyan)}
.ez-opt[disabled]{opacity:.5;cursor:not-allowed}
.ez-radio{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid var(--on-dark-2)}
.ez-opt.on .ez-radio{border-color:var(--cyan);background:var(--cyan);box-shadow:inset 0 0 0 4px var(--abyss-2)}
.ez-pay-note{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:.8rem;color:var(--cyan)}
.ez-pay-note svg{flex:none;width:16px;height:16px}

/* ---------- Luz azul: pantalla completa, un pulso cada 2.4 s (menos de 1 por segundo, WCAG 2.3.1) ---------- */
.ez-luz{position:absolute;inset:0;z-index:96;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;overflow:hidden;outline:none;cursor:pointer;color:var(--white);
  background:var(--electric);background:color-mix(in srgb,var(--celeste) var(--ez-mix,0%),var(--electric));opacity:0;transition:opacity .3s ease}
.ez-luz.on{opacity:1}
.ez-luz.out{opacity:0}
.ez-luz-glow{position:absolute;inset:-10%;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.6),rgba(255,255,255,0) 55%);animation:ezLuz 2.4s ease-in-out infinite}
@keyframes ezLuz{0%,100%{opacity:.2}50%{opacity:.85}}
.ez-luz-escudo{position:relative;width:min(48vw,220px);height:auto;filter:drop-shadow(0 0 30px rgba(255,255,255,.6));animation:ezLuzE 2.4s ease-in-out infinite}
@keyframes ezLuzE{0%,100%{transform:scale(.96)}50%{transform:scale(1.04)}}
.ez-luz-sec{position:relative;font-family:var(--tech);font-size:1.6rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--abyss)}
.ez-luz-tx{position:absolute;bottom:calc(32px + env(safe-area-inset-bottom));padding:10px 18px;border-radius:20px;background:rgba(4,11,31,.5);font-size:.9rem;font-weight:600}
.ez-luz.red{transition:none}
.ez-luz.red .ez-luz-glow{animation:none;opacity:.5}
.ez-luz.red .ez-luz-escudo{animation:none}

/* ---------- Pantallas bajas: el héroe y el mapa se compactan ---------- */
@media (max-height:700px){
  .ez-hero{gap:10px}
  .ez-crest{width:clamp(52px,15vw,68px)}
  .ez-cd b{font-size:clamp(2.1rem,10vw,2.8rem)}
  .ez-score b{font-size:clamp(2.6rem,13vw,3.4rem)}
  .ez-map{height:160px}
  .ez-qr{width:88px}
  .ez-tile .ez-ph{aspect-ratio:16/10}
}

@media (prefers-reduced-motion:reduce){
  .ez-min,.ez-min .dot,.ez-luz-dot,.ez-steps li.on,.ez-svc-pt.on .halo,.ez-luz-glow,.ez-luz-escudo{animation:none}
  .ez-svc-pt.on .halo{opacity:.4}
  .ez-luz{transition:none}
}
/* Valores largos en las casillas del boleto ("Norte 3" en Nuestra Casa): cifra más chica, sin cortarse */
.ez-seat b.largo{font-size:clamp(.95rem,4.4vw,1.25rem);line-height:1.36;text-overflow:clip}
/* QR dinámico de acceso (Nuestra Casa): cambia cada 15 s con un fundido y una barra que se vacía */
.ez-qr{position:relative;display:flex;flex-direction:column;gap:6px}
.ez-qr:has(.ez-qrd){aspect-ratio:auto}
.ez-qrd{aspect-ratio:1}
.ez-qrd .qr{display:block;width:100%;height:100%}
.ez-qrd.nuevo{animation:ezQrIn .45s cubic-bezier(.22,1,.36,1)}
@keyframes ezQrIn{0%{opacity:.15;transform:scale(.96)}100%{opacity:1;transform:none}}
.ez-qrbar{display:block;height:4px;border-radius:2px;background:var(--electric-ink);transform-origin:left center}
.ez-qrbar.run{animation:ezQrBar var(--ttl,15s) linear both}
@keyframes ezQrBar{0%{transform:scaleX(1)}100%{transform:scaleX(0)}}
.ez-dyn{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:4px;padding:4px 8px;border-radius:8px;background:var(--bg-card);color:var(--sky-ink);font-size:.74rem;font-weight:600}
.ez-dyn svg{width:14px;height:14px;flex:none}
.ez-dyn b{font-family:var(--num);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){ .ez-qrd.nuevo,.ez-qrbar.run{animation:none} }
