/* Kokom Store — estilos de la HOME nueva.

   DISEÑO: "B · Escaparate" (hero con banners estilo Wings + tarjetas
   de juego estilo Adzeer). Paleta propia Kokom: negro + violeta.

   Se carga DESPUÉS de app.css. NO modifica app.css.
   Correcciones sobre el boceto:
   - El icono del banner NO tapa el texto (va en columna aparte, no absoluto).
   - Las tarjetas dicen "Ver paquetes".
   - "Próximamente" no lleva punto verde de disponible.
*/

/* =====================================================================
   1. HERO de marca (un solo bloque, sin repetir tarjetas)
   ===================================================================== */
.hx {
    position: relative;
    margin-top: 18px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #262435;
    padding: 44px 26px 30px;
    text-align: center;
    background:
        radial-gradient(620px 320px at 50% -8%, rgba(124,92,255,.34), transparent 70%),
        linear-gradient(170deg, #14121F 0%, #0A0A0F 62%, #08080B 100%);
}
.hx::before {
    content: "";
    position: absolute;
    top: 0; left: 14%; right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8B6BFF, transparent);
}
/* halo suave detras del titular */
.hx__glow {
    position: absolute;
    left: 50%;
    top: -80px;
    width: 420px;
    height: 300px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(124,92,255,.34), transparent);
    filter: blur(26px);
    pointer-events: none;
}
.hx__in { position: relative; z-index: 2; }

.hx__kicker {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #B6A9EE;
    margin-bottom: 14px;
}
.hx__t {
    font-family: var(--display, Anton, sans-serif);
    font-size: clamp(2.3rem, 9vw, 3.6rem);
    line-height: .93;
    letter-spacing: .005em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #fff;
}
.hx__t2 {
    display: inline-block;
    background: linear-gradient(180deg, #C9BCFF 0%, #8B6BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hx__s {
    max-width: 400px;
    margin: 0 auto 22px;
    font-size: .9rem;
    line-height: 1.55;
    color: #A5A5B4;
}
.hx__btns {
    display: flex;
    gap: 9px;
    justify-content: center;
    flex-wrap: wrap;
}
.hx__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    font-weight: 800;
    padding: 13px 24px;
    border-radius: 11px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, #8869FF 0%, #6B49F0 100%);
    box-shadow: 0 8px 24px rgba(124,92,255,.4), inset 0 1px 0 rgba(255,255,255,.22);
    border: 0;
    min-height: 46px;
    transition: transform .13s, box-shadow .13s;
}
.hx__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,92,255,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.hx__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hx__btn--gh {
    background: transparent;
    border: 1px solid #33313F;
    color: #D2D2DD;
    box-shadow: none;
}
.hx__btn--gh:hover { border-color: #4B4860; box-shadow: none; transform: none; }

.hx__chips {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.hx__chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .71rem;
    font-weight: 650;
    color: #B4B4C2;
    background: rgba(255,255,255,.035);
    border: 1px solid #2A2838;
    padding: 6px 12px;
    border-radius: 999px;
}
.hx__chips i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2EBE78;
    box-shadow: 0 0 7px #2EBE78;
    flex: 0 0 auto;
}

/* fila de iconos de juego: da color real y contexto gaming al hero */
.hx__games {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 26px 0 0;
    flex-wrap: wrap;
}
.hx__games img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 6px 18px rgba(0,0,0,.55);
    filter: saturate(1.06);
    transition: transform .15s;
}
.hx__games img:hover { transform: translateY(-3px) scale(1.04); }
@media (max-width: 420px) {
    /* 38px no se reconocian como juego (hallazgo del auditor).
       Para que los 7 quepan en UNA fila hacen falta 324px y solo habia
       300: se recorta el relleno lateral del hero en el telefono. */
    .hx { padding-left: 16px; padding-right: 16px; }
    .hx__games { gap: 4px; }
    .hx__games img { width: 42px; height: 42px; border-radius: 11px; }
}
/* Por debajo de 380px 7 iconos no caben ni al minimo tactil: se reparten
   en dos filas de forma ordenada en vez de apretarse. */
@media (max-width: 379px) {
    .hx__games { gap: 6px; }
    .hx__games img { width: 46px; height: 46px; }
}

@media (min-width: 780px) {
    .hx { padding: 62px 40px 34px; }
}

/* buscador del header */
.hm-busca {
    display: none;
    align-items: center;
    gap: 8px;
    background: #12121A;
    border: 1px solid var(--line, #23232C);
    border-radius: 999px;
    padding: 8px 14px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 320px;
}
.hm-busca svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    stroke: #6E6E7C;
    fill: none;
    stroke-width: 2;
}
.hm-busca input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #E8E8EE;
    font-size: .84rem;
    font-family: inherit;
    padding: 0;
}
.hm-busca input::placeholder { color: #6E6E7C; }
.hm-busca:focus-within { border-color: rgba(124,92,255,.55); }
@media (min-width: 860px) { .hm-busca { display: flex; } }

.hm-banners {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr;
    gap: 12px;
    margin: 22px 0 0;
}
@media (max-width: 900px) { .hm-banners { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hm-banners { grid-template-columns: 1fr; } }

.hm-bn {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line, #23232C);
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color .16s, transform .16s;
}
.hm-bn:hover { border-color: rgba(124,92,255,.55); transform: translateY(-2px); }
.hm-bn--main { min-height: 250px; }
@media (max-width: 900px) { .hm-bn--main { grid-column: 1 / -1; } }

.hm-bn--1 {
    background:
        radial-gradient(520px 300px at 78% 18%, rgba(124,92,255,.42), transparent 68%),
        linear-gradient(150deg, #191428 0%, #0C0B12 72%);
}
.hm-bn--2 {
    background:
        radial-gradient(320px 220px at 70% 22%, rgba(46,190,120,.26), transparent 70%),
        linear-gradient(150deg, #0F1A16 0%, #0B0B10 72%);
}
.hm-bn--3 {
    background:
        radial-gradient(320px 220px at 70% 22%, rgba(232,178,58,.24), transparent 70%),
        linear-gradient(150deg, #1A1710 0%, #0B0B10 72%);
}

/* contenido en fila: texto a la izquierda, arte a la derecha.
   Así el arte NUNCA pisa el texto (fallo del boceto). */
.hm-bn__row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    position: relative;
    z-index: 2;
}
.hm-bn__txt { flex: 1 1 auto; min-width: 0; }
.hm-bn__art {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    border-radius: 15px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.14);
    display: block;
}
.hm-bn--main .hm-bn__art { width: 118px; height: 118px; }
@media (max-width: 560px) {
    .hm-bn__art { width: 62px; height: 62px; border-radius: 12px; }
    .hm-bn--main .hm-bn__art { width: 84px; height: 84px; }
}

.hm-bn__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
}
.hm-bn h2 {
    font-size: clamp(1.1rem, 2.4vw, 1.8rem);
    line-height: 1.08;
    letter-spacing: -.028em;
    font-weight: 850;
    margin: 0 0 7px;
}
.hm-bn--main h2 { font-size: clamp(1.45rem, 3.3vw, 2.45rem); }
.hm-bn p {
    font-size: .79rem;
    color: #A8A8B6;
    margin: 0 0 13px;
    max-width: 330px;
    line-height: 1.45;
}
.hm-bn__btn {
    align-self: flex-start;
    background: #7C5CFF;
    color: #fff;
    border: 0;
    font-weight: 800;
    font-size: .78rem;
    padding: 10px 17px;
    border-radius: 8px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 38px;
}
.hm-bn--2 .hm-bn__btn { background: #2EBE78; color: #04150C; }
.hm-bn--3 .hm-bn__btn { background: #E8B23A; color: #1A1204; }

/* =====================================================================
   2. GRILLA DE JUEGOS
   ===================================================================== */
.hm-sec { padding: 42px 0 6px; }
.hm-sec__h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.hm-sec__t { font-size: 1.28rem; font-weight: 820; letter-spacing: -.024em; margin: 0; }
.hm-sec__s { color: var(--muted, #A1A1A6); font-size: .85rem; margin: 3px 0 0; }

.hm-juegos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}
@media (max-width: 940px) { .hm-juegos { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 680px) { .hm-juegos { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; } }

.hm-j {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #262435;
    background: #0E0E13;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .16s, border-color .16s, box-shadow .16s;
}
.hm-j:hover {
    transform: translateY(-4px);
    border-color: rgba(124,92,255,.62);
    box-shadow: 0 14px 34px rgba(0,0,0,.6), 0 0 0 1px rgba(124,92,255,.18);
}

.hm-j__art {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #15151B;
}
.hm-j__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.hm-j:hover .hm-j__art img { transform: scale(1.045); }
.hm-j__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(10,10,14,.86) 100%);
}

/* La etiqueta: verde = disponible, violeta = popular. "Pronto" NO lleva verde. */
.hm-tag {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 3;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}
.hm-tag--pop { background: #7C5CFF; color: #fff; }
.hm-tag--new { background: #2EBE78; color: #04150C; }
.hm-tag--hot { background: #E8B23A; color: #1A1204; }

.hm-j__b {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 10px 11px 11px;
}
.hm-j__n {
    font-family: var(--display, Anton, sans-serif);
    font-size: .94rem;
    letter-spacing: .015em;
    text-transform: uppercase;
    line-height: 1.15;
}
.hm-j__k { font-size: .6875rem; color: #8A8A99; margin-top: 2px; }
/* acción visible: el fallo del boceto era no saber que se podía tocar */
.hm-j__go {
    font-size: .6875rem;
    font-weight: 750;
    color: #B6A9EE;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hm-j__go svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.6; }

/* juego no disponible */
.hm-j--pronto { cursor: default; opacity: .62; }
.hm-j--pronto:hover { transform: none; border-color: var(--line, #23232C); }
.hm-j--pronto .hm-j__art::after { background: linear-gradient(180deg, rgba(8,8,10,.45) 0%, rgba(10,10,14,.9) 100%); }

/* =====================================================================
   3. CÓMO COMPRAR en 3 pasos
   ===================================================================== */
.hm-pasos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-top: 6px;
}
@media (max-width: 700px) { .hm-pasos { grid-template-columns: 1fr; } }
.hm-paso {
    background: #0C0C11;
    border: 1px solid #1F1F28;
    border-radius: 14px;
    padding: 17px 18px;
}
.hm-paso__n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(124,92,255,.15);
    border: 1px solid rgba(124,92,255,.35);
    color: #B6A9EE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    font-weight: 800;
    margin-bottom: 11px;
}
.hm-paso b { display: block; font-size: .88rem; margin-bottom: 4px; }
.hm-paso span { font-size: .79rem; color: var(--muted, #A1A1A6); line-height: 1.45; }

/* =====================================================================
   4. LÍMITE
   ===================================================================== */
.hm-fin { padding-bottom: 90px; }

@media (prefers-reduced-motion: reduce) {
    .hm-j, .hm-j__art img, .hm-bn { transition: none; }
}
