/* =====================================================
   Sitio publico de participacion — estilos sobre admin.css
   ===================================================== */
body.publico { background: var(--qn-fondo); }

.navbar-publico {
    background: linear-gradient(90deg, var(--qn-verde-cancha), var(--qn-verde-oscuro));
}
.navbar-publico .navbar-brand img { background: #eef2fb; padding: 3px; box-sizing: content-box; }

/* --- Tarjeta de quiniela en la home --- */
.quiniela-card { transition: transform .1s ease; }
.quiniela-card:hover { transform: translateY(-2px); }

/* --- Tabs de quinielas activas (arriba del boleto de captura) --- */
.tabs-quinielas { display: flex; align-items: stretch; gap: .7rem; overflow-x: auto; padding: .2rem .1rem .5rem; margin-bottom: 1.2rem; }
.tab-quiniela {
    flex: 0 0 auto; display: flex; flex-direction: column; gap: .4rem; text-align: left;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: .7rem 1rem;
    text-decoration: none; color: inherit; width: 210px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: border-color .12s ease, box-shadow .12s ease;
}
.tab-quiniela:hover { border-color: var(--qn-verde-cancha); text-decoration: none; color: inherit; }
.tab-quiniela.active { border-color: var(--qn-verde-cancha); box-shadow: 0 0 0 2px rgba(20,83,45,.15); }
.tq-urgente {
    align-self: flex-start; background: var(--qn-lima); color: var(--qn-verde-oscuro);
    font-size: .6rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    padding: .18rem .55rem; border-radius: 99px;
}
.tq-nombre { font-size: .84rem; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-meta { font-size: .68rem; color: #6b7a70; display: flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: auto; }
.tq-dot { width: 6px; height: 6px; border-radius: 50%; background: #6b7a70; flex: none; }
.tq-dot.abierta { background: var(--qn-verde-cancha); }
.tq-dot.proxima { background: #b4790f; }

/* --- Layout de captura: boleto + carrito/registro --- */
.layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.75rem;
    align-items: start;
}
@media (max-width: 920px) {
    .layout { grid-template-columns: 1fr; }
}

.ticket {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -18px rgba(11,61,32,.35);
}
.ticket-head {
    background: linear-gradient(135deg, var(--qn-verde-cancha), var(--qn-verde-oscuro));
    color: #fff;
    padding: .85rem 1.25rem 1.1rem;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.ticket-head .eyebrow {
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--qn-lima); font-weight: 700;
}
.ticket-head h1 { font-size: 1.2rem; font-weight: 800; margin: .15rem 0 0; }
.clock {
    background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px; padding: .35rem .65rem; text-align: right; min-width: 120px;
}
.clock .lbl { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.clock .val { font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 700; color: var(--qn-lima); }

.perf {
    height: 12px; background: var(--qn-verde-oscuro);
    background-image: radial-gradient(circle at center, #fff 5px, transparent 5.5px);
    background-size: 20px 12px; background-repeat: repeat-x; background-position: 8px -6px;
}

/* --- Tabla de captura: encabezado negro + filas con casilla de verificacion --- */
.ticket-tabla { margin: 1rem 1.25rem 0; border: 1.5px solid #111; border-radius: 8px; overflow: hidden; }
.col-labels {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem;
    padding: .55rem .9rem; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: #111; font-weight: 800; text-align: center;
}
.col-labels .mid { min-width: 60px; }

.matches { padding: 0; }
.match {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0;
    border-bottom: 1px solid #ddd;
}
.match:last-child { border-bottom: 0; }
.match.incompleto { box-shadow: inset 3px 0 0 rgba(220,53,69,.5); }
.match-status { grid-column: 1 / -1; text-align: center; font-size: .68rem; color: #6b7a70; padding: 0 .5rem .4rem; }
.match-status.is-postponed { color: #9a6700; font-weight: 700; }

/* --- Casilla de seleccion: check + escudo fijos a un lado, nombre centrado en toda la celda --- */
.mcheck {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-width: 0; min-height: 32px; padding: .45rem 48px; cursor: pointer; border-right: 1px solid #ddd;
    transition: background-color .12s ease;
}
.mcheck-icons {
    position: absolute; left: .5rem; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: .4rem;
}
.mcheck-visitante .mcheck-icons { left: auto; right: .5rem; }
.mcheck input[type="checkbox"] {
    flex: none; width: 17px; height: 17px; accent-color: #111; cursor: pointer;
}
.mcheck .escudo { flex: none; width: 30px; height: 30px; }
.mcheck .team-name {
    font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .01em;
    white-space: nowrap; overflow: visible; color: #10201a; text-align: center;
}
.mcheck-empate { min-width: 60px; padding: .45rem .7rem; }
.match .mcheck:last-child { border-right: 0; }
.mcheck:hover { background: rgba(20,83,45,.06); }
.mcheck.on { background: rgba(20,83,45,.1); }
.mcheck.on .team-name { color: var(--qn-verde-cancha); }
.mcheck.on.multiple { background: rgba(163,230,53,.18); }
.mcheck.on.multiple .team-name { color: #6b9c0b; }

/* En movil no alcanza el ancho para centrar el nombre con el icono fijo a un lado
   (se tapan): se vuelve a un flujo simple, icono + nombre pegados uno al otro. */
@media (max-width: 640px) {
    .col-labels { padding: .45rem .3rem; font-size: .56rem; gap: .4rem; }
    .col-labels .mid { min-width: 0; }
    .match { gap: .4rem; }
    .mcheck {
        position: static; justify-content: flex-start; padding: .35rem .3rem; gap: .3rem; min-height: 0;
    }
    .mcheck-visitante { justify-content: flex-end; }
    .mcheck-icons { position: static; transform: none; gap: .2rem; }
    .mcheck input[type="checkbox"] { width: 14px; height: 14px; }
    .mcheck .escudo { width: 18px; height: 18px; }
    .mcheck .team-name {
        min-width: 0; flex-shrink: 1; font-size: .54rem; overflow: hidden; text-overflow: ellipsis; text-align: left;
    }
    .mcheck-visitante .team-name { text-align: right; }
    .mcheck-empate { min-width: 0; padding: .35rem .2rem; }
}

/* --- Control de aleatorio: dobles/triples elegidos por el usuario --- */
.random-bar {
    margin: .6rem 1.25rem 0; padding: .6rem .9rem; border-radius: 8px;
    background: #fff; border: 1.5px solid #111;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.stepper-group { display: flex; align-items: center; gap: .4rem; }
.stepper-group span:first-child { font-size: .78rem; font-weight: 700; color: #10201a; }
.stepper { display: flex; align-items: center; border: 1.5px solid #111; border-radius: 4px; overflow: hidden; background: #fff; }
.stepper button { width: 22px; height: 26px; border: 0; background: transparent; color: #10201a; font-size: .95rem; cursor: pointer; }
.stepper button:hover { background: #f2f2f2; }
.stepper .n {
    width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; font-size: .88rem;
    border-left: 1.5px solid #111; border-right: 1.5px solid #111; color: #10201a;
}
.btn-dice {
    margin-left: auto; background: #111; color: #fff; border: 0; border-radius: 6px;
    padding: .5rem 1.1rem; font-weight: 800; font-size: .82rem; cursor: pointer; letter-spacing: .02em;
}
.btn-dice:hover { filter: brightness(1.3); }
.random-hint { width: 100%; font-size: .68rem; color: #6b7a70; }

/* --- Resumen fijo de combinaciones/subtotal --- */
.ticket-foot {
    position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-top: .6rem; padding: .75rem 1.25rem;
    background: #fff; border-top: 2px solid var(--qn-verde-cancha);
}
.combo-readout { display: flex; gap: 1.5rem; align-items: baseline; font-variant-numeric: tabular-nums; }
.combo-readout b { font-size: 1.15rem; color: var(--qn-verde-cancha); }
.combo-readout .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7a70; }
.combo-readout.excedido b { color: #dc3545; }
#totalSubtotal { font-size: 1.7rem; font-weight: 800; color: #dc3545; }
.btn-add {
    background: #dc3545; color: #fff; border: 0; border-radius: 10px;
    padding: .7rem 1.3rem; font-weight: 800; font-size: .88rem; cursor: pointer;
}
.btn-add:hover { filter: brightness(1.1); }
.btn-add:disabled { opacity: .5; cursor: not-allowed; }

/* --- Carrito + registro (sidebar) --- */
.slip {
    position: sticky; top: 1rem; background: #fff; border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -18px rgba(11,61,32,.35);
    overflow: hidden;
}
.slip-head { padding: 1rem 1.25rem .8rem; border-bottom: 1px solid #e5e7eb; }
.slip-head .eyebrow { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7a70; }
.slip-head h2 { font-size: 1.05rem; font-weight: 800; margin: .15rem 0 0; }
.slip-body { padding: .9rem 1.25rem; max-height: 320px; overflow-y: auto; }
.slip-pago { padding: .9rem 1.25rem; border-top: 1px solid #e5e7eb; }
.slip-pago .eyebrow { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7a70; }
.slip-registro { padding: .9rem 1.25rem 1.1rem; border-top: 1px solid #e5e7eb; }
.slip-registro .eyebrow { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7a70; font-weight: 700; }
.btn-continue {
    display: block; width: 100%; padding: .8rem 1rem;
    background: #dc3545; color: #fff; border: 0; border-radius: 10px;
    font-weight: 700; font-size: .9rem; cursor: pointer; text-align: center;
}
.btn-continue:hover { filter: brightness(1.2); }
.btn-continue:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.slip-note { margin: .5rem 0 0; font-size: .72rem; color: #6b7a70; text-align: center; }

/* --- Tabla de jugadas del carrito (una columna por partido) --- */
.jugadas-tabla-wrap { overflow-x: auto; margin-bottom: .8rem; border: 1px solid #e5e7eb; border-radius: 10px; }
.jugadas-tabla { border-collapse: collapse; width: 100%; font-size: .76rem; white-space: nowrap; }
.jugadas-tabla th, .jugadas-tabla td { padding: .4rem .5rem; text-align: center; border-bottom: 1px solid #e5e7eb; }
.jugadas-tabla thead th {
    background: var(--qn-fondo); color: #6b7a70; font-size: .66rem; letter-spacing: .04em;
    text-transform: uppercase; font-weight: 700; position: sticky; top: 0;
}
.jugadas-tabla tbody tr:last-child td { border-bottom: 0; }
.jugadas-tabla .jt-num { color: #6b7a70; font-weight: 700; }
.jugadas-tabla .jt-pick { color: var(--qn-verde-cancha); font-weight: 700; }
.jugadas-tabla .jt-pick.multiple { color: #dc3545; }
.jugadas-tabla .jt-monto { color: #10201a; font-weight: 700; }
.jugadas-tabla .jt-eliminar {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
    border-radius: 50%; border: 1px solid #dc3545; background: #fff; color: #dc3545;
    font-size: .9rem; line-height: 1; cursor: pointer; padding: 0;
}
.jugadas-tabla .jt-eliminar:hover { background: #dc3545; color: #fff; }

/* --- Previsualizacion del comprobante de pago --- */
.comprobante-preview:empty { margin-top: 0; }
.comprobante-preview { margin-top: .6rem; }
.comprobante-preview img {
    display: block; max-width: 100%; max-height: 220px; border-radius: 8px;
    border: 1px solid #dee6df; background: var(--qn-fondo);
}
.comprobante-preview .aviso { font-size: .75rem; color: #dc3545; margin-top: .3rem; }

/* --- Confirmacion de registro --- */
.cf-wrap { max-width: 640px; margin: 0 auto; }

.cf-hero { text-align: center; margin-bottom: 1.5rem; }
.cf-check {
    width: 62px; height: 62px; border-radius: 50%; margin: 0 auto .9rem;
    background: radial-gradient(circle at 32% 26%, #2ea862, #1a7a45);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -10px rgba(26,122,69,.55);
}
.cf-check svg { width: 27px; height: 27px; }
.cf-hero h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .25rem; letter-spacing: -.015em; }
.cf-hero p { margin: 0 auto; max-width: 34ch; color: var(--panel-ink-soft); font-size: .93rem; }

/* Stepper: Recibido -> En revision -> Confirmada */
.cf-steps { list-style: none; display: flex; margin: 1.5rem auto 1.8rem; padding: 0; max-width: 440px; }
.cf-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cf-step::before {
    content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--panel-line);
}
.cf-step:first-child::before { display: none; }
.cf-step-dot {
    position: relative; z-index: 1; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
    background: var(--panel-line); color: var(--panel-ink-soft); font-size: .72rem; font-weight: 800;
    border: 2px solid var(--qn-fondo); margin-bottom: 7px;
}
.cf-step-dot svg { width: 12px; height: 12px; }
.cf-step-lbl { font-size: .72rem; font-weight: 700; color: var(--panel-ink-soft); }
.cf-step-sub { font-size: .63rem; color: var(--panel-ink-soft); opacity: .8; margin-top: 1px; }
.cf-step.done .cf-step-dot { background: #1a7a45; color: #fff; }
.cf-step.done::before { background: #1a7a45; }
.cf-step.current .cf-step-dot { background: var(--qn-verde-cancha); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--qn-verde-cancha) 13%, transparent); }
.cf-step.current .cf-step-lbl { color: var(--panel-ink); }
.cf-step.current::before { background: linear-gradient(90deg, #1a7a45, var(--qn-verde-cancha)); }

/* Boleto del folio */
.cf-ticket {
    position: relative; background: var(--panel-paper); border-radius: 16px; box-shadow: var(--panel-shadow);
    margin: 1.2rem 0 1.4rem; display: grid; grid-template-columns: 1fr auto; align-items: stretch; overflow: hidden;
}
.cf-ticket-main { padding: 1.15rem 1.35rem; min-width: 0; }
.cf-ticket-main .cf-label { font-family: var(--panel-font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--panel-ink-soft); font-weight: 600; margin-bottom: .3rem; }
.cf-ticket-main .cf-folio { font-family: var(--panel-font-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: .04em; color: var(--panel-ink); word-break: break-all; }
.cf-folio-hint { font-size: .72rem; color: var(--panel-ink-soft); opacity: .85; margin-top: .5rem; }
.cf-ticket-stub {
    position: relative; flex: none; display: flex; align-items: center; padding: 0 1.15rem 0 1.35rem; background: var(--qn-verde-cancha);
}
.cf-ticket-stub::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: radial-gradient(circle, var(--qn-fondo) 2.5px, transparent 2.7px);
    background-size: 12px 13px; background-position: center; background-repeat: repeat-y;
}
.cf-notch { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--qn-fondo); right: calc(100% - 1px); transform: translateX(50%); }
.cf-notch.top { top: -10px; }
.cf-notch.bottom { bottom: -10px; }
.cf-copy {
    display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff;
    border-radius: 10px; padding: .5rem .7rem; font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer;
    transition: background-color .15s ease;
}
.cf-copy:hover { background: rgba(255,255,255,.2); }
.cf-copy svg { width: 15px; height: 15px; }
.cf-copy.ok { background: var(--qn-lima); border-color: var(--qn-lima); color: var(--qn-verde-oscuro); }

@media (max-width: 520px) {
    .cf-ticket { grid-template-columns: 1fr; }
    .cf-ticket-stub { padding: 0 1.35rem 1.15rem; background: none; }
    .cf-ticket-stub::before, .cf-notch { display: none; }
    .cf-ticket-main { padding-bottom: .55rem; }
    .cf-copy { flex-direction: row; width: 100%; justify-content: center; padding: .7rem; background: var(--qn-verde-cancha); border-color: var(--qn-verde-cancha); font-size: .8rem; }
}

.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .8rem; }
@media (max-width: 560px) { .cf-grid { grid-template-columns: 1fr; } }

.cf-card { background: var(--panel-paper); border: 1px solid var(--panel-line); border-radius: 14px; box-shadow: var(--panel-shadow); padding: 1rem 1.1rem; }
.cf-card h2 {
    font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; color: #1a7a45; font-weight: 800;
    margin: 0 0 .55rem; display: flex; align-items: center; gap: .4rem;
}
.cf-card h2 svg { width: 13px; height: 13px; stroke: #1a7a45; flex: none; }
.cf-card .cf-name { font-weight: 700; font-size: .95rem; margin: 0 0 .12rem; }
.cf-card .cf-muted { color: var(--panel-ink-soft); font-size: .82rem; margin: 0; }
.cf-card .cf-qname { font-weight: 700; font-size: .92rem; margin: 0 0 .2rem; }
.cf-stat-row { display: flex; gap: 1.4rem; margin-top: .55rem; }
.cf-stat-row div b { display: block; font-family: var(--panel-font-mono); font-size: 1rem; font-weight: 600; }
.cf-stat-row div span { font-size: .66rem; color: var(--panel-ink-soft); text-transform: uppercase; letter-spacing: .05em; }

.cf-next { margin-bottom: .9rem; }
.cf-next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cf-next-list li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; font-size: .87rem; align-items: start; }
.cf-next-ic { width: 26px; height: 26px; border-radius: 8px; background: #e7f6ec; display: grid; place-items: center; font-size: .9rem; }
.cf-bank { margin-top: 1rem; background: var(--qn-fondo); border: 1px dashed var(--panel-line); border-radius: 10px; padding: .8rem .9rem; font-size: .82rem; }
.cf-bank-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.cf-bank-head span { font-family: var(--panel-font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--panel-ink-soft); font-weight: 600; }
.cf-bank-copy { background: none; border: 0; color: #1a7a45; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.cf-bank-instr { margin: 0 0 .5rem; }
.cf-bank pre { margin: 0; font-family: var(--panel-font-mono); font-size: .8rem; white-space: pre-wrap; word-break: break-word; color: var(--panel-ink); }

.cf-actions { display: flex; gap: .7rem; margin-top: 1.3rem; }
.cf-btn {
    flex: 1; border-radius: 12px; padding: .8rem 1rem; font-weight: 700; font-size: .9rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
    border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
}
.cf-btn:hover { transform: translateY(-1px); }
.cf-btn svg { width: 16px; height: 16px; }
.cf-btn-primary { background: var(--qn-lima); color: var(--qn-verde-oscuro); box-shadow: 0 8px 18px -8px rgba(84,237,68,.5); }
.cf-btn-ghost { background: transparent; color: var(--panel-ink-soft); border-color: var(--panel-line); }
.cf-btn-ghost:hover { color: var(--panel-ink); border-color: var(--panel-ink-soft); text-decoration: none; }
.cf-note { text-align: center; font-size: .76rem; color: var(--panel-ink-soft); opacity: .8; margin: .8rem 0 0; }

@media (max-width: 640px) {
    .cf-wrap { padding-bottom: 4.5rem; }
    .cf-actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; margin: 0;
        background: color-mix(in srgb, var(--panel-paper) 92%, transparent); backdrop-filter: blur(8px);
        border-top: 1px solid var(--panel-line);
        padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    }
    .cf-actions .cf-btn-ghost { flex: 0 0 auto; padding: .8rem; }
    .cf-actions .cf-btn-ghost span { display: none; }
    .cf-note { display: none; }
    body:has(.cf-actions) .whatsapp-bubble { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

/* --- hero de portada (imagen/titulo/texto configurables desde el panel) --- */
.site-hero {
    position: relative;
    width: auto; margin: 0 calc(50% - 50vw) 1.5rem;
    min-height: 90vh;
    background: radial-gradient(ellipse 900px 600px at 20% -10%, color-mix(in srgb, var(--qn-lima) 16%, transparent), transparent 60%),
                linear-gradient(160deg, var(--qn-verde-oscuro), #04050d 70%);
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; overflow: hidden;
}
.site-hero::before {
    /* retícula tenue tipo "cancha", mismo lenguaje visual que el boleto de abajo */
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 15% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 90% at 15% 40%, #000 0%, transparent 70%);
}
.site-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4,5,13,.5) 0%, rgba(4,5,13,.6) 55%, rgba(4,5,13,.94) 100%);
}
.site-hero-rays {
    /* haces de luz tipo reflectores de estadio, sobre la foto y debajo del degradado oscuro */
    position: absolute; inset: 0; pointer-events: none;
    background:
        repeating-conic-gradient(from 200deg at 15% -12%, rgba(255,255,255,.12) 0deg 3deg, transparent 3deg 13deg),
        repeating-conic-gradient(from -20deg at 85% -12%, rgba(255,255,255,.12) 0deg 3deg, transparent 3deg 13deg);
    mix-blend-mode: screen; opacity: .6;
}
.site-hero-vignette {
    /* vineta mas dramatica en las orillas, para que el texto y el nav resalten */
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 45%, rgba(0,0,0,.55) 100%);
}
.site-hero-nav {
    position: relative; z-index: 2; flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: clamp(1.5rem, 4vh, 2.25rem) clamp(1.5rem, 5vw, 3.5rem) 0;
}
.shn-brand { display: inline-flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 2.1rem; }
.shn-brand:hover { color: #fff; }
.shn-brand img { width: 4.25rem; height: 4.25rem; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.08); padding: .35rem; }
.shn-link {
    display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.88); text-decoration: none;
    font-size: .82rem; font-weight: 700; border: 1px solid rgba(255,255,255,.32); border-radius: 99px; padding: .4rem .95rem;
}
.shn-link i { color: #25D366; }
.shn-link:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.site-hero-inner {
    position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center;
    max-width: 760px; margin: 1.75rem clamp(1rem, 5vw, 3.5rem);
    padding: 2.5rem clamp(1.75rem, 5vw, 3.5rem); color: #fff;
}
.site-hero-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--qn-lima); margin-bottom: .6rem; }
.site-hero-inner h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.1; margin: 0 0 .9rem; text-wrap: balance; }
.site-hero-inner p { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 0 1.5rem; max-width: 52ch; }
.site-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-hero-cta {
    display: inline-flex; align-items: center; gap: .5rem; background: var(--qn-lima); color: var(--qn-verde-oscuro);
    font-weight: 800; font-size: .9rem; padding: .75rem 1.4rem; border-radius: 10px; text-decoration: none;
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--qn-lima) 65%, transparent); transition: transform .12s ease;
}
.site-hero-cta:hover { transform: translateY(-2px); color: var(--qn-verde-oscuro); }
.site-hero-cta.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; }
.site-hero-cta.ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.site-hero-bolsa {
    position: relative; z-index: 1; flex: none;
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    padding: .9rem clamp(1.25rem, 4vw, 3rem);
    background: rgba(4,5,13,.78); border-top: 1px solid color-mix(in srgb, var(--qn-lima) 40%, transparent);
}
.shb-item { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 700; }
.shb-lead i { color: var(--qn-lima); }
.shb-monto { font-size: 1.25rem; font-weight: 800; color: var(--qn-lima); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .site-hero-inner { margin: 0 1rem; }
    .site-hero-nav { padding: 1.25rem 1rem 0; gap: .6rem; }
    .shn-brand { font-size: 1.05rem; gap: .55rem; }
    .shn-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
    .shn-brand img { width: 2.15rem; height: 2.15rem; border-radius: 7px; }
    .shn-link { flex: none; width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; border-radius: 50%; }
    .shn-link-label { display: none; }
}

/* --- estado vacio: no hay quinielas activas --- */
.empty-quinielas {
    position: relative;
    margin: -1.5rem -1rem;
    min-height: calc(100vh - 56px - 1.5rem);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1.25rem 3.5rem; overflow: hidden;
    background: radial-gradient(ellipse 900px 600px at 20% -10%, color-mix(in srgb, var(--qn-lima) 10%, transparent), transparent 60%),
                linear-gradient(160deg, var(--qn-verde-oscuro), #04050d 75%);
}
@media (min-width: 768px) {
    .empty-quinielas { margin-left: -1.5rem; margin-right: -1.5rem; }
}
/* En esta pantalla el panel oscuro entra directo al footer: sin franja clara,
   solo una costura tenue entre ambos tonos oscuros. */
main:has(> .empty-quinielas) + .site-footer { margin-top: 0; border-top: 1px solid rgba(255,255,255,.05); }
.empty-quinielas .eq-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 45%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 90% at 50% 45%, #000 0%, transparent 72%);
}
.empty-quinielas .eq-card {
    position: relative; z-index: 1; text-align: center; color: #fff;
    width: 100%; max-width: 34rem; padding: 1rem;
}
.empty-quinielas .eq-icon {
    width: 76px; height: 76px; margin: 0 auto 1.4rem; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--qn-verde-cancha), var(--qn-verde-oscuro));
    border: 1px solid color-mix(in srgb, var(--qn-lima) 45%, transparent);
    box-shadow: 0 18px 40px -18px rgba(163,230,53,.5);
    font-size: 2rem; color: var(--qn-lima);
}
.empty-quinielas .eq-eyebrow {
    font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--qn-lima); margin-bottom: .55rem;
}
.empty-quinielas h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.15;
    margin: 0 0 .75rem; text-wrap: balance;
}
.empty-quinielas p {
    font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.8);
    margin: 0 auto; max-width: 46ch;
}
.empty-quinielas .eq-actions {
    display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.75rem;
}
.empty-quinielas .eq-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--qn-lima); color: var(--qn-verde-oscuro);
    font-weight: 800; font-size: .9rem; padding: .7rem 1.35rem; border-radius: 10px; text-decoration: none;
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--qn-lima) 65%, transparent);
    transition: transform .12s ease;
}
.empty-quinielas .eq-cta:hover { transform: translateY(-2px); color: var(--qn-verde-oscuro); }
.empty-quinielas .eq-social {
    display: inline-flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem;
    color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
    font-size: 1.1rem; transition: background-color .12s ease, transform .12s ease;
}
.empty-quinielas .eq-social:hover { background: var(--qn-lima); color: var(--qn-verde-oscuro); transform: translateY(-2px); }

@media (prefers-reduced-motion: no-preference) {
    .empty-quinielas .eq-icon { animation: subeYAparece .55s .05s ease both; }
    .empty-quinielas .eq-eyebrow { animation: subeYAparece .55s .12s ease both; }
    .empty-quinielas h1 { animation: subeYAparece .55s .2s ease both; }
    .empty-quinielas p { animation: subeYAparece .55s .28s ease both; }
    .empty-quinielas .eq-actions { animation: subeYAparece .55s .36s ease both; }
}

/* --- pie de pagina + burbuja de WhatsApp (todo el sitio publico) --- */
.site-footer {
    margin-top: 2rem; background: linear-gradient(180deg, var(--qn-verde-oscuro), #04050d);
    color: rgba(255,255,255,.75);
}
.site-footer-inner {
    max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 1.25rem;
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.site-footer-brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: #fff; font-size: 1rem; }
.site-footer-brand img { width: 1.7rem; height: 1.7rem; object-fit: contain; border-radius: 6px; background: #eef2fb; padding: 3px; box-sizing: content-box; }
.site-footer-brand i { font-size: 1.3rem; color: var(--qn-lima); }
.site-footer-contact {
    display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: .5rem 1rem;
}
.site-footer-contact:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-footer-contact i { color: #25D366; font-size: 1rem; }
.site-footer-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.site-footer-social {
    display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem;
    color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
    font-size: 1.05rem; transition: background-color .12s ease, transform .12s ease;
}
.site-footer-social:hover { background: var(--qn-lima); color: var(--qn-verde-oscuro); transform: translateY(-2px); }
.site-footer-legal {
    max-width: 1180px; margin: 0 auto; padding: 1.1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; font-size: .78rem;
}
.site-footer-legal a { color: rgba(255,255,255,.75); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 640px) {
    .site-footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .site-footer-right { justify-content: center; }
    .site-footer-legal { flex-direction: column; align-items: center; text-align: center; }
}
.site-footer-legal a:hover { color: var(--qn-lima); text-decoration: underline; }

.whatsapp-bubble {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .12s ease;
}
.whatsapp-bubble:hover { transform: scale(1.06); color: #fff; }

/* =====================================================
   HUD futurista — pantalla de captura de quiniela
   El acento sigue tomando --qn-lima / --qn-verde-cancha,
   asi que el color configurable del panel admin sigue aplicando.
   ===================================================== */
.hud {
    --hud-bg: var(--qn-fondo);
    --hud-bg2: #ffffff;
    --hud-panel: #f6f9f6;
    --hud-line: color-mix(in srgb, var(--qn-verde-cancha) 30%, transparent);
    --hud-line-soft: #e3e9e2;
    --hud-ink: #10201a;
    --hud-ink-soft: #5c6d62;
    --hud-ink-faint: #93a49b;
    --hud-neon: var(--qn-lima);
    --hud-neon-ink: var(--qn-verde-oscuro);
    --hud-accent: var(--qn-verde-cancha);
    --hud-mono: "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace;
    background: var(--hud-bg);
    border-radius: 20px;
    padding: 1.75rem clamp(1rem, 3.5vw, 2.25rem) 2.25rem;
    max-width: 1400px; margin-left: auto; margin-right: auto;
}

/* --- tabs de quinielas activas --- */
.hud-top-row { display: flex; align-items: stretch; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hud-top-row .tabs-quinielas { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.hud .vigencia-grande {
    flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
    padding: .6rem 1.75rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--hud-accent), var(--qn-verde-oscuro)); color: #fff;
    box-shadow: 0 10px 22px -12px rgba(11,61,32,.5);
}
.hud .vigencia-grande .vg-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hud-neon); }
.hud .vigencia-grande .vg-value { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
@media (max-width: 700px) {
    .hud .vigencia-grande { align-items: center; width: 100%; }
    .hud .vigencia-grande .vg-value { font-size: 1.6rem; }
}
.hud .tab-quiniela {
    background: var(--hud-bg2); border: 1px solid var(--hud-line-soft); color: var(--hud-ink);
    box-shadow: 0 1px 2px rgba(16,32,26,.04);
}
.hud .tab-quiniela:hover, .hud .tab-quiniela.active { border-color: var(--hud-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hud-accent) 16%, transparent); color: var(--hud-ink); }
.hud .tq-nombre { color: var(--hud-ink); }
.hud .tq-meta { color: var(--hud-ink-soft); }
.hud .tq-urgente { background: var(--hud-neon); color: var(--hud-neon-ink); }
.hud .tq-dot { background: var(--hud-ink-faint); }
.hud .tq-dot.abierta { background: var(--hud-accent); }

/* --- boleto --- */
.hud .ticket {
    background: var(--hud-bg2); border-radius: 18px; box-shadow: 0 1px 2px rgba(16,32,26,.05), 0 24px 48px -28px rgba(16,32,26,.28);
    position: relative;
}
.hud .ticket::before, .hud .ticket::after {
    content: ""; position: absolute; width: 14px; height: 14px; border-color: color-mix(in srgb, var(--hud-accent) 55%, transparent); pointer-events: none; z-index: 2;
}
.hud .ticket::before { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.hud .ticket::after { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }

.hud .ticket-banner { position: relative; aspect-ratio: 21 / 6; overflow: hidden; background: var(--hud-panel); }
.hud .ticket-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hud .ticket-banner::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(11,61,32,.02) 55%, var(--hud-bg2) 100%);
}
@media (max-width: 560px) { .hud .ticket-banner { aspect-ratio: 16 / 9; } }

.hud .ticket-head {
    background: linear-gradient(135deg, var(--hud-accent), var(--qn-verde-oscuro)); color: #fff;
    position: relative; padding: 1.15rem 1.6rem 1.4rem;
    box-shadow: 0 6px 14px -8px rgba(11,61,32,.4);
}
.hud .ticket-head .eyebrow { letter-spacing: .12em; color: var(--hud-neon); margin-bottom: .3rem; }
.hud .ticket-head h1 { font-size: 1.35rem; }
.hud .perf { display: none; }
.hud .clock { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.16); }
.hud .clock .val { color: var(--hud-neon); }

.hud .ticket-tabla { margin: 1.25rem 1.6rem 0; }
.hud .match-status { color: var(--hud-ink-soft); }

.hud .random-bar { margin: .9rem 1.6rem 0; }

.hud .ticket-foot { background: var(--hud-bg2); border-top: 1px solid var(--hud-line-soft); padding: 1.1rem 1.6rem; margin-top: .9rem; }
.hud .btn-add { padding: .8rem 1.5rem; border-radius: 10px; }
.hud .combo-readout .lbl { color: var(--hud-ink-faint); }
.hud .combo-readout.excedido b { color: #dc3545; }
.hud .btn-add {
    background: #dc3545; color: #fff; letter-spacing: .01em;
    box-shadow: 0 8px 18px -10px rgba(220,53,69,.55);
}

/* --- carrito + registro --- */
.hud .slip { background: var(--hud-bg2); border-radius: 18px; box-shadow: 0 1px 2px rgba(16,32,26,.05), 0 24px 48px -28px rgba(16,32,26,.28); position: relative; }
.hud .slip::before, .hud .slip::after {
    content: ""; position: absolute; width: 14px; height: 14px; border-color: color-mix(in srgb, var(--hud-accent) 55%, transparent); pointer-events: none; z-index: 2;
}
.hud .slip::before { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.hud .slip::after { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }
.hud .slip-head { border-bottom: 1px solid var(--hud-line-soft); padding: 1.3rem 1.6rem 1.05rem; }
.hud .slip-head .eyebrow { color: var(--hud-ink-faint); letter-spacing: .1em; }
.hud .slip-head h2 { color: var(--hud-ink); font-size: 1.15rem; }
.hud .slip-body { padding: 1.15rem 1.6rem; }
.hud .slip-pago, .hud .slip-registro { border-top: 1px solid var(--hud-line-soft); padding: 1.15rem 1.6rem; }
.hud .slip-registro { padding-bottom: 1.4rem; }
.hud .slip-pago .eyebrow, .hud .slip-registro .eyebrow { color: var(--hud-accent); letter-spacing: .08em; }
.hud .slip-pago p, .hud .slip-body p { color: var(--hud-ink-soft); }
.hud .slip-pago .bg-light { background: var(--hud-panel) !important; color: var(--hud-ink-soft); font-size: .74rem; }
.hud .slip-note { color: var(--hud-ink-faint); }

.hud .jugadas-tabla-wrap { border-color: var(--hud-line-soft); }
.hud .jugadas-tabla th, .hud .jugadas-tabla td { border-bottom-color: var(--hud-line-soft); }
.hud .jugadas-tabla thead th { background: var(--hud-panel); color: var(--hud-ink-faint); }
.hud .jugadas-tabla .jt-num { color: var(--hud-ink-faint); }
.hud .jugadas-tabla .jt-pick { color: var(--hud-accent); }
.hud .jugadas-tabla .jt-pick.multiple { color: #dc3545; }
.hud .jugadas-tabla .jt-monto { color: var(--hud-ink); }
.hud .jugadas-tabla .jt-eliminar { background: var(--hud-bg2); }

.hud .slip-registro .form-label { color: var(--hud-ink-faint); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; }
.hud .slip-registro .form-control {
    background: var(--hud-bg2); border: 1px solid var(--hud-line-soft); color: var(--hud-ink); border-radius: 8px;
}
.hud .slip-registro .form-control::placeholder { color: var(--hud-ink-faint); }
.hud .slip-registro .form-control:focus { background: var(--hud-bg2); border-color: var(--hud-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hud-accent) 14%, transparent); color: var(--hud-ink); }
.hud .slip-registro .form-check-label { color: var(--hud-ink-soft); }
.hud .slip-registro .form-check-input {
    background-color: var(--hud-bg2); border: 1.5px solid var(--hud-line-soft); width: 1.1em; height: 1.1em;
}
.hud .slip-registro .form-check-input:checked { background-color: var(--hud-accent); border-color: var(--hud-accent); }
.hud .slip-registro .form-check-input:focus { border-color: var(--hud-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hud-accent) 14%, transparent); }

.hud .slip-registro input[type="file"].form-control { padding: .4rem .5rem; }
.hud .slip-registro input[type="file"].form-control::file-selector-button {
    background: color-mix(in srgb, var(--hud-accent) 10%, transparent); color: var(--hud-accent);
    border: 1px solid var(--hud-accent); border-radius: 6px; font-size: .72rem;
    padding: .4rem .7rem; margin-right: .7rem; cursor: pointer;
}
.hud .slip-registro input[type="file"].form-control::file-selector-button:hover {
    background: color-mix(in srgb, var(--hud-accent) 18%, transparent);
}
.hud .comprobante-preview img { border: 1px solid var(--hud-line-soft); background: var(--hud-panel); }

.hud .btn-continue {
    background: #dc3545; color: #fff; letter-spacing: .01em;
    box-shadow: 0 8px 18px -10px rgba(220,53,69,.55);
}
.hud .btn-continue:disabled { box-shadow: none; }

.hud .alert-info, .hud .alert-secondary {
    background: var(--hud-panel); border: 1px solid var(--hud-line-soft); color: var(--hud-ink-soft);
}

/* =====================================================
   Movimiento — entrada escalonada, hover con vida propia
   y pulsos sutiles en lo que esta "en vivo". Todo se apaga
   solo si el usuario pide menos movimiento en su sistema.
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
    @keyframes subeYAparece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
    @keyframes vigenciaPulso {
        0%, 100% { box-shadow: 0 10px 22px -12px rgba(11,61,32,.5); }
        50% { box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--hud-neon, var(--qn-lima)) 55%, transparent); }
    }
    @keyframes puntoPulso {
        0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--qn-verde-cancha) 55%, transparent); }
        70% { box-shadow: 0 0 0 6px transparent; }
    }
    @keyframes burbujaRespira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
    @keyframes pickPop { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }

    /* --- entrada del hero, en cascada --- */
    .site-hero-nav { animation: subeYAparece .6s ease both; }
    .site-hero-eyebrow { animation: subeYAparece .55s .12s ease both; }
    .site-hero-inner h1 { animation: subeYAparece .55s .2s ease both; }
    .site-hero-inner p { animation: subeYAparece .55s .28s ease both; }
    .site-hero-ctas { animation: subeYAparece .55s .36s ease both; }
    .site-hero-bolsa { animation: aparece .6s .5s ease both; }

    /* --- tabs y partidos entran uno tras otro --- */
    .tab-quiniela { animation: subeYAparece .5s ease both; }
    .tab-quiniela:nth-child(1) { animation-delay: .05s; }
    .tab-quiniela:nth-child(2) { animation-delay: .11s; }
    .tab-quiniela:nth-child(3) { animation-delay: .17s; }
    .tab-quiniela:nth-child(n+4) { animation-delay: .22s; }

    .hud .match { animation: subeYAparece .4s ease both; }
    .hud .match:nth-child(1) { animation-delay: .04s; }
    .hud .match:nth-child(2) { animation-delay: .08s; }
    .hud .match:nth-child(3) { animation-delay: .12s; }
    .hud .match:nth-child(4) { animation-delay: .16s; }
    .hud .match:nth-child(5) { animation-delay: .2s; }
    .hud .match:nth-child(6) { animation-delay: .24s; }
    .hud .match:nth-child(7) { animation-delay: .28s; }
    .hud .match:nth-child(8) { animation-delay: .32s; }
    .hud .match:nth-child(9) { animation-delay: .36s; }
    .hud .match:nth-child(n+10) { animation-delay: .4s; }

    /* --- lo que esta "en vivo" respira despacio --- */
    .hud .vigencia-grande { animation: vigenciaPulso 2.6s ease-in-out infinite; }
    .hud .tq-dot.abierta { animation: puntoPulso 1.8s ease-in-out infinite; }
    .whatsapp-bubble { animation: burbujaRespira 2.8s ease-in-out infinite; }
    .whatsapp-bubble:hover { animation: none; }

    /* --- feedback al elegir un pick --- */
    .hud .mcheck.on { animation: pickPop .3s ease; }
}

/* --- hover con mas vida (siempre activo, es solo un desplazamiento chico) --- */
.hud .tab-quiniela { transition: transform .15s ease, border-color .12s ease, box-shadow .12s ease; }
.hud .tab-quiniela:hover { transform: translateY(-2px); }
.hud .match { transition: transform .15s ease, box-shadow .15s ease, border-color .12s ease; }
.hud .match:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -12px rgba(16,32,26,.2); }
.hud .mcheck { transition: transform .12s ease, background-color .12s ease; }

/* =====================================================
   Rediseño captura de quiniela · celda-botón L/E/V,
   progreso, pasos y barra móvil (conserva la estructura)
   ===================================================== */
.qprog { display: flex; align-items: center; gap: .7rem; margin: 1rem 1.25rem 0; font-size: .74rem; color: #6b7a70; }
.qprog-track { flex: 1; height: 6px; border-radius: 99px; background: #e3e9e2; overflow: hidden; }
.qprog-track i { display: block; height: 100%; width: 0; background: var(--qn-lima); border-radius: 99px; transition: width .2s ease; }
.qprog b { color: #10201a; font-weight: 800; }
.hud .qprog { color: var(--hud-ink-soft); }
.hud .qprog-track { background: var(--hud-line-soft); }
.hud .qprog b { color: var(--hud-ink); }

.mcheck {
    position: relative; display: flex; align-items: center; gap: .5rem; min-height: 44px;
    padding: .5rem .9rem; cursor: pointer; border: 2px solid transparent; justify-content: flex-start;
    user-select: none; -webkit-tap-highlight-color: transparent;
    transition: background-color .12s ease, border-color .12s ease;
}
.mcheck-local { padding-left: 1.1rem; }
.mcheck-visitante { justify-content: flex-end; padding-right: 1.1rem; }
.mcheck-empate { flex: none; min-width: 82px; justify-content: center; border-left: 2px solid #e6ebe6; border-right: 2px solid #e6ebe6; }
.hud .mcheck-empate { border-left-color: var(--hud-line-soft); border-right-color: var(--hud-line-soft); }

.mcheck input.pick-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; margin: 0; }
.mcheck-mark {
    flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #c7d0cb; background: #fff;
    display: grid; place-items: center; transition: background-color .12s ease, border-color .12s ease;
}
.mcheck-mark::after {
    content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0); transition: transform .12s ease;
}
.hud .mcheck-mark { background: var(--hud-bg2); border-color: #c7d0cb; }

.mcheck .team-name {
    font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #10201a; flex: 1; min-width: 0;
}
.hud .mcheck .team-name { color: var(--hud-ink); }
.mcheck-local .team-name { text-align: left; }
.mcheck-visitante .team-name { text-align: right; }
.mcheck-empate .team-name, .mcheck-e-lbl { display: none; }
.mcheck .escudo { flex: none; width: 26px; height: 26px; }

.mcheck:hover { background: #f4f7f4; }
.hud .mcheck:hover { background: var(--hud-panel); }

.mcheck.on .mcheck-mark::after { transform: rotate(45deg) scale(1); }
.mcheck.on { border-color: currentColor; }
.mcheck-local.on   { background: #e9f1fb; color: #205a96; }
.mcheck-local.on .mcheck-mark   { background: #205a96; border-color: #205a96; }
.mcheck-empate.on  { background: #eef1f4; color: #55636e; }
.mcheck-empate.on .mcheck-mark  { background: #55636e; border-color: #55636e; }
.mcheck-visitante.on { background: #e7f6ec; color: #1a8f4c; }
.mcheck-visitante.on .mcheck-mark { background: #1a8f4c; border-color: #1a8f4c; }
.mcheck.on .team-name { color: inherit; }
/* la clase .multiple ya no cambia el fondo: el aviso lo da .match-tag */
.mcheck.on.multiple { }

.match { position: relative; }
.match-tag {
    position: absolute; left: 50%; top: 3px; transform: translateX(-50%); z-index: 3; pointer-events: none;
    font-family: var(--hud-mono, "SF Mono", Consolas, monospace); font-size: .5rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; padding: .08rem .34rem; border-radius: 4px;
    background: var(--qn-verde-cancha); color: var(--qn-lima);
}
.match-tag[hidden] { display: none; }

/* --- Paso 3 bloqueado hasta tener jugadas --- */
.slip-registro-wrap { position: relative; }
.slip-lock {
    display: none; position: absolute; inset: 0; z-index: 4; align-items: center; justify-content: center;
    text-align: center; gap: .5rem; padding: 1.5rem; font-size: .84rem; font-weight: 600; color: #6b7a70;
    background: color-mix(in srgb, #fff 78%, transparent); backdrop-filter: blur(2px);
}
.hud .slip-lock { background: color-mix(in srgb, var(--hud-bg2) 80%, transparent); color: var(--hud-ink-soft); }
.slip-registro-wrap[data-jugadas="0"] .slip-lock { display: flex; }
.slip-registro-wrap[data-jugadas="0"] .slip-pago,
.slip-registro-wrap[data-jugadas="0"] .slip-registro { opacity: .4; pointer-events: none; }

/* --- Barra móvil fija (reemplaza el pie sticky en pantallas chicas) --- */
.qbar-mobile { display: none; }
@media (max-width: 920px) {
    .ticket-foot { display: none; }
    .qbar-mobile {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
        align-items: center; justify-content: space-between; gap: .8rem;
        background: color-mix(in srgb, #fff 93%, transparent); backdrop-filter: blur(10px);
        border-top: 2px solid var(--qn-verde-cancha);
        padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    }
    .hud .qbar-mobile { background: color-mix(in srgb, var(--hud-bg2) 93%, transparent); border-top-color: var(--hud-accent); }
    .qbar-mobile .qbm-read b { font-family: var(--hud-mono, monospace); font-weight: 800; font-size: 1rem; color: #dc3545; }
    .qbar-mobile .qbm-read span { display: block; font-size: .62rem; color: #6b7a70; }
    .qbar-mobile .btn-add { padding: .7rem 1.1rem; white-space: nowrap; }
    main:has(.qbar-mobile) ~ .whatsapp-bubble { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* En móvil la tabla se queda COMPACTA (una fila por partido), solo se
   afina el tamaño: no se apila en tarjetas para no alargar el listado. */
@media (max-width: 640px) {
    .qprog { margin: .8rem .9rem 0; font-size: .68rem; }
    .ticket-tabla { margin: .8rem .9rem 0; }
    .col-labels { padding: .4rem .3rem; font-size: .54rem; gap: .3rem; }
    .col-labels .mid { min-width: 0; }

    .match { grid-template-columns: 1fr auto 1fr; gap: 0; align-items: center; }
    .mcheck { min-height: 40px; padding: .45rem .3rem; gap: .28rem; border-width: 0; align-items: center; justify-content: flex-start; }
    .mcheck-local { padding-left: .45rem; }
    .mcheck-visitante { padding-right: .45rem; justify-content: flex-end; }
    .mcheck-empate { min-width: 42px; padding: .4rem .15rem; justify-content: center; border-left-width: 1px; border-right-width: 1px; }

    .mcheck-mark { width: 15px; height: 15px; border-radius: 5px; }
    .mcheck-mark::after { width: 4px; height: 7px; border-width: 0 2px 2px 0; }
    .mcheck .escudo { width: 16px; height: 16px; }

    /* Nombres completos: se permiten 2 líneas en vez de recortar con "…" */
    .mcheck .team-name {
        font-size: .55rem; letter-spacing: 0; line-height: 1.12;
        white-space: normal; overflow: visible; text-overflow: clip; word-break: normal;
    }
    .mcheck-local .team-name { text-align: left; }
    .mcheck-visitante .team-name { text-align: right; }

    /* estado marcado: solo tinte de fondo, sin el anillo de 2px (ocupa alto) */
    .mcheck.on { border-width: 0; }
    .mcheck-empate.on { border-left-width: 1px; border-right-width: 1px; }

    .match-tag { top: 1px; font-size: .46rem; padding: .06rem .28rem; }

    /* Comprobante: el botón nativo + nombre no caben en una línea → se apilan */
    .hud .slip-registro input[type="file"].form-control {
        display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        line-height: 1.6; padding: .5rem .6rem;
    }
    .hud .slip-registro input[type="file"].form-control::file-selector-button {
        display: block; width: 100%; margin: 0 0 .5rem; text-align: center;
    }
}

/* --- Instalar como app (PWA) --- */
.pwa-install { background: var(--qn-lima); color: var(--qn-verde-oscuro); border-color: var(--qn-lima); }
.pwa-install:hover { background: var(--qn-lima); color: var(--qn-verde-oscuro); filter: brightness(1.06); }
.pwa-install i { color: var(--qn-verde-oscuro); }

.pwa-ios-hint {
    position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(7,12,24,.55); padding: 1rem;
}
.pwa-ios-hint[hidden] { display: none; }
.pwa-ios-card {
    background: #fff; color: #10201a; border-radius: 16px 16px 0 0; max-width: 26rem; width: 100%;
    padding: 1.5rem 1.4rem 1.6rem; position: relative; box-shadow: 0 -10px 40px -12px rgba(0,0,0,.4);
}
@media (min-width: 560px) { .pwa-ios-hint { align-items: center; } .pwa-ios-card { border-radius: 16px; } }
.pwa-ios-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .9rem; display: flex; align-items: center; gap: .5rem; }
.pwa-ios-card ol { margin: 0 0 1.1rem; padding-left: 1.2rem; display: grid; gap: .55rem; font-size: .9rem; line-height: 1.5; }
.pwa-ios-card ol i { color: var(--qn-verde-cancha); }
.pwa-ios-x {
    position: absolute; top: .6rem; right: .8rem; border: 0; background: none; font-size: 1.6rem; line-height: 1;
    color: #6b7a70; cursor: pointer;
}
.pwa-ios-ok {
    width: 100%; border: 0; border-radius: 10px; padding: .7rem; font-weight: 800; font-size: .88rem; cursor: pointer;
    background: var(--qn-verde-cancha); color: #fff;
}
