* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Forzamos pantalla completa sin barras de scroll */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    color: #FFB703; 
    font-family: Arial, sans-serif;
}

body {
    /* Imagen de fondo de la tienda general */
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('https://4kwallpapers.com/images/wallpapers/asus-tuf-gaming-3d-3840x2160-15691.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vh 2vw;
}

/* Contenedor principal responsive */
.store-fullscreen-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2vh;
}

/* --- ESTADO NORMAL DE LOS ÍTEMS (COMPLETAMENTE INMUNE A FUGAS) --- */
.clickable-item {
    position: relative;
    height: 100%; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: flex-start;   
    text-align: left;          
    padding: 2vh 1.5vw; 
    
    /* El botón es una caja negra sólida absoluta */
    background-color: #000000 !important; 
    background-image: none !important; /* Quitamos la imagen del contenedor principal */
    
    color: #FFB703;
    border: 0.25vh solid rgba(255, 255, 255, 0.15); 
    border-radius: 12px;
    cursor: default; /* Cambiado de pointer a default */
    pointer-events: none; /* Hace que el mouse ignore por completo el botón */
    font-family: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
    overflow: hidden; /* Recorta perfectamente todo lo que esté adentro */
}

/* --- CAPA INTERNA DE IMAGEN CON MÁSCARA ANTIMANCHAS --- */
.clickable-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 1;
    
    /* El truco definitivo: Una máscara que desvanece la imagen a transparente antes de tocar el fondo del botón */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.5) 15%, #000000 45%, #000000 100%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.5) 15%, #000000 45%, #000000 100%);
    
    transition: opacity 0.2s ease;
}

/* Asegura que los textos floten enfrente y sean siempre legibles sobre el fondo negro */
.item-title, .item-subtitle {
    position: relative;
    z-index: 3; 
}

/* --- MAPEO DE LAS IMÁGENES AL CONTENEDOR INTERNO (::before) --- */
.item-1::before { background-image: url('https://i.ibb.co/nJgwhVb/LOGOS.jpg'); }
.item-2::before { background-image: url('https://i.ibb.co/XfjVY3rW/packthemes.png'); }
.item-3::before { background-image: url('https://us.123rf.com/450wm/fokaspokas/fokaspokas1809/fokaspokas180904962/108883739-setting-icon-in-gear-rainbow-color-and-dark-background.jpg'); }

.item-4::before { background-image: url('https://i.ibb.co/rRJVMfkG/cover.png'); }
.item-5::before { background-image: url('https://i.ibb.co/pjFJqG8g/wallpaper-engine-library.jpg'); }
.item-6::before { background-image: url('https://i.ibb.co/KnDPxYG/mascots.jpg'); }
.item-7::before { background-image: url('https://i.ibb.co/WpyqtJfj/81-Gzl-Hrv-BDL-AC-UF894-1000-QL80.jpg'); }
.item-8::before { background-image: url('https://i.ibb.co/tpDSrHP6/intros.png'); }
.item-9::before { background-image: url('https://i.ibb.co/rfzHCNtF/cbca88cb1018676ef4dff35f35c01739.jpg'); }

/* --- EL FOCUS: ACTIVA EL EFECTO DE VIDRIO Y ENCUADRE ROJO NÍTIDO --- */
.clickable-item:focus, .community-btn:focus,
.clickable-item:hover, .community-btn:hover {
    /* Fondo translúcido esmerilado (Vidrio activo SÓLO aquí) */
    background-color: rgba(20, 20, 20, 0.3) !important; 
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    
    /* Borde doble de alta definición en color Rojo */
    border: 0.4vh solid #FF0000 !important;
    box-shadow: inset 0 0 0 0.2vh #000000, 
                0 0 0 0.2vh #FF0000 !important;
    
    transform: scale(1.03) !important;
    outline: none;
    z-index: 10;
}

/* Cuando está seleccionado, dejamos que la imagen brille un poco más a través del vidrio */
.clickable-item:focus::before, .clickable-item:hover::before {
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 12%, #000000 35%, #000000 100%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 12%, #000000 35%, #000000 100%);
}

/* --- ANIMACIÓN INTERNA: EFECTO REFLEJO GLASS CRISTALINO --- */
/* Usamos una capa alternativa para el rayo de luz blanca que cruza */
.clickable-item:focus::after, .community-btn:focus::after,
.clickable-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 4;
    animation: brilloVidrio 2s infinite ease-in-out;
}

@keyframes brilloVidrio {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* --- DISTRIBUCIÓN DE LAS GRILLAS --- */
.store-header {
    height: 10vh;
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    gap: 2vw;
}

.main-title {
    font-size: 3.5vh;
    text-transform: uppercase;
    white-space: nowrap;
}

.item-apps {
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}
/* Se asegura de que APPS AND GAMES no busque imágenes de fondo inexistentes */
.item-apps::before { display: none !important; }

.main-grid {
    height: 48vh;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 2vw;
}

.bottom-row {
    height: 24vh;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2vw;
}

.bottom-row .clickable-item {
    padding: 1.5vh 1vw; 
}

/* Fuentes dinámicas */
.item-title {
    font-size: 2.8vh;
    font-weight: bold;
    margin-bottom: 0.5vh;
}

.item-subtitle {
    font-size: 1.8vh;
    color: #FFFFFF;
    font-weight: normal;
}

.bottom-row .item-title { font-size: 2.2vh; }
.bottom-row .item-subtitle { font-size: 1.5vh; }

/* Textos cuando se seleccionan */
.clickable-item:focus .item-title, .clickable-item:hover .item-title { color: #FFFFFF !important; }
.clickable-item:focus .item-subtitle, .clickable-item:hover .item-subtitle { color: #FFB703 !important; }

/* Botón inferior de comunidad */
.community-container {
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-btn {
    background-color: #1a1a1a;
    color: #FFB703;
    border: 0.25vh solid rgba(255, 255, 255, 0.2);
    height: 100%;
    padding: 0 4vw;
    font-size: 2.2vh;
    font-weight: bold;
    cursor: default;
    pointer-events: none; /* El mouse ya no interactúa con este botón */
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}