:root {
    --bg-dark: #0f172a;   /* Azul muy oscuro (Fondo) */
    --bg-card: #1e293b;   /* Azul grisáceo (Tarjetas) */
    --primary: #ffffff;   /* Texto blanco */
    --accent: #00e6e6;    /* TURQUESA NEÓN */
    --text-main: #e2e8f0; 
    --text-muted: #94a3b8;
    --danger: #ef4444;    
}

/* --- RESET BÁSICO --- */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    min-height: 100vh; 
    display: flex; flex-direction: column; 
}

/* =========================================
   1. NAVBAR (ENCABEZADO PRINCIPAL)
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 1.5rem; 
    height: 60px; 
    background-color: #0f172a;
    position: sticky; top: 0; 
    z-index: 3000; /* Alto, pero menos que el Gatekeeper */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-main { font-size: 1.3rem; font-weight: bold; color: var(--primary); }
.logo-sub { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; display: block;}
.turq { color: var(--accent); font-weight: bold; }

/* =========================================
   2. MENÚ DE PC (Escritorio)
   ========================================= */
.desktop-menu { display: flex; list-style: none; gap: 1.5rem; align-items: center; height: 100%; }
.desktop-menu a, .desktop-dropdown span { text-decoration: none; color: #cbd5e1; font-size: 0.95rem; transition: 0.3s; cursor: pointer; font-weight: 500; }
.desktop-menu a:hover, .desktop-dropdown:hover span { color: var(--accent); text-shadow: 0 0 10px rgba(0, 230, 230, 0.4); }

/* Dropdown PC */
.desktop-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.desktop-dropdown-content {
    display: none; position: absolute; top: 55px; right: 0;
    background: var(--bg-card); border: 1px solid var(--accent);
    min-width: 180px; border-radius: 8px; list-style: none; padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.desktop-dropdown:hover .desktop-dropdown-content { display: block; }
.desktop-dropdown-content li a { display: block; padding: 0.6rem 1rem; color: #cbd5e1; }
.desktop-dropdown-content li a:hover { background: rgba(0, 230, 230, 0.1); color: white; }

/* =========================================
   3. ELEMENTOS MÓVILES (Ocultos en PC)
   ========================================= */
.scroll-nav { display: none; }
.nav-links { display: none; } 
.menu-toggle { display: none; background: none; border: none; color: var(--accent); font-size: 1.6rem; cursor: pointer; }

/* =========================================
   4. PRODUCTOS Y GENERAL
   ========================================= */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; padding: 2rem; max-width: 1200px; margin: 0 auto; }
.product-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid transparent; display: flex; flex-direction: column; transition: 0.3s; }
.product-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.product-img { width: 100%; height: 160px; object-fit: cover; background: #334155; }
.card-body { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; }
.price-tag { font-size: 1.2rem; color: var(--accent); font-weight: bold; margin: 0.5rem 0; }
.btn { width: 100%; padding: 0.6rem; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; margin-top: auto; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 0 10px var(--accent); }



/* =========================================
   ARREGLO: IMÁGENES PERFECTAS Y BLOQUEADAS
   ========================================= */
.product-card {
    height: 100% !important; /* Obliga a todas las tarjetas de la fila a medir lo mismo */
}

/* 1. Bloqueamos la caja de la foto para que no se estire ni se aplaste */
.product-img {
    width: 100% !important;
    height: 160px !important; /* Altura estricta */
    min-height: 160px !important;
    max-height: 160px !important;
    flex-shrink: 0 !important; /* Evita que el texto aplaste la imagen */
    overflow: hidden !important;
}

/* 2. Forzamos a la imagen a llenar la caja recortando los bordes suavemente */
.product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Corta el exceso sin deformar al personaje */
    object-position: center top !important; /* Enfoca la parte de arriba/centro (las caras) */
}







/* =========================================
   DISEÑO SUAVE Y ESTÉTICO (ALINEACIÓN PERFECTA)
   ========================================= */
.card-body {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; /* Usa toda la tarjeta */
}

/* 1. Título: Letra suave, limpia y flexible */
.card-body h3 {
    font-size: 15px !important; /* Tamaño delicado */
    font-weight: 500 !important; /* Menos grueso, más estético */
    color: #f8fafc !important; /* Blanco muy limpio */
    line-height: 1.4 !important;
    margin: 0 !important; 
    
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    
    /* LA MAGIA INVISIBLE: Esto rellena el hueco vacío. 
       Mantiene el título arriba y empuja el precio hacia abajo. */
    flex-grow: 1 !important; 
}

/* 2. Precio: Texto limpio con un brillo muy sutil */
/* =========================================
   DISEÑO PREMIUM: ALINEACIÓN Y PRECIO FLEXIBLE
   ========================================= */
.card-body {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
}

/* 1. Título: Se queda arriba tranquilamente */
.card-body h3 {
    font-size: 16px !important; 
    font-weight: 600 !important; 
    color: #f8fafc !important; 
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important; 
    
    /* Limita a 2 líneas con puntos suspensivos si es muy largo */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 2. Precio: Diseño adaptable y alineado al fondo */
/* 2. Precio: Estilo Limpio y Elegante (Sin brillo exagerado) */
.card-body .price-tag { 
    font-size: 1.35rem !important; 
    color: var(--accent) !important; 
    font-weight: 700 !important; /* Letra un poco más suave, no tan tosca */
    
    /* Fondo transparente y línea limpia */
    background: transparent !important; 
    border: none !important;
    border-left: 3px solid var(--accent) !important; 
    padding-left: 10px !important; 
    border-radius: 0 !important;
    
    /* Se queda anclado abajo para que todo alinee perfecto */
    margin-top: auto !important; 
    margin-bottom: 15px !important; 
    
    /* 🚨 LA SOLUCIÓN: Cero brillos raros 🚨 */
    text-shadow: none !important;
    box-shadow: none !important;
}





/* =========================================
   5. RESPONSIVE / MÓVIL
   ========================================= */
@media (max-width: 768px) {
    /* Ocultar PC */
    .desktop-menu { display: none; } 
    /* Mostrar Botón */
    .menu-toggle { display: block; z-index: 3001; }

    /* Barra Deslizante */
    .scroll-nav {
        display: flex; position: sticky; top: 60px; background-color: #0f172a; 
        z-index: 1999; overflow-x: auto; white-space: nowrap; gap: 10px;
        padding: 10px 1rem; border-bottom: 2px solid var(--accent);
        box-shadow: 0 5px 15px rgba(15, 23, 42, 1);
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .scroll-nav::-webkit-scrollbar { display: none; }
    
    .nav-pill {
        text-decoration: none; color: #cbd5e1; background: #1e293b;
        padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.9rem;
        border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    }
    .nav-pill.active { background: var(--accent); color: #000; font-weight: bold; }

    /* === MENÚ FLOTANTE (ESTILO NEÓN PREMIUM) === */
    .nav-links {
        display: none; /* Oculto por defecto */
        position: fixed; top: 65px; right: 10px; 
        width: 260px; 
        
        /* FONDO CRISTAL */
        background: rgba(15, 23, 42, 0.95); 
        backdrop-filter: blur(10px);
        
        /* BORDE Y SOMBRA GLOW */
        border: 1px solid var(--accent); 
        border-radius: 16px;
        box-shadow: 0 0 20px rgba(0, 230, 230, 0.15), 0 10px 40px rgba(0,0,0,0.8);
        
        padding: 1rem; flex-direction: column; z-index: 4000;
        height: auto; max-height: 80vh; overflow-y: auto;
    }

    /* CLASE ACTIVADORA */
    .nav-links.active {
        display: flex !important;
        animation: popIn 0.2s ease-out;
    }
    @keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

    /* Estilos internos del menú */
    .extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .extras-grid a {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        background: linear-gradient(145deg, #1e293b, #162235); /* Fondo degradado */
        border-radius: 12px; padding: 0.8rem 0.5rem;
        color: #cbd5e1; text-decoration: none; font-size: 0.8rem;
        border: 1px solid rgba(255,255,255,0.05); height: 85px; transition: 0.3s;
    }
    .extras-grid a:hover {
        background: rgba(0, 230, 230, 0.1); border-color: var(--accent); color: #fff;
        box-shadow: 0 0 15px rgba(0, 230, 230, 0.2); transform: translateY(-2px);
    }
    .extras-grid a i { font-size: 1.5rem; color: var(--accent); margin-bottom: 6px; text-shadow: 0 0 5px rgba(0, 230, 230, 0.3); }

    /* DORADO: Rasca y Gana */
    .extras-grid a.gold i { 
        color: #ffd700 !important; 
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important; 
    }

    .btn-login-mobile { 
        margin-top: 1rem; width: 100%; padding: 0.8rem; 
        background: transparent; border: 1px solid var(--accent); 
        color: var(--accent); font-weight: bold; border-radius: 12px; cursor: pointer; transition: 0.3s;
    }
    .btn-login-mobile:hover { background: var(--accent); color: #000; box-shadow: 0 0 15px rgba(0,230,230,0.5); }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
}

/* =========================================
   6. EXTRAS (MODAL DE ATENCIÓN ARREGLADO)
   ========================================= */

/* A. EL FONDO (Pantalla Completa) */
.gatekeeper-overlay { 
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.95); 
    display: flex; justify-content: center; align-items: center; 
    z-index: 9999; /* ENCIMA DE TODO */
    backdrop-filter: blur(5px);
}

/* B. LA TARJETA (Arreglado el tamaño gigante) */
.gatekeeper-content {
    background: var(--bg-card); 
    padding: 2.5rem; 
    border-radius: 16px; 
    border: 1px solid var(--accent);
    
    /* ESTO ARREGLA EL PROBLEMA EN PC */
    width: 90%; 
    max-width: 450px; 
    
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 230, 230, 0.2);
    display: flex; flex-direction: column; gap: 1rem;
}

.gatekeeper-header h2 { color: var(--accent); margin-bottom: 0.5rem; text-transform: uppercase; }
.gatekeeper-content p { color: #cbd5e1; }
.gatekeeper-footer { display: flex; flex-direction: column; gap: 10px; }
#btn-accept-terms { background: var(--accent); color: #000; font-weight: bold; padding: 10px; border-radius: 8px; border: none; cursor: pointer; transition: 0.3s; }
#btn-accept-terms:hover { transform: scale(1.02); box-shadow: 0 0 20px var(--accent); }
.btn-danger { background: transparent; border: 1px solid #ef4444; color: #ef4444; padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* Otros Modales y Footer */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; justify-content: center; align-items: center; z-index: 5000; }
.modal-content { background: var(--bg-card); padding: 2rem; border-radius: 12px; width: 90%; max-width: 400px; position: relative; border: 1px solid var(--accent); }
.hidden { display: none !important; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; color: var(--accent); cursor: pointer; }
.login-wrapper { display: flex; justify-content: center; align-items: center; padding: 2rem 1rem; min-height: 60vh; }
.login-card { background: var(--bg-card); padding: 2rem; width: 100%; max-width: 400px; border-radius: 24px; border: 1px solid rgba(0, 230, 230, 0.2); text-align: center; }
.input-group input { width: 100%; padding: 0.8rem; margin-bottom: 1rem; background: #0f172a; border: 1px solid #333; color: white; border-radius: 8px; }
#bot-launcher { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; background: white; border-radius: 50%; border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px var(--accent); z-index: 999; }
footer { background: #0b1120; padding: 2rem; text-align: center; margin-top: auto; color: var(--text-muted); }





/* =========================================
   8. ESTILOS DE CATEGORÍAS (Recargas y Antivirus)
   ========================================= */

/* Título Principal de la Sección (Ej: "Centro de Recargas") */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: white;
    margin: 2rem 0 1.5rem; /* Espacio arriba y abajo */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    
    /* Efecto Neón en el texto */
    text-shadow: 0 0 15px rgba(0, 230, 230, 0.6);
}

/* Línea Divisoria con Icono (Ej: "Créditos de Juegos") */
.category-divider {
    display: flex;
    align-items: center; /* Alinear icono con texto */
    gap: 12px;
    
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent); /* Color Turquesa */
    
    margin: 1.5rem;        /* Separación de los bordes */
    padding-bottom: 0.8rem; /* Espacio antes de la línea */
    
    /* La línea brillante de abajo */
    border-bottom: 1px solid rgba(0, 230, 230, 0.3);
    
    /* Sutil brillo en el texto */
    text-shadow: 0 0 5px rgba(0, 230, 230, 0.3);
}

/* El Icono redondo dentro del divisor */
.category-divider i {
    background: rgba(15, 23, 42, 1); /* Fondo oscuro para tapar la línea si fuera necesario */
    border: 1px solid var(--accent); /* Borde fino turquesa */
    padding: 8px;
    width: 36px; height: 36px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; /* Círculo perfecto */
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.2); /* Brillo */
}

/* Animación para los iconos grandes dentro de las tarjetas (si usas iconos en vez de img) */
.product-card i {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.product-card:hover i {
    transform: scale(1.15); /* Crece un poco al pasar el mouse */
    text-shadow: 0 0 20px var(--accent); /* Brilla más fuerte */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .section-title { font-size: 1.4rem; margin: 1.5rem 0; }
    .category-divider { font-size: 0.95rem; margin: 1rem; }
}





/* =========================================
   9. ESTILOS PARA FOTOS REALES (IMÁGENES)
   ========================================= */

/* Esto asegura que la foto llene el cuadro sin deformarse */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease; /* Suaviza el zoom */
}

/* Efecto Zoom al pasar el mouse sobre la tarjeta */
.product-card:hover .product-img img {
    transform: scale(1.1);
}