/* ================================================
   BINGU — Portada (index.php + includes/hero.php), diseño 2026
   Usa los tokens y componentes de brand.css (.b-*); aquí solo va la maquetación propia (prefijo hp-).
   JS: assets/js/hero-bingo.js (tele del hero) y assets/js/home.js (filtros, cartones, voces).
   Boceto de referencia: mockups/portada-rediseno-2026.html
   ================================================ */
body:has(.hp) { background: var(--b-bg); }

/* ---------- Estructura común de la portada ---------- */
.hp { padding-bottom: 8px; }
.hp-wrap { width: var(--b-max); margin: 0 auto; }
.hp-section { padding: 72px 0 0; }
.hp-head { max-width: 860px; margin: 0 auto 32px; text-align: center; }
.hp-kicker {
    display: inline-block; margin-bottom: 6px;
    color: var(--b-pink-ink); font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.hp-title { font-size: var(--b-fs-h2, clamp(32px, 3.4vw, 46px)); font-weight: 800; line-height: 1.08; }
.hp-sub { margin-top: 12px !important; color: var(--b-muted); font-size: var(--b-fs-lead, 20px); }
.hp-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hp-arrow { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- 1. HERO ---------- */
.hp-hero { padding: 40px 0 0; }
.hp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
}
.hp-hero-copy h1 {
    font-size: var(--b-fs-h1, clamp(38px, 3.9vw, 60px));
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.01em;
}
.hp-hero-copy h1 span { display: block; }
.hp-hero-copy > p { margin-top: 18px; color: var(--b-muted); font-size: var(--b-fs-lead, 21px); max-width: 34em; }
.hp-safe { margin-bottom: 16px; }

/* Las dos puertas de entrada: números e imágenes */
.hp-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.hp-door {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px;
    border: 3px solid var(--b-line);
    border-radius: var(--b-radius-lg);
    background: var(--b-surface);
    color: var(--b-text);
    text-decoration: none;
    box-shadow: var(--b-shadow);
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.hp-door:hover { border-color: var(--b-blue); box-shadow: var(--b-shadow-hover); }
.hp-door:active { transform: scale(.98); }
.hp-door--images:hover { border-color: var(--b-pink); }
.hp-door-art {
    height: 92px; border-radius: 18px;
    display: grid; place-items: center;
    background: var(--b-blue-soft);
}
.hp-door--images .hp-door-art { background: var(--b-pink-soft); font-size: 40px; letter-spacing: 6px; }
.hp-mini { display: grid; grid-template-columns: repeat(10, 12px); gap: 4px; }
.hp-mini i { width: 12px; height: 12px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1.5px #bfe9fb; }
.hp-mini i.on { background: var(--b-blue); box-shadow: none; }
.hp-door-name { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; line-height: 1.1; }
.hp-door-name .hp-arrow { margin-left: auto; color: var(--b-blue-ink); }
.hp-door--images .hp-door-name .hp-arrow { color: var(--b-pink-ink); }
.hp-door-meta { color: var(--b-muted); font-size: 16px; font-weight: 600; line-height: 1.3; margin-top: -8px; }
.hp-door-cta {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
    padding: 2px 12px; border-radius: 999px;
    background: var(--b-text); color: var(--b-on-accent);
    font-size: 15px; font-weight: 800;
}
.hp-door-cta svg { width: 12px; height: 12px; fill: currentColor; }

.hp-hero-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.hp-link {
    color: var(--b-pink-ink); font-weight: 800; font-size: 18px;
    text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}

/* La «tele» con la partida de verdad */
.hp-tv {
    background: var(--b-text);
    border-radius: 30px;
    padding: 12px;
    box-shadow: 0 30px 60px -20px rgba(26, 26, 46, .35);
}
.hp-tv-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: var(--b-bg);
}
.hp-tv-screen iframe {
    position: absolute; top: 0; left: 0;
    width: 1280px; height: 720px; border: 0;
    transform-origin: 0 0;
    pointer-events: none;
}
.hp-tv-foot { display: flex; justify-content: center; margin-top: 16px; }

/* Selector de tipo de bingo (tele, temas y cartones) */
.hp-seg {
    display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    padding: 6px;
    border-radius: 24px;
    background: var(--b-surface);
    box-shadow: var(--b-shadow);
}
.hp-seg-group { display: flex; align-items: center; gap: 6px; }
.hp-seg-group + .hp-seg-group { padding-left: 6px; border-left: 2px solid var(--b-line); }
.hp-seg-label { padding: 0 6px 0 10px; color: var(--b-muted); font-size: 15px; font-weight: 700; }
.hp-seg button {
    min-height: 44px; padding: 4px 16px;
    border: 3px solid transparent; border-radius: 16px;
    background: transparent;
    font-weight: 800; font-size: 17px; white-space: nowrap;
}
.hp-seg button:hover { background: var(--b-surface-2); }
.hp-seg button[aria-pressed="true"] { border-color: var(--b-blue); background: var(--b-blue-soft); }
.hp-seg-group--img button[aria-pressed="true"] { border-color: var(--b-pink); background: var(--b-pink-soft); }

/* ---------- 2. CÓMO SE ORGANIZA ---------- */
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.hp-step { position: relative; }
/* Ilustraciones 4:3 de assets/img/portada/ (fuente PNG en assets/_fuentes/portada/) */
.hp-step-art {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    margin-bottom: 16px; border-radius: 22px;
    background: var(--b-surface-2);
}

/* ---------- 3. PARA QUIÉN ---------- */
.hp-aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hp-aud-card {
    display: flex; flex-direction: column;
    overflow: hidden;
    border-radius: var(--b-radius-lg);
    background: var(--b-surface);
    box-shadow: var(--b-shadow);
    color: var(--b-text); text-decoration: none;
    transition: transform .12s ease, box-shadow .15s ease;
}
.hp-aud-card:hover { box-shadow: var(--b-shadow-hover); }
.hp-aud-card:active { transform: scale(.98); }
.hp-aud-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hp-aud-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; padding: 16px 20px; }
.hp-aud-body h3 { font-size: var(--b-fs-h3, 22px); font-weight: 800; line-height: 1.15; }
.hp-aud-go { display: inline-flex; flex-shrink: 0; color: var(--b-pink-ink); }
.hp-aud-go .hp-arrow { width: 22px; height: 22px; }

/* ---------- 4. TEMAS ---------- */
.hp-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hp-theme {
    display: block; overflow: hidden;
    border: 3px solid transparent;
    border-radius: 24px;
    background: var(--b-surface);
    box-shadow: var(--b-shadow);
    color: var(--b-text); text-decoration: none;
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.hp-theme:hover { border-color: var(--b-blue); box-shadow: var(--b-shadow-hover); }
.hp-theme:active { transform: scale(.98); }
.hp-theme img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--b-surface-2); }
.hp-theme-name { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 800; font-size: 19px; line-height: 1.2; }
.hp-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--b-line); }
.hp-theme-name .hp-arrow { margin-left: auto; width: 18px; height: 18px; color: var(--b-muted); }

/* ---------- 5. CARTONES ---------- */
.hp-cards-box { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; padding: 0; overflow: hidden; }
.hp-deck-col { display: flex; flex-direction: column; min-width: 0; }
/* «Mesa» con tres cartones impresos del estilo elegido */
.hp-deck {
    position: relative;
    height: 400px;
    overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, rgba(26, 26, 46, .09) 1.5px, transparent 0) 0 0 / 22px 22px,
        linear-gradient(135deg, var(--b-blue-soft) 0%, var(--b-pink-soft) 100%);
    --w: min(300px, 50%);
}
.hp-deck[data-mode="75"] { --w: min(200px, 34%); }
.hp-deck[data-mode="49"] { --w: min(210px, 36%); }
.hp-deck[data-mode="36"] { --w: min(240px, 40%); }
.hp-sheet {
    position: absolute; left: 50%; top: 50%;
    width: var(--w);
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(26, 26, 46, .08), 0 18px 36px -10px rgba(26, 26, 46, .30);
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
    animation: hp-deal .45s cubic-bezier(.2, .8, .3, 1.15) both;
}
.hp-sheet img { width: 100%; border-radius: 7px; }
.hp-sheet:nth-of-type(1) { --x: -42%; --y: -16%; --r: -8deg; animation-delay: 0s; }
.hp-sheet:nth-of-type(2) { --x: 42%; --y: -10%; --r: 7deg; animation-delay: .07s; }
.hp-sheet:nth-of-type(3) { --x: 0%; --y: 12%; --r: -1.5deg; animation-delay: .14s; z-index: 2; }
@keyframes hp-deal {
    from { opacity: 0; transform: translate(-50%, -50%) translate(0, 60px) rotate(0deg) scale(.92); }
}
.hp-deck-badge {
    position: absolute; top: 18px; left: 18px; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 14px 4px 6px;
    border-radius: 999px;
    background: var(--b-text); color: #fff;
    font-size: 15px; font-weight: 800;
}
.hp-deck-badge b { padding: 0 8px; border-radius: 999px; background: var(--b-pink); font-weight: 800; }
/* Pastillas para elegir el estilo */
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 24px 22px; border-top: 1px solid var(--b-line); }
.hp-chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 4px 16px 4px 12px;
    border: 3px solid var(--b-line); border-radius: 999px;
    background: var(--b-surface);
    font-weight: 700; font-size: 16px;
}
.hp-chip:hover { border-color: var(--b-line-strong); }
.hp-chip[aria-pressed="true"] { border-color: var(--b-blue); background: var(--b-blue-soft); }
.hp-cards-side { padding: 36px 36px 36px 32px; align-self: center; }
.hp-cards-side h3 { font-size: var(--b-fs-h2, 30px); font-weight: 800; line-height: 1.1; }
.hp-cards-side > p { margin-top: 10px !important; color: var(--b-muted); font-size: var(--b-fs-lead, 19px); }
.hp-cards-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-weight: 700; }
.hp-cards-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.hp-cards-list img { flex-shrink: 0; width: 40px; height: 40px; }
.hp-cards-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hp-filter { display: flex; justify-content: center; margin-bottom: 24px; }

/* ---------- 6. VOCES ---------- */
.hp-voices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hp-voice {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 12px 16px;
    border-radius: 24px;
    background: var(--b-surface);
    box-shadow: var(--b-shadow);
    text-align: center;
}
.hp-voice-pic { position: relative; }
.hp-voice-pic > img:first-child { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--b-surface-2); }
.hp-voice-flag { position: absolute; right: -4px; bottom: 0; width: 30px; height: 22px; object-fit: cover; border-radius: 5px; border: 2px solid #fff; }
.hp-voice-name { font-size: 20px; font-weight: 800; line-height: 1.1; }
.hp-voice-play { min-height: 44px; padding: 4px 16px; font-size: 16px; border-width: 2px; }
.hp-voice-play svg { width: 14px; height: 14px; }
.hp-voice-play.is-playing { background: var(--b-pink); border-color: var(--b-pink); color: #fff; }
/* Las dos etiquetas ocupan la misma celda: el botón mide siempre lo de la más larga y no se mueve */
.hp-vb { display: grid; }
.hp-vb > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.hp-vb-stop, .is-playing .hp-vb-play { visibility: hidden; }
.is-playing .hp-vb-stop { visibility: visible; }
.hp-voice-initial { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 800; }

/* ---------- 7. CIERRE ---------- */
.hp-final {
    margin: 72px 0 80px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
    padding: 40px 48px;
    border-radius: 32px;
    background: var(--b-text); color: #fff;
    position: relative; overflow: hidden;
}
.hp-final::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--b-gradient);
}
.hp-final h2 { color: #fff; font-size: var(--b-fs-h2, clamp(28px, 2.6vw, 38px)); font-weight: 800; line-height: 1.1; }
.hp-final p { margin-top: 8px !important; color: #c9d0dc; font-size: var(--b-fs-lead, 19px); }
.hp-final-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-final .b-btn:not(.b-btn--primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hp-final .b-btn:not(.b-btn--primary):hover { border-color: #fff; }
.hp-final .b-btn svg .yt-play { fill: var(--b-text); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .hp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hp-hero-copy { text-align: center; }
    .hp-hero-copy > p { margin-left: auto; margin-right: auto; }
    .hp-doors { max-width: 640px; margin-left: auto; margin-right: auto; text-align: left; }
    .hp-hero-more { justify-content: center; }
    .hp-aud { grid-template-columns: repeat(2, 1fr); }
    .hp-themes { grid-template-columns: repeat(3, 1fr); }
    .hp-cards-box { grid-template-columns: 1fr; }
    .hp-cards-side { padding: 24px 28px 28px; }
    .hp-voices { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
    .hp-section { padding-top: 52px; }
    .hp-hero { padding-top: 24px; }
    .hp-hero-copy > p { font-size: var(--b-fs-lead, 18px); }
    .hp-doors { gap: 10px; }
    .hp-door { padding: 10px; gap: 8px; border-radius: 22px; }
    .hp-door-art { height: 64px; border-radius: 14px; }
    .hp-mini { grid-template-columns: repeat(10, 8px); gap: 3px; }
    .hp-mini i { width: 8px; height: 8px; border-radius: 3px; }
    .hp-door--images .hp-door-art { font-size: 28px; letter-spacing: 2px; }
    .hp-door-name { font-size: 18px; }
    .hp-door-name .hp-arrow { display: none; }
    .hp-door-meta { font-size: 14px; }
    .hp-tv { padding: 6px; border-radius: 18px; }
    .hp-tv-screen { border-radius: 13px; }
    .hp-seg { border-radius: 20px; padding: 4px; width: 100%; }
    .hp-seg-group { flex: 1 1 100%; justify-content: center; }
    .hp-seg-group + .hp-seg-group { padding-left: 0; border-left: 0; border-top: 2px solid var(--b-line); padding-top: 4px; }
    .hp-seg-label { flex: 0 0 76px; padding: 0 0 0 6px; text-align: left; font-size: 14px; }
    .hp-seg button { flex: 1; padding: 4px 8px; font-size: 16px; }
    .hp-sub { font-size: var(--b-fs-lead, 18px); }
    .hp-steps { grid-template-columns: 1fr; gap: 14px; }
    .hp-step { display: grid; grid-template-columns: 112px 1fr; gap: 0 14px; align-items: center; }
    .hp-step-art { margin: 0; border-radius: 14px; }
    .hp-step .b-step-num { display: none; }
    .hp-step .b-step-head { margin: 0; }
    .hp-aud { grid-template-columns: 1fr; gap: 12px; }
    .hp-aud-card { flex-direction: row; }
    .hp-aud-card img { width: 112px; aspect-ratio: auto; flex-shrink: 0; }
    .hp-aud-body { padding: 12px 14px; }
    .hp-aud-body h3 { font-size: var(--b-fs-h3, 19px); }
    .hp-themes { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-theme { border-radius: 18px; }
    .hp-theme-name { padding: 8px 10px; font-size: 16px; gap: 8px; }
    .hp-theme-name .hp-arrow { display: none; }
    .hp-deck { height: 260px; --w: 60%; }
    .hp-deck[data-mode="75"] { --w: 38%; }
    .hp-deck[data-mode="49"] { --w: 40%; }
    .hp-deck[data-mode="36"] { --w: 44%; }
    .hp-deck-badge { top: 12px; left: 12px; font-size: 14px; }
    .hp-chips { padding: 14px; gap: 6px; }
    .hp-chip { min-height: 42px; padding: 2px 12px 2px 10px; font-size: 15px; }
    .hp-cards-side { padding: 20px 16px 22px; }
    .hp-cards-side h3 { font-size: var(--b-fs-h2, 25px); }
    .hp-cards-btns .b-btn { flex: 1 1 100%; }
    .hp-voices { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-final { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 24px; margin: 52px 0 56px; }
    .hp-final-btns .b-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hp * { transition: none !important; }
    .hp-sheet { animation: none; }
}

/* ---------- HERO CON VÍDEO PROMOCIONAL (includes/hero.php, assets/js/hero-video.js) ----------
   Boceto de referencia: mockups/portada-hero-video.php. Vídeos: assets/video/promo/. */

.hv-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: 48px;
    align-items: center;
}
/* Las columnas pueden encogerse (sin esto, un hijo ancho ensancha la página en móvil) */
.hv-copy, .hv-stage { min-width: 0; }
.hv-copy h1 {
    font-size: var(--b-fs-h1, clamp(36px, 3.5vw, 56px));
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.01em;
}
.hv-copy h1 span { display: block; }

/* Una sola frase bajo el titular (antes: 4 tarjetas con iconos) */
.hv-lead { margin-top: 18px; max-width: 30em; color: var(--b-muted); font-size: var(--b-fs-lead, 21px); font-weight: 600; line-height: 1.4; }

/* Botón principal y, debajo, las otras dos entradas como enlaces discretos */
.hv-actions { margin-top: 28px; }
.hv-actions .b-btn--primary svg { width: 1em; height: 1em; }
.hv-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 18px; }
.hv-more a {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--b-text); font-size: 18px; font-weight: 800;
    text-decoration: underline; text-decoration-color: var(--b-line); text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.hv-more a:hover { text-decoration-color: var(--b-pink); }
.hv-more svg { width: 20px; height: 20px; fill: currentColor; }

/* Tele con el vídeo */
.hv-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #141233;
}
.hv-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Portadas que se funden (hero-video.js): encima del vídeo y debajo del botón de play */
.hv-covers { position: absolute; inset: 0; }
.hv-covers img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0;
    transition: opacity .9s ease;
}
.hv-covers img.is-on { opacity: 1; }
.hv-screen.is-playing .hv-covers { display: none; }

/* Botón grande de play encima de la vista previa */
.hv-play {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 24px;
    border: 0; cursor: pointer;
    background: linear-gradient(180deg, rgba(20, 18, 51, 0) 45%, rgba(20, 18, 51, .75) 100%);
    color: #fff;
    font-family: var(--b-font);
    text-align: left;
}
.hv-play-btn {
    position: absolute; left: 50%; top: 45%;
    width: 112px; height: 112px; margin: -56px 0 0 -56px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--b-pink);
    box-shadow: 0 0 0 10px rgba(255, 29, 186, .25), 0 18px 40px rgba(0, 0, 0, .35);
    transition: transform .15s ease;
    animation: hv-pulse 2.2s ease-in-out infinite;
}
.hv-play-btn svg { width: 46px; height: 46px; fill: #fff; margin-left: 6px; }
.hv-play:hover .hv-play-btn, .hv-play:focus-visible .hv-play-btn { transform: scale(1.08); }
.hv-play:focus-visible { outline: 4px solid #fff; outline-offset: -8px; }
.hv-play-text strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.hv-play-text small { display: block; font-size: 17px; font-weight: 600; opacity: .9; }
@keyframes hv-pulse {
    0%, 100% { box-shadow: 0 0 0 10px rgba(255, 29, 186, .25), 0 18px 40px rgba(0, 0, 0, .35); }
    50% { box-shadow: 0 0 0 20px rgba(255, 29, 186, .10), 0 18px 40px rgba(0, 0, 0, .35); }
}
.hv-screen.is-playing .hv-play { display: none; }

@media (prefers-reduced-motion: reduce) {
    .hv-play-btn { animation: none; }
}

/* Tablet: el vídeo arriba, a todo el ancho */
@media (max-width: 1100px) {
    .hv-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hv-stage { order: -1; }
    .hv-copy { text-align: center; }
    .hv-lead { margin-left: auto; margin-right: auto; }
    .hv-more { justify-content: center; }
}

/* Móvil */
@media (max-width: 640px) {
    .hv-copy h1 { font-size: var(--b-fs-h1, clamp(30px, 8.5vw, 38px)); }
    .hv-tv { padding: 6px; border-radius: 18px; }
    .hv-lead { font-size: var(--b-fs-lead, 18px); margin-top: 12px; }
    .hv-actions { margin-top: 20px; }
    .hv-more { gap: 10px 20px; margin-top: 14px; }
    .hv-more a { font-size: 16px; }
    .hv-play { padding: 14px; }
    .hv-play-btn { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
    .hv-play-btn svg { width: 32px; height: 32px; }
    .hv-play-btn { top: 42%; }
    .hv-play-text strong { font-size: 18px; }
    .hv-play-text small { font-size: 13px; }
    .hv-screen { border-radius: 13px; }
    .hv-actions .b-btn { width: 100%; justify-content: center; }
}

/* ---------- FRANJA DE TEMAS bajo el hero (index.php #homeStrip, botón de pausa en home.js) ----------
   Dos copias de la lista en fila; la pista se mueve -50% y vuelve a empezar sin salto. */
.hp-strip {
    position: relative;
    margin-top: 48px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hp-strip-track {
    display: flex;
    width: max-content;
    animation: hp-strip var(--strip-time, 80s) linear infinite;
}
/* Solo la pista (no el botón): si no, tras pulsar «Reanudar» seguiría parada por tener el foco o el ratón encima */
.hp-strip-track:hover,
.hp-strip-track:focus-within,
.hp-strip.is-paused .hp-strip-track { animation-play-state: paused; }
@keyframes hp-strip { to { transform: translateX(-50%); } }
/* El hueco va como padding (y no como gap entre listas) para que las dos copias midan lo mismo */
.hp-strip-list { display: flex; gap: 18px; margin: 0; padding: 8px 18px 8px 0; list-style: none; }
.hp-strip-item {
    display: block;
    width: 260px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--b-surface);
    box-shadow: var(--b-shadow);
    color: var(--b-text);
    text-decoration: none;
    transition: transform .15s ease;
}
.hp-strip-item:hover, .hp-strip-item:focus-visible { transform: translateY(-3px); }
.hp-strip-item:focus-visible { outline: 3px solid var(--b-pink); outline-offset: 2px; }
.hp-strip-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #141233; }
.hp-strip-item span { display: block; padding: 8px 12px; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Botón de pausa (para quien no usa ratón: lo que se mueve solo tiene que poder pararse) */
.hp-strip-pause {
    position: absolute; right: 12px; bottom: 16px;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgba(20, 18, 51, .75); color: #fff;
    cursor: pointer;
}
.hp-strip-pause svg { width: 20px; height: 20px; fill: currentColor; }
.hp-strip-pause:focus-visible { outline: 3px solid var(--b-pink); outline-offset: 2px; }
.hp-strip-ico-play, .hp-strip.is-paused .hp-strip-ico-pause { display: none; }
.hp-strip.is-paused .hp-strip-ico-play { display: block; }

@media (max-width: 640px) {
    .hp-strip { margin-top: 32px; }
    .hp-strip-list { gap: 12px; padding-right: 12px; }
    .hp-strip-item { width: 190px; border-radius: 13px; }
    .hp-strip-item span { font-size: 14px; padding: 6px 10px; }
}

/* «Reducir movimiento»: quieta, con desplazamiento a mano y sin la copia ni el botón */
@media (prefers-reduced-motion: reduce) {
    .hp-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .hp-strip-track { animation: none; padding-left: 16px; }
    .hp-strip-list[aria-hidden="true"], .hp-strip-pause { display: none; }
}

/* ---------- TEMAS DEL MOTOR DE PARTIDA NUEVO: 9 aspectos en 3 columnas ---------- */
.hp-themes--engine { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
    .hp-themes--engine { grid-template-columns: repeat(2, 1fr); }
}
