
/* VARIABLES GLOBALES */
:root {
    --bg-color: #0d0d16;
    --card-bg: rgba(26, 26, 46, 0.85); /* Transparente para ver el fondo */
    --neon-cyan: #00f2ff;
    --neon-magenta: #ff00e6;
    --text-white: #ffffff;
    --transition: all 0.3s ease;
}

/* CUERPO CON FONDO CYBERPUNK ANIMADO */
body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    
    /* Fondo de rejilla (Grid) */
    background-image: 
        linear-gradient(rgba(13, 13, 22, 0.9), rgba(13, 13, 22, 0.9)),
        linear-gradient(var(--neon-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-cyan) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    background-attachment: fixed;
    animation: gridMove 20s linear infinite;
}

/* Líneas de escaneo (Scanlines) fijas */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
}

@keyframes gridMove {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 0 60px, 60px 0; }
}

/* NAVEGACIÓN GLOBAL */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-magenta);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 50px; border-radius: 50%; box-shadow: 0 0 10px var(--neon-cyan); }
header h1 { font-size: 1.2rem; letter-spacing: 2px; color: var(--neon-cyan); margin: 0; }

nav ul { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
}
nav ul li a:hover, nav ul li a.active {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta);
}

/* EFECTO CRISTAL PARA SECCIONES (Index, Catálogo, Cuenta) */
.container, .genre-section, .card, .catalog-card, .profile-card, .order-history {
    background: var(--card-bg) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 15px;
}



/* CARRITO GLOBAL */
#cart-icon {
    position: fixed;
    bottom: 20px; right: 20px;
    background: var(--neon-magenta);
    padding: 15px; border-radius: 50%;
    cursor: pointer; z-index: 1001;
    box-shadow: 0 0 15px var(--neon-magenta);
    transition: transform 0.2s ease;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 350px; height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-left: 2px solid var(--neon-cyan);
    transition: 0.3s; z-index: 2000;
    padding: 20px; display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }

.flying-item {
    position: fixed;
    width: 40px; height: 40px;
    background: var(--neon-cyan);
    border-radius: 50%; filter: blur(4px);
    z-index: 9999; pointer-events: none;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* RESPONSIVE BASE */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
}


/* PANTALLA DE CARGA */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Por encima de todo */
    transition: opacity 0.5s ease;
}

.ps5-container { text-align: center; }

.ps5-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: #fff;
    letter-spacing: 10px;
    text-shadow: 0 0 20px var(--neon-cyan);
    animation: pulseLogo 2s infinite alternate;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: #111;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: loadingProgress 1.5s infinite;
}

@keyframes pulseLogo {
    from { opacity: 0.5; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes loadingProgress {
    to { left: 100%; }
}

/* Clase para ocultar el loader */
.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.section-spacing {
    margin-bottom: 80px; /* Crea el hueco para ver el fondo animado */
    margin-top: 40px;
    padding-bottom: 4%;
}

/* TÍTULO NEÓN ROSA CENTRADO */
.neon-title {
    color: var(--neon-magenta);
    text-shadow: 0 0 15px var(--neon-magenta), 0 0 30px var(--neon-magenta);
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* FOOTER GLOBAL CYBERPUNK */
.cyber-footer, footer {
    width: 100%;
    padding: 25px 0;
    background: rgba(13, 13, 22, 0.98) !important; /* Fondo oscuro sólido */
    border-top: 2px solid var(--neon-cyan); /* Línea azul neón */
    text-align: center;
    box-shadow: 0 -10px 20px rgba(0, 242, 255, 0.15);
    z-index: 100;
}

.cyber-footer p, footer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3, .footer-section h4 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta);
}

.contact-btn {
    background: transparent;
    border: 1px solid var(--neon-magenta);
    color: white;
    padding: 10px 25px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    box-shadow: inset 0 0 5px var(--neon-magenta);
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--neon-magenta);
    box-shadow: 0 0 20px var(--neon-magenta);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .user-layout { grid-template-columns: 1fr; }
}