/* =====================================================
   WOWCO - Bloque "Llegó a WOWCO" (columna derecha del slider de la home) y
   tarjeta de devolución de figuritas (web y APP) · 2026-12-03
   layout/partials/home-bloque.php · core/web/home_bloque.php
   ===================================================== */

/* Columna: mismo ancho que tenía el banner del Mundial */
.slideshow-container .col-right.hb-col { display: block; min-width: 0; }
@media (min-width: 1200px) {
    .slideshow-container .sw-slide-show { min-width: 0; }
    .slideshow-container .col-right.hb-col { flex: 0 0 calc(30% - 12px); width: calc(30% - 12px); }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .slideshow-container .col-right.hb-col { display: none !important; }
}

.hb {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    /* Fondo "Azul WOWCO a magenta" (elegido por el usuario el 2026-12-03, prototipo https://claude.ai/artifact/8DNLmZk4saVE1UvEpNRNKA) */
    background:
        radial-gradient(90% 50% at 100% 0%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(170deg, #1546b8 0%, #1546b8 38%, #d42e7d 100%);
    box-sizing: border-box;
    overflow: hidden;
}
.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }

.hb-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hb-titulo { margin: 0; color: #fff; font-size: 23px; line-height: 1.1; font-weight: 900; letter-spacing: -.01em; }
.hb-cuenta {
    flex: none; background: #ffd21f; color: #1b1b1b; border-radius: 999px;
    padding: 4px 11px; font-size: 13px; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
.hb-sub { margin: -6px 0 2px; color: #f0e4ff; font-size: 13.5px; line-height: 1.35; }

.hb-grilla {
    list-style: none; margin: 0; padding: 0;
    flex: 1 1 auto; min-height: 0;
    display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px;
}
.hb-grilla.hb-n1 { grid-template-columns: 1fr; }
.hb-grilla > li { min-width: 0; min-height: 0; display: flex; }

.hb-prod {
    flex: 1; min-width: 0; min-height: 0;
    display: flex; flex-direction: column; gap: 5px;
    background: #fff; color: #151a33; border-radius: 11px; padding: 7px 7px 9px;
    text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.hb-prod:hover, .hb-prod:focus-visible {
    color: #151a33; transform: translateY(-2px);
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55);
}
.hb-prod:focus-visible { outline: 3px solid #ffd21f; outline-offset: 2px; }
.hb-foto {
    position: relative; flex: 1 1 auto; min-height: 70px;
    border-radius: 8px; background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hb-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; color: transparent; }
.hb-tag {
    position: absolute; top: 5px; left: 5px; z-index: 1;
    font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: .02em;
    color: #fff; background: #3e9a5b; border-radius: 5px; padding: 4px 6px;
}
.hb-tag--reingreso { background: #1d5fd6; }
.hb-tag--destacado { background: #d42e7d; }
.hb-tag--lanzamiento { background: #ffd21f; color: #1b1b1b; }
.hb-nombre {
    font-size: 12.5px; font-weight: 700; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.5em;
}
.hb-cuando { font-size: 11px; color: #5b6180; line-height: 1.2; margin-top: -2px; }

.hb-vacio { flex: 1; display: flex; align-items: center; color: #dfe6ff; font-size: 15px; line-height: 1.45; }

.hb-pie { display: flex; justify-content: flex-start; }
.hb-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 16px; line-height: 1;
    background: #ffd21f; color: #1b1b1b; border-radius: 999px;
    font-size: 15px; font-weight: 800; text-decoration: none;
    transition: background .15s ease;
}
.hb-btn:hover, .hb-btn:focus-visible { background: #ffe25e; color: #1b1b1b; }
.hb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Tarjeta de devolución de figuritas (arriba del bloque, web y APP) ----------
   2026-12-03: roja y más grande (pedido del usuario) */
.hb-dv {
    flex: none;
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 16px 14px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(150deg, #e5262e 0%, #b8121b 70%, #9c0d15 100%);
    color: #fff; border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 14px 28px -16px rgba(80, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: transform .15s ease, box-shadow .15s ease;
}
.hb-dv:hover, .hb-dv:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(80, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.hb-dv:focus-visible { outline: 3px solid #ffd21f; outline-offset: 2px; }
.hb-dv-top { display: flex; align-items: center; gap: 10px; }
.hb-dv-ico {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    background: #fff; color: #c8141d;
    display: flex; align-items: center; justify-content: center;
}
.hb-dv-ico svg { width: 19px; height: 19px; display: block; }
.hb-dv-tit { font-size: 18px; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.hb-dv-faltan {
    margin-left: auto; flex: none;
    font-size: 12px; font-weight: 900; line-height: 1;
    background: #ffd21f; color: #1b1b1b; border-radius: 999px; padding: 6px 10px; white-space: nowrap;
}
.hb-dv-fecha { display: flex; flex-direction: column; gap: 2px; }
.hb-dv-fecha small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffd6d8; }
.hb-dv-fecha b { font-size: 34px; font-weight: 900; line-height: 1; color: #fff; letter-spacing: -.01em; }
.hb-dv-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hb-dv-cant { font-size: 13px; color: #ffe3e4; font-weight: 700; }
.hb-dv-btn {
    display: inline-flex; align-items: center; gap: 6px; line-height: 1;
    background: #fff; color: #b8121b; border-radius: 999px; padding: 10px 16px;
    font-size: 14px; font-weight: 900; white-space: nowrap;
}
.hb-dv:hover .hb-dv-btn { background: #ffd21f; color: #1b1b1b; }
/* Faltan 3 días o menos: pastilla blanca que late */
.hb-dv--urgente .hb-dv-faltan { background: #fff; color: #b8121b; animation: hb-late 1.6s ease-in-out infinite; }
@keyframes hb-late { 50% { transform: scale(1.08); } }

/* ---------- Botón "Ver todas las novedades": 3 opciones ($wowco_hb_boton) ---------- */
.hb-pie--a { align-items: center; justify-content: space-between; gap: 10px; }
.hb-pie-tx { color: #ffe0f0; font-size: 13px; line-height: 1.3; }
.hb-pie-tx b { color: #fff; font-weight: 900; }
.hb-pie--a .hb-btn { width: auto; flex: none; padding: 10px 18px; font-size: 14px; }
.hb-pie--c { justify-content: center; }
.hb-btn--contorno {
    width: auto; padding: 10px 22px; font-size: 14px;
    background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85);
}
.hb-btn--contorno:hover, .hb-btn--contorno:focus-visible { background: #fff; color: #0d2f8c; }
.hb-ver-arriba {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    color: #ffd21f; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid rgba(255, 210, 31, .5); padding-bottom: 1px;
}
.hb-ver-arriba:hover, .hb-ver-arriba:focus-visible { color: #fff; border-bottom-color: #fff; }

/* Entre 1200 y 1599 px la columna es más angosta */
@media (min-width: 1200px) and (max-width: 1599px) {
    .hb { padding: 14px; gap: 8px; }
    .hb-titulo { font-size: 20px; }
    .hb-cuenta { font-size: 12px; padding: 3px 9px; }
    .hb-nombre { font-size: 11.5px; }
    .hb-cuando { display: none; }
    .hb-btn { font-size: 14px; padding: 10px 12px; }
    .hb-dv { padding: 13px; gap: 8px; }
    .hb-dv-tit { font-size: 16px; }
    .hb-dv-fecha b { font-size: 26px; }
    .hb-dv-cant { display: none; }
    .hb-dv-btn { margin-left: auto; padding: 9px 14px; font-size: 13px; }
    .hb-pie-tx { font-size: 12px; }
}

/* Celular: el bloque va debajo del slider, con fotos de alto fijo */
@media (max-width: 767px) {
    .hb { padding: 14px; border-radius: 14px; }
    .hb-titulo { font-size: 21px; }
    .hb-foto { flex: none; aspect-ratio: 1 / .8; min-height: 0; }
    .hb-grilla { grid-auto-rows: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .hb-prod, .hb-btn, .hb-dv { transition: none; }
    .hb-dv--urgente .hb-dv-faltan { animation: none; }
    .hb-prod:hover, .hb-dv:hover { transform: none; }
}
