/* ==========================================================================
   Verificar cartón (verify.php) — diseño 2026, prefijo vf-.
   Boceto aprobado: mockups/verificar-rediseno-2026.html.
   Los cartones usan los CSS reales de assets/bingo/css/cartones/ (los mismos del PDF).
   ========================================================================== */
.vf { padding: 40px 0 80px; }
.vf-wrap { width: var(--b-max); margin: 0 auto; }

/* Cabecera: buscador a la izquierda, «encuentra el código» a la derecha */
.vf-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.vf-hero h1 { font-size: var(--b-fs-h1, clamp(34px, 3.4vw, 50px)); font-weight: 800; line-height: 1.05; }
.vf-hero h1 + p { margin-top: 10px !important; color: var(--b-muted); font-size: var(--b-fs-lead, 20px); max-width: 32em; }
.vf-search { margin-top: 24px; padding: 10px; display: flex; gap: 10px; align-items: center; border-radius: 26px; }
.vf-search-ico { width: 28px; height: 28px; margin-left: 12px; flex-shrink: 0; color: var(--b-muted); }
.vf-search input {
    flex: 1; min-width: 0; min-height: 64px; padding: 6px 8px;
    border: 0; background: transparent;
    font-size: 28px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.vf-search input::placeholder { color: #9aa3b2; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.vf-search input:focus { outline: none; }
.vf-search:focus-within { box-shadow: 0 0 0 4px var(--b-blue), var(--b-shadow); }
.vf-search .b-btn { min-height: 64px; padding-inline: 32px; font-size: 20px; }
.vf-search .b-btn:disabled { opacity: .7; cursor: progress; }
.vf-hint { margin-top: 10px !important; padding-left: 14px; color: var(--b-muted); font-size: 16px; font-weight: 600; }

/* Cartón de ejemplo con el código señalado en el pie */
.vf-where { position: relative; padding: 28px 28px 22px; border-radius: 28px; background: linear-gradient(135deg, var(--b-blue-soft) 0%, var(--b-pink-soft) 100%); }
.vf-where-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 14px; border-radius: 999px; background: #fff; font-size: 16px; font-weight: 800; }
.vf-where .bingo-card { transform: rotate(-1.5deg); background: #fff; box-shadow: 0 2px 4px rgba(26, 26, 46, .08), 0 18px 36px -10px rgba(26, 26, 46, .30); }
.vf-where .bingo-card-footer { font-size: 13px; }
.vf-where .card-serial { padding: 2px 8px; border-radius: 8px; background: #fff4c7; box-shadow: 0 0 0 3px var(--b-pink); }
.vf-arrow { position: absolute; right: 22px; bottom: -18px; padding: 6px 14px; border-radius: 999px; background: var(--b-pink); color: #fff; font-size: 16px; font-weight: 800; box-shadow: var(--b-shadow); }

/* Resultado (lo pinta el JS dentro de #verifyResult) */
.vf-result { margin-top: 44px; scroll-margin-top: 110px; }
.vf-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; overflow: hidden; }
.vf-res--single, .vf-res--bad { grid-template-columns: 1fr; }
.vf-res-info { padding: 28px 32px 30px; }
.vf-res-head { display: flex; align-items: center; gap: 16px; }
.vf-res-ico { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; }
.vf-res-ico svg { width: 32px; height: 32px; }
.vf-res--ok .vf-res-ico { background: var(--b-green-soft); color: var(--b-green-ink); }
.vf-res--bad .vf-res-ico { background: #fdecec; color: #9b1c1c; }
.vf-res-head h2 { font-size: var(--b-fs-h2, 30px); font-weight: 800; line-height: 1.1; }
.vf-res--ok h2 { color: var(--b-green-ink); }
.vf-res--bad h2 { color: #9b1c1c; }
.vf-res-head p { margin-top: 2px !important; color: var(--b-muted); font-size: 18px; }
.vf-facts { margin: 22px 0 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vf-res--single .vf-facts { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.vf-fact { padding: 12px 16px; border-radius: 16px; background: var(--b-surface-2); }
.vf-fact dt { color: var(--b-muted); font-size: 15px; font-weight: 700; }
.vf-fact dd { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.vf-fact--serial dd { letter-spacing: .05em; }
.vf-res-card { display: grid; place-items: center; padding: 28px; background: var(--b-green-soft); }
.vf-res-card .result-card-preview { width: 100%; max-width: 520px; }
.vf .result-card-preview .bingo-card { background: #fff; }

/* Serie completa: todos los cartones en rejilla */
.vf-series { padding: 24px 28px 28px; border-top: 2px solid var(--b-line); }
.vf-series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.vf-series-grid figure { margin: 0; }
.vf-series-grid figcaption { margin-bottom: 6px; font-size: 16px; font-weight: 800; }

/* Cómo funciona */
.vf-steps { margin-top: 64px; }
.vf-steps h2, .vf-cta h2 { font-size: var(--b-fs-h2, clamp(28px, 2.6vw, 38px)); font-weight: 800; line-height: 1.1; }
.vf-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.vf-step h3 { font-size: var(--b-fs-h3, 22px); font-weight: 800; line-height: 1.2; }
.vf-step p { margin-top: 6px !important; color: var(--b-muted); font-size: 17px; line-height: 1.45; }
.vf-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vf-step-ico { width: 56px; height: 56px; }

/* Llamada final */
.vf-cta { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px 36px; border-radius: var(--b-radius-lg); background: var(--b-text); color: #fff; }
.vf-cta h2 { color: #fff; }
.vf-cta p { margin-top: 8px !important; font-size: 18px; color: #c9cfdb; max-width: 40em; }

@media (max-width: 1000px) {
    .vf-hero { grid-template-columns: 1fr; gap: 28px; }
    .vf-where { max-width: 560px; }
    .vf-res { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .vf-steps-grid { grid-template-columns: 1fr; }
    .vf-cta { grid-template-columns: 1fr; padding: 26px 22px; }
}
@media (max-width: 640px) {
    .vf { padding-top: 20px; }
    .vf-hero h1 + p { font-size: var(--b-fs-lead, 18px); }
    .vf-search { flex-wrap: wrap; padding: 8px; }
    .vf-search-ico { display: none; }
    .vf-search input { min-height: 56px; font-size: 24px; padding-left: 12px; }
    .vf-search .b-btn { width: 100%; }
    .vf-where { padding: 20px 16px 18px; }
    .vf-arrow { font-size: 14px; right: 12px; }
    .vf-res-info { padding: 22px 18px; }
    .vf-res-head h2 { font-size: var(--b-fs-h2, 26px); }
    .vf-facts, .vf-res--single .vf-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .vf-fact dd { font-size: 18px; }
    .vf-res-card { padding: 16px; }
    .vf-series { padding: 18px 16px 20px; }
    .vf-cta .b-btn { width: 100%; }
}

/* Las celdas del cartón de muestra no se pulsan */
.vf .bingo-cell { cursor: default; }
.vf .bingo-cell:active { transform: none; }
