/* style_pro_improved.css - Diseño futurista CORREGIDO sin autorefresh */
/* VERSIÓN GAMER CORREGIDA SIN EFECTOS PROBLEMÁTICOS */

/* Importar fuentes futuristas */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Variables CSS para efectos gamer */
:root {
    --neon-cyan: #00ffff;
    --neon-pink: #ff0080;
    --neon-green: #00ff80;
    --neon-orange: #ffa500;
    --neon-purple: #8a2be2;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --glow-intensity: 0 0 20px;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    /* Restaurar fondo original para escritorio */
    background: #0a0a0f;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a0a1a 50%, #0f0a1a 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    html, body {
        background: #181818 !important;
        background-image: none !important;
        background-attachment: initial !important;
    }
}

/* Animaciones keyframes CORREGIDAS - Sin infinitas problemáticas */
@keyframes neonPulseOnce {
    0% { 
        text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, 0 0 20px currentColor;
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
        transform: scale(1.02);
    }
    100% { 
        text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, 0 0 20px currentColor;
        transform: scale(1);
    }
}

@keyframes glitchEffect {
    0%, 90%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px) skew(-5deg); }
    20% { transform: translateX(2px) skew(5deg); }
    30% { transform: translateX(-1px) skew(-2deg); }
    40% { transform: translateX(1px) skew(2deg); }
    50% { transform: translateX(-2px) skew(-3deg); }
    60% { transform: translateX(2px) skew(3deg); }
    70% { transform: translateX(-1px) skew(-1deg); }
    80% { transform: translateX(1px) skew(1deg); }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    70% {
        transform: scale(0.9) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes menuItemHover {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
    100% { transform: translateY(-5px) scale(1.1); }
}

/* Header principal mejorado - SIN animaciones infinitas problemáticas */
.neon-header {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 10, 26, 0.95) 50%, rgba(10, 26, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-green)) 1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: slideInFromTop 1s ease-out;
    position: relative;
    margin-top: 20px; /* Bajar el header */
}

/* Eliminado: animación headerGlow infinita problemática */
.neon-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 25%, 
        rgba(255, 0, 128, 0.1) 50%, 
        rgba(0, 255, 128, 0.1) 75%, 
        transparent 100%);
    pointer-events: none;
    /* Eliminado: animation: slideGlow 4s linear infinite; */
}

.neon-header.scrolled {
    background: rgba(5, 5, 10, 0.98);
    border-bottom-color: rgba(255, 0, 255, 0.5);
    box-shadow: 
        0 4px 40px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(255, 0, 255, 0.2);
    transform: translateY(-2px);
}

.neon-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo mejorado - SIN animaciones infinitas */
.logo a {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: bounceIn 1.5s ease-out;
}

.logo a:hover {
    transform: scale(1.1) rotate(2deg);
    /* Cambiado: de infinita a una sola vez */
    animation: neonPulseOnce 1s ease-in-out;
}

.logo i {
    font-size: 2.5rem;
    margin-right: 15px;
    color: var(--neon-cyan);
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
    transition: all 0.3s ease;
}

.logo a:hover i {
    transform: rotate(360deg);
    color: var(--neon-pink);
}

.neon-text {
    color: #00ffff;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
    /* Eliminado: animation: neonFlicker 3s infinite alternate, neonPulse 3s ease-in-out infinite; */
}

.neon-text-red {
    color: #ff0080;
    text-shadow: 
        0 0 5px #ff0080,
        0 0 10px #ff0080,
        0 0 20px #ff0080,
        0 0 40px #ff0080;
    /* Eliminado: animation: neonFlickerRed 3s infinite alternate, neonPulse 3s ease-in-out infinite 0.5s; */
}

.neon-text-blue {
    color: #0080ff;
    text-shadow: 
        0 0 5px #0080ff,
        0 0 10px #0080ff,
        0 0 20px #0080ff;
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
}

/* Navegación principal mejorada */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
    animation: slideInFromTop 1s ease-out;
    animation-fill-mode: both;
}

.main-nav li:nth-child(1) { animation-delay: 0.1s; }
.main-nav li:nth-child(2) { animation-delay: 0.2s; }
.main-nav li:nth-child(3) { animation-delay: 0.3s; }
.main-nav li:nth-child(4) { animation-delay: 0.4s; }
.main-nav li:nth-child(5) { animation-delay: 0.5s; }
.main-nav li:nth-child(6) { animation-delay: 0.6s; }
.main-nav li:nth-child(7) { animation-delay: 0.7s; }

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 128, 0.1));
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: menuItemHover 0.3s ease-out forwards;
}

.main-nav a i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.main-nav a:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--neon-pink);
    text-shadow: 0 0 10px currentColor;
}

/* Balance display mejorado - SIN animaciones infinitas */
.balance-display {
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.2), rgba(0, 255, 255, 0.1));
    border: 2px solid #00c3ff;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 25px #00c3ff, 0 0 40px #00c3ff44;
    color: #fff;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
}

.balance-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.balance-display:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 128, 0.5);
}

.balance-display:hover::before {
    left: 100%;
}

.balance-display .neon-text-blue {
    color: #00c3ff;
    text-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff;
}

/* Menu móvil mejorado */
.mobile-menu-toggle {
    display: none;
    color: #00ffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
    border-color: rgba(0, 255, 255, 0.5);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.9) 0%,
            rgba(20, 0, 40, 0.9) 25%,
            rgba(40, 0, 60, 0.9) 50%,
            rgba(20, 0, 40, 0.9) 75%,
            rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 128, 0.05) 0%, transparent 50%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #00ffff, #ff0080, #00ff80, #ffa500, #00ffff) 1;
    box-shadow: 
        0 0 80px rgba(0, 255, 255, 0.4),
        inset 0 0 50px rgba(255, 0, 128, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(0, 255, 128, 0.2);
    z-index: 999;
    padding: 20px 20px 20px 20px;
    overflow: hidden;
    position: relative;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.mobile-menu li {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.mobile-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 255, 0.3), 
        transparent);
}

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 22px 25px;
    border-radius: 12px;
    margin: 8px 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    position: relative;
    border: 2px solid rgba(0, 255, 255, 0.3);
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.1) 0%,
            rgba(255, 0, 128, 0.1) 50%,
            rgba(0, 255, 128, 0.1) 100%),
        radial-gradient(circle at 30% 50%, rgba(0, 255, 255, 0.2) 0%, transparent 50%);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.5);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 0, 128, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.mobile-menu a i {
    margin-right: 15px;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    transition: all 0.5s ease;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(0, 255, 255, 0.5);
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
    color: #00ffff;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    color: #00ffff;
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.3) 0%,
            rgba(255, 0, 128, 0.3) 50%,
            rgba(0, 255, 128, 0.3) 100%),
        radial-gradient(circle at 70% 50%, rgba(255, 0, 128, 0.4) 0%, transparent 50%);
    border: 3px solid #00ffff;
    text-shadow: 
        0 0 15px rgba(0, 255, 255, 1),
        0 0 25px rgba(0, 255, 255, 0.8),
        0 0 35px rgba(0, 255, 255, 0.6),
        0 0 45px rgba(0, 255, 255, 0.4);
    transform: translateX(20px) scale(1.05) rotate(1deg);
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.6),
        inset 0 0 50px rgba(255, 0, 128, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    animation: neonPulseOnce 0.5s ease-in-out;
}

.mobile-menu a:hover i,
.mobile-menu a:active i {
    color: #00ffff;
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 1),
        0 0 30px rgba(0, 255, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 50px rgba(0, 255, 255, 0.4);
    transform: scale(1.4) rotate(12deg);
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 1));
    animation: neonPulseOnce 0.3s ease-in-out;
}

/* Container principal */
@media (min-width: 769px) {
    .container {
        max-width: none; /* Sin límite de ancho */
        width: calc(100% - 280px); /* Ancho total menos el sidebar */
        margin-left: 280px; /* Empieza después del sidebar */
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 1400px;
        margin: 0 auto; /* Centrado normal en móvil */
        padding: 40px 30px;
    }
}

/* Hero section mejorada - SIN animaciones infinitas */
.hero {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(26, 10, 26, 0.9));
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 0, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    /* Eliminado: animation: heroGlow 6s ease-in-out infinite alternate; */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 3px;
    animation: bounceIn 2s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    animation: slideInFromTop 1.5s ease-out 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInFromTop 1.5s ease-out 1s both;
}

/* Sección de categorías mejorada */
.categories {
    padding: 80px 0;
    background: rgba(10, 10, 15, 0.5);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    animation: bounceIn 1.5s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff0080);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    /* Eliminado: animation: gradientMove 3s ease infinite; */
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff0080);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: #00ffff;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 255, 255, 0.4);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Sección de filtros mejorada */
.filters {
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff0080);
    background-size: 200% 100%;
    /* Eliminado: animation: gradientMove 3s ease infinite; */
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    color: #00ffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ffff;
}

.form-control {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.8);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Botones mejorados */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.8), rgba(0, 64, 255, 0.9));
    border-color: rgba(0, 128, 255, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 128, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 
        0 8px 25px rgba(0, 128, 255, 0.4),
        0 0 30px rgba(0, 128, 255, 0.3);
    border-color: #0080ff;
}

.btn-success {
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.8), rgba(0, 200, 100, 0.9));
    border-color: rgba(0, 255, 128, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 255, 128, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-success:hover {
    box-shadow: 
        0 8px 25px rgba(0, 255, 128, 0.4),
        0 0 30px rgba(0, 255, 128, 0.3);
    border-color: #00ff80;
}

.btn-danger {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.8), rgba(200, 0, 100, 0.9));
    border-color: rgba(255, 0, 128, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 0, 128, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    box-shadow: 
        0 8px 25px rgba(255, 0, 128, 0.4),
        0 0 30px rgba(255, 0, 128, 0.3);
    border-color: #ff0080;
}

.btn-warning {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.8), rgba(255, 140, 0, 0.9));
    border-color: rgba(255, 165, 0, 0.5);
    color: #000000;
    box-shadow: 
        0 4px 15px rgba(255, 165, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-warning:hover {
    box-shadow: 
        0 8px 25px rgba(255, 165, 0, 0.4),
        0 0 30px rgba(255, 165, 0, 0.3);
    border-color: #ffa500;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Grid de productos mejorado */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.product-card, .featured-product-card {
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.product-card::before, .featured-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff0080);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before, .featured-product-card:hover::before {
    opacity: 1;
}

.product-card:hover, .featured-product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 255, 255, 0.4);
    border-color: #00ffff;
}

/* Imagen del producto mejorada */
.product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #1a1a2a, #2a2a3a);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img,
.featured-product-card:hover .product-image img {
    transform: scale(1.1);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    height: 100%;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
}

.image-placeholder span {
    font-size: 14px;
    color: #999;
}

/* Contenido del producto */
.product-header, .featured-product-content {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-category {
    color: #00ffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00ffff;
}

.product-name, .featured-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.3;
    font-family: 'Space Grotesk', sans-serif;
}

.product-description, .featured-product-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-details {
    padding: 30px;
}

.product-price, .featured-product-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #00ff80;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px #00ff80,
        0 0 20px rgba(0, 255, 128, 0.5);
    font-family: 'Orbitron', monospace;
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #00ffff;
    flex-wrap: wrap;
    gap: 10px;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* Badges mejorados - SIN animaciones infinitas problemáticas */
.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px rgba(255, 165, 0, 0.5),
        0 0 20px rgba(255, 165, 0, 0.3);
    /* Eliminado: animation: pulseGlow 2s ease-in-out infinite; */
    z-index: 10;
    border: 2px solid rgba(255, 165, 0, 0.5);
}

.stock-badge {
    background: rgba(0, 255, 128, 0.2);
    color: #00ff80;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid rgba(0, 255, 128, 0.3);
    text-shadow: 0 0 10px #00ff80;
}

.low-stock {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border-color: rgba(255, 165, 0, 0.3);
    /* Eliminado: animation: pulseWarning 1.5s ease-in-out infinite; */
    text-shadow: 0 0 10px #ffa500;
}

.out-of-stock {
    background: rgba(255, 0, 128, 0.2);
    color: #ff0080;
    border-color: rgba(255, 0, 128, 0.3);
    text-shadow: 0 0 10px #ff0080;
}

/* Login container mejorado */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 1s ease-out;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff0080);
    background-size: 200% 100%;
    /* Eliminado: animation: gradientMove 3s ease infinite; */
}

.login-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #00ffff;
}

.toggle-password {
    color: #00ffff;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff;
    transform: scale(1.1);
}

/* Alertas mejoradas */
.alert {
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 500;
    border: 2px solid;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 0.5s ease-out;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.alert:hover::before {
    left: 100%;
}

.alert-success {
    background: rgba(0, 255, 128, 0.1);
    border-color: rgba(0, 255, 128, 0.3);
    color: #00ff80;
}

.alert-error {
    background: rgba(255, 0, 128, 0.1);
    border-color: rgba(255, 0, 128, 0.3);
    color: #ff0080;
}

.alert-warning {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.alert-info {
    background: rgba(0, 128, 255, 0.1);
    border-color: rgba(0, 128, 255, 0.3);
    color: #0080ff;
}

/* Modales mejorados */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.95), rgba(25, 15, 35, 0.95));
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #00ffff, #ff0080);
    border-radius: 25px 25px 0 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.close {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.close:hover {
    color: #ff0080;
    background: rgba(255, 0, 128, 0.1);
    border-color: rgba(255, 0, 128, 0.3);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

/* Detalles de compra mejorados */
.purchase-details {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.purchase-details h4 {
    color: #00ffff;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 10px #00ffff;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 20px 0 0 0;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
}

.detail-row strong {
    color: #ffffff;
}

.detail-row .value {
    color: #00ff80;
    font-weight: 600;
}

.detail-row .value.highlight {
    color: #00ffff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #00ffff;
}

/* Mostrar clave mejorado - SIN animaciones infinitas problemáticas */
.key-display {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 128, 0.5);
    margin: 25px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

/* Eliminado: animación scan infinita problemática */
.key-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 128, 0.1), transparent);
    /* Eliminado: animation: scan 2s ease-in-out infinite; */
}

.key-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: #00ff80;
    font-weight: bold;
    word-break: break-all;
    text-shadow: 
        0 0 10px #00ff80,
        0 0 20px rgba(0, 255, 128, 0.5);
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    border: 2px dashed rgba(0, 255, 128, 0.3);
    position: relative;
    z-index: 1;
    /* Eliminado: animation: neonPulse 2s ease-in-out infinite; */
}

/* Estado vacío mejorado - SIN animaciones infinitas */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #666;
}

.empty-state i {
    font-size: 6rem;
    margin-bottom: 30px;
    opacity: 0.3;
    color: #00ffff;
    text-shadow: 0 0 30px #00ffff;
    /* Eliminado: animation: neonPulse 3s ease-in-out infinite; */
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ccc;
    font-family: 'Space Grotesk', sans-serif;
}

.empty-state p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Efectos de loading mejorados */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notificaciones toast mejoradas */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 15px;
    border-left: 4px solid #00ff80;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border: 2px solid rgba(0, 255, 128, 0.3);
    animation: slideInFromTop 0.5s ease-out;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #ff0080;
    border-color: rgba(255, 0, 128, 0.3);
}

.toast.warning {
    border-left-color: #ffa500;
    border-color: rgba(255, 165, 0, 0.3);
}

/* Animaciones adicionales */
.slide-up {
    animation: slideUpFade 0.6s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar personalizado mejorado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff, #ff0080);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff0080, #00ffff);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

/* Efectos especiales para desktop - SIN eventos problemáticos */
@media (min-width: 769px) {
    /* Efecto de glitch ocasional (solo hover, no automático) */
    .neon-text:hover,
    .neon-text-red:hover {
        animation: glitchEffect 0.3s ease-in-out, neonPulseOnce 1s ease-in-out;
    }
    
    /* Efecto de hover en el header completo */
    .neon-header:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 40px rgba(0, 255, 255, 0.4);
    }
}

/* ===== SIDEBAR PROFESIONAL SOLO PARA PC ===== */
@media (min-width: 769px) {
    /* Ocultar navegación principal en PC */
    .main-nav {
        display: none !important;
    }
    
    /* Layout para PC con sidebar */
    body {
        margin-left: 280px !important;
        padding-top: 90px !important; /* Espacio para el header fijo */
        transition: margin-left 0.3s ease;
    }
    
    /* Header para PC - solo en área de contenido */
    .neon-header {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 20px !important;
        left: 280px !important;
        width: calc(100% - 280px) !important;
        position: fixed !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
}

/* SIDEBAR PROFESIONAL - Solo visible en PC */
.professional-sidebar {
    position: fixed;
    top: 0; /* Empezar desde arriba */
    left: 0;
    width: 280px;
    height: 100vh; /* Altura completa */
    background: linear-gradient(180deg, 
        rgba(8, 12, 30, 0.98) 0%,
        rgba(15, 20, 40, 0.98) 30%,
        rgba(20, 25, 50, 0.98) 70%,
        rgba(25, 30, 60, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-right: 3px solid rgba(0, 255, 255, 0.4);
    box-shadow: 
        4px 0 40px rgba(0, 0, 0, 0.8),
        inset -2px 0 0 rgba(255, 255, 255, 0.1),
        4px 0 80px rgba(0, 255, 255, 0.2);
    z-index: 900;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Oculto por defecto */
    display: none;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

/* Mostrar sidebar SOLO en PC */
@media (min-width: 769px) {
    .professional-sidebar {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }
}

/* OCULTAR SIDEBAR EN MÓVIL - REGLA ABSOLUTA */
@media (max-width: 768px) {
    .professional-sidebar,
    .professional-sidebar *,
    .sidebar-header,
    .sidebar-nav,
    .sidebar-user,
    .nav-section,
    .nav-item,
    .nav-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -99999px !important;
        top: -99999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        z-index: -99999 !important;
        pointer-events: none !important;
    }
    
    body {
        margin-left: 0 !important;
    }
    
    .neon-header {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
    }
}

/* Header del sidebar */
.sidebar-header {
    padding: 30px 25px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.15), 
        rgba(255, 0, 128, 0.08));
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sidebar-logo i {
    font-size: 3rem;
    background: linear-gradient(45deg, #00ffff, #ff0080, #00ff80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}

.sidebar-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffffff, #00ffff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navegación del sidebar */
.sidebar-nav {
    padding: 25px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-section {
    margin-bottom: 35px;
}

.nav-section-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0 25px 18px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    margin-bottom: 18px;
    font-family: 'Orbitron', monospace;
}

.nav-item {
    margin: 0;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 25px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.2), 
        rgba(255, 0, 128, 0.12));
    border-left-color: #00ffff;
    transform: translateX(12px);
}

.nav-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
    color: #00ffff;
    transform: scale(1.25) rotate(8deg);
}

.nav-text {
    font-weight: 700;
    letter-spacing: 0.8px;
}

/* Responsive Design mejorado */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .neon-header .container {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo a {
        font-size: 1.8rem;
        gap: 8px;
    }
    
    .logo i {
        font-size: 1.8rem;
        margin-right: 8px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .filters {
        padding: 25px;
        border-radius: 20px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-header,
    .product-details,
    .featured-product-content {
        padding: 25px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 30px;
        border-radius: 20px;
    }
    
    .login-container {
        margin: 40px auto;
        padding: 40px 30px;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .neon-header .container {
        padding: 15px;
    }
    
    .logo a {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 15px 10px;
    }
    
    .filters {
        padding: 20px;
        border-radius: 15px;
    }
    
    .product-header,
    .product-details,
    .featured-product-content {
        padding: 20px;
    }
    
    .product-name,
    .featured-product-name {
        font-size: 1.3rem;
    }
    
    .product-price,
    .featured-product-price {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 25px;
        margin: 5% auto;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .login-container {
        margin: 20px auto;
        padding: 30px 25px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 30px 25px;
    }
}

/* Utilidades adicionales */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }

.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

.hidden { display: none; }
.visible { display: block; }

.pulse {
    animation: neonPulseOnce 2s;
}

.bounce {
    animation: bounceOnce 1s;
}

@keyframes bounceOnce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

/* Efectos especiales para gaming */
.glow-effect {
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(0, 255, 255, 0.1);
}

.neon-border {
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 10px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

@media (min-width: 1025px) {
    .main-nav ul {
        gap: 18px;
    }
    .main-nav ul > li {
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-width: unset;
        min-height: unset;
        transition: none;
        overflow: visible;
    }
    .main-nav ul > li:hover {
        transform: none;
        box-shadow: none;
        z-index: auto;
    }
    .main-nav ul > li a {
        background: transparent !important;
        border-radius: 0;
        padding: 10px 18px;
        font-weight: 700;
        color: #eaf6ff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.01rem;
        box-shadow: none !important;
        transition: color 0.2s;
    }
    .main-nav ul > li a:hover, .main-nav ul > li a.active {
        color: #00eaff !important;
        text-shadow: none !important;
        box-shadow: none !important;
        background: none !important;
    }
}

/* PROTECCIONES ESPECÍFICAS PARA MÓVIL ANDROID - Prevenir KEYCODE_APP_SWITCH */
@media (max-width: 768px) and (pointer: coarse) {
    * {
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        user-select: none !important;
    }
    
    /* Forzar fondo negro en móvil y tablets con máxima prioridad */
    html, body, #main, .container, .page, .wrapper {
        background: #181818 !important;
        background-image: none !important;
        background-attachment: initial !important;
    }
    
    /* Desactivar elementos decorativos problemáticos en móvil */
    .neon-header::before,
    .neon-header::after,
    .hero::before,
    .category-card::before,
    .product-card::before,
    .featured-product-card::before,
    .key-display::before {
        display: none !important;
    }
    
    /* Simplificar efectos hover en móvil */
    .category-card:hover,
    .product-card:hover,
    .featured-product-card:hover {
        transform: none !important;
        animation: none !important;
    }
    
    /* Prevenir zoom accidental */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Efectos neon adicionales para el menú móvil */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 255, 0.1), 
        transparent);
    animation: menuShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes menuShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Animación de entrada para elementos del menú */
@keyframes menuItemSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplicar animación cuando el menú está activo */
.mobile-menu[style*="block"] li {
    animation: menuItemSlideIn 0.4s ease-out forwards;
    opacity: 0;
}

.mobile-menu[style*="block"] li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu[style*="block"] li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu[style*="block"] li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu[style*="block"] li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu[style*="block"] li:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu[style*="block"] li:nth-child(6) { animation-delay: 0.6s; }
.mobile-menu[style*="block"] li:nth-child(7) { animation-delay: 0.7s; }
.mobile-menu[style*="block"] li:nth-child(8) { animation-delay: 0.8s; }



/* Efecto de partículas en el fondo del menú (sutil) */
.mobile-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 128, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 128, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 70px 70px;
    opacity: 0.3;
    pointer-events: none;
    animation: particleFloat 10s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Mejoras responsivas */
@media (max-width: 480px) {
    .mobile-menu a {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .mobile-menu a i {
        margin-right: 12px;
        font-size: 1.1rem;
    }
}

/* ===== CHAT FLOTANTE - DESACTIVADO PARA VIP WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Rajdhani', sans-serif;
    /* OCULTAR PARA DAR LUGAR AL WIDGET VIP */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Icono flotante - OCULTO PARA VIP WIDGET */
.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(255, 0, 128, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: chatPulse 2s ease-in-out infinite;
    visibility: hidden !important;
    opacity: 0 !important;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 30px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(255, 0, 128, 0.5);
}

.chat-toggle i {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--neon-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.5);
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { 
        box-shadow: 
            0 4px 20px rgba(0, 255, 255, 0.4),
            0 0 30px rgba(255, 0, 128, 0.3);
    }
    50% { 
        box-shadow: 
            0 6px 30px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(255, 0, 128, 0.5);
    }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Ventana del chat */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 500px;
    height: 700px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(26, 10, 26, 0.95));
    backdrop-filter: blur(20px);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 255, 255, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.3s ease-out;
}

.chat-window.active {
    display: flex;
}

@keyframes chatSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del chat */
.chat-header {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
}

.chat-title i {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Cuerpo del chat */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-end;
    min-height: 100%;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: messageSlideIn 0.3s ease-out;
}

.chat-message.own {
    flex-direction: row-reverse;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
}

.chat-message.own .message-content {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    color: #fff;
    border-bottom-right-radius: 5px;
}

.chat-message:not(.own) .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 5px;
}

.message-sender {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.8;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 8px;
    text-align: right;
}

/* Footer del chat */
.chat-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 15px 20px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-send {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.chat-send i {
    font-size: 1.2rem;
}

/* Estados de conexión */
.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-status:hover {
    opacity: 1;
    transform: scale(1.05);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Usuarios online */
.online-users {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menú desplegable de usuarios online (tipo zoom) */
.online-users-dropdown {
    position: absolute;
    top: -10px;
    right: 0;
    width: 280px;
    max-height: 300px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.98), rgba(26, 10, 26, 0.98));
    backdrop-filter: blur(20px);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 255, 255, 0.3);
    z-index: 12003;
    animation: dropdownSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header i {
    font-size: 1.1rem;
    color: #fff;
    margin-right: 10px;
}

.dropdown-header span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.dropdown-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dropdown-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dropdown-content {
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-content .online-user {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.dropdown-content .online-user:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
    transform: translateX(5px);
}

.dropdown-content .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.dropdown-content .user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dropdown-content .user-name {
    font-weight: 600;
    color: #00ffff;
    font-size: 13px;
    margin-bottom: 2px;
}

.dropdown-content .user-status {
    font-size: 11px;
    color: #00ff80;
    opacity: 0.8;
}

.online-users-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.online-users-title i {
    color: var(--neon-green);
    font-size: 0.9rem;
}

.online-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.online-user {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.online-user:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
    transform: translateX(5px);
}

.user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Mejoras responsive para usuarios online */
@media (max-width: 768px) {
    .online-user {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin: 3px 0;
    }
    
    .user-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .online-user {
        padding: 5px 8px;
        font-size: 0.7rem;
        margin: 2px 0;
    }
}

/* Estilos para avatares de usuario */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #00ffff;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-status {
    font-size: 12px;
    color: #00ff80;
    opacity: 0.8;
}

/* Input wrapper para archivos */
.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.chat-attach {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-attach:hover {
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.1);
}

.chat-file-input {
    display: none;
}

/* Mensajes con archivos */
.message-file {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 200px;
}

.message-file img,
.message-file video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.message-file img:hover,
.message-file video:hover {
    transform: scale(1.05);
}

.message-file video {
    max-height: 150px;
}

/* Modal para ver archivos */
.file-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.file-modal.active {
    display: flex;
}

.file-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.file-modal-content img,
.file-modal-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.file-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
}

.file-modal-close:hover {
    color: var(--neon-cyan);
}

/* Estilos específicos para el dashboard */
.dashboard-page .neon-header {
    margin-top: 30px;
    padding: 25px 30px;
}

.dashboard-page .neon-header .container {
    padding: 15px 20px;
}

.dashboard-page .user-info {
    margin-top: 10px;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.dashboard-page .user-avatar {
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .online-users-dropdown {
        width: 250px;
        max-height: 250px;
        top: -5px;
        right: -5px;
    }
    
    .dropdown-content {
        padding: 12px;
        max-height: 200px;
    }
    
    .dropdown-content .online-user {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .chat-toggle {
        width: 55px;
        height: 55px;
    }
    
    .chat-toggle i {
        font-size: 1.3rem;
    }
    
    .chat-window {
        width: 320px;
        height: 450px;
        bottom: 75px;
        right: 15px;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-title {
        font-size: 1.1rem;
    }
    
    .chat-body {
        padding: 15px;
    }
    
    .chat-footer {
        padding: 15px;
    }
    
    .chat-attach {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
        font-size: 1.2rem;
    }
    
    .chat-send {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: 300px;
        height: 400px;
        right: -10px;
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .chat-input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .chat-send {
        width: 35px;
        height: 35px;
    }
    
    .chat-send i {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
        z-index: 12000 !important;
        /* MANTENER OCULTO PARA VIP WIDGET */
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .chat-toggle {
        width: 60px !important;
        height: 60px !important;
        min-width: 50px;
        min-height: 50px;
        z-index: 12001 !important;
        /* MANTENER OCULTO PARA VIP WIDGET */
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .chat-window {
        width: 96vw !important;
        min-width: 0 !important;
        max-width: 99vw !important;
        height: 70vh !important;
        min-height: 320px;
        right: -5vw !important;
        left: auto !important;
        bottom: 75px !important;
        border-radius: 18px !important;
        z-index: 12002 !important;
    }
}
@media (max-width: 480px) {
    .chat-widget {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 12000 !important;
    }
    .chat-toggle {
        width: 54px !important;
        height: 54px !important;
        z-index: 12001 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .chat-window {
        width: 99vw !important;
        max-width: 99vw !important;
        min-width: 0 !important;
        height: 75vh !important;
        min-height: 220px;
        right: -8vw !important;
        left: auto !important;
        bottom: 70px !important;
        border-radius: 14px !important;
        z-index: 12002 !important;
    }
}

/* ===== ESTILOS SIDEBAR USER ===== */
.sidebar-user-placeholder {
    margin-top: auto;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.sidebar-user {
    margin-top: auto;
    padding: 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(10, 10, 15, 0.8);
}

/* Fecha y hora */
.user-date {
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.date-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-container i {
    color: #00ffff;
    font-size: 18px;
    opacity: 0.8;
}

.date-info {
    flex: 1;
}

.current-date {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.current-time {
    font-size: 12px;
    color: #00ffff;
    opacity: 0.7;
}

/* Información del usuario */
.sidebar-user .user-info {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.sidebar-user .user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.sidebar-user .user-details {
    flex: 1;
}

.sidebar-user .user-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.sidebar-user .user-role {
    font-size: 12px;
    color: #00ffff;
    margin: 0;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Saldo del usuario */
.user-balance {
    padding: 15px 25px 20px;
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.balance-container i {
    color: #00ffff;
    font-size: 18px;
}

.balance-info {
    flex: 1;
}

.balance-amount {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.balance-label {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== INFORMACIÓN USUARIO EN HEADER ===== */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-right: 25px;
    padding: 15px 25px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 450px;
}

/* Fecha en header */
.header-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-date i {
    color: #00ffff;
    font-size: 20px;
    opacity: 0.8;
}

.date-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-date {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.current-time {
    font-size: 12px;
    color: #00ffff;
    opacity: 0.7;
    line-height: 1.2;
}

/* Usuario en header */
.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
}

.user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name-small {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.user-role-small {
    font-size: 11px;
    color: #00ffff;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Saldo en header */
.header-balance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-balance i {
    color: #00ffff;
    font-size: 20px;
}

.balance-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balance-amount-small {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.balance-label-small {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Ocultar en móvil */
@media (max-width: 768px) {
    .header-user-info {
        display: none !important;
    }
}

/* ===== ESTILOS SALDO BONUS ===== */
/* Header - Saldo Bonus */
.bonus-balance-header {
    color: #ffd700 !important; /* Amarillo dorado */
    font-weight: 700 !important;
    font-size: 16px !important; /* Mismo tamaño que balance-amount-small */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5) !important;
    line-height: 1.2;
}

/* Sidebar móvil - Saldo Bonus */
.bonus-balance-sidebar {
    color: #ffd700 !important; /* Amarillo dorado */
    font-weight: bold !important;
    font-size: inherit !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.balance-bonus-label {
    color: rgba(255, 215, 0, 0.8);
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Dashboard - Saldo Bonus */
.bonus-card {
    border: 2px solid #ffd700 !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05)) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2) !important;
}

.bonus-icon {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.2) !important;
}

.bonus-amount-dashboard {
    color: #ffd700 !important;
    font-weight: bold !important;
    font-size: inherit !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.bonus-info {
    color: rgba(255, 215, 0, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Balance.php - Saldo Bonus */
.bonus-balance-info .bonus-amount {
    color: #ffd700 !important;
    font-weight: bold !important;
    font-size: inherit !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Responsive - Asegurar que el amarillo se vea en todos los dispositivos */
@media (max-width: 768px) {
    .bonus-balance-header,
    .bonus-balance-sidebar,
    .bonus-amount-dashboard {
        color: #ffd700 !important;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
    }
    
    .bonus-card {
        border: 2px solid #ffd700 !important;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.08)) !important;
    }
}

/* ===== FIN ESTILOS SALDO BONUS ===== */

/* 🎯 TARJETA ÉPICA DE USUARIO EN MENÚ HAMBURGUESA - HORIZONTAL TOTAL */
.epic-user-card {
    position: relative;
    margin: 15px 15px 25px 15px; /* Menos margen lateral para más ancho */
    padding: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.08) 0%,
        rgba(128, 0, 255, 0.08) 50%,
        rgba(255, 0, 128, 0.08) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: calc(100% - 30px); /* Ocupa todo el ancho menos márgenes */
}

.epic-user-card:hover {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.15) 0%,
        rgba(128, 0, 255, 0.15) 50%,
        rgba(255, 0, 128, 0.15) 100%);
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribuir espacio uniformemente */
    padding: 10px 15px; /* Menos padding para más espacio */
    gap: 6px; /* Gap más pequeño */
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: 0.8rem; /* Texto más pequeño */
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 2;
    white-space: nowrap; /* Mantener todo en una línea */
}

.user-label {
    color: rgba(0, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.user-name {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    margin: 0 2px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(0, 255, 136, 0.9);
}

.balance-info i {
    font-size: 0.8rem;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.balance-value {
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.bonus-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 215, 0, 0.9);
}

.bonus-info i {
    font-size: 0.75rem;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.bonus-value {
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.bonus-text {
    font-size: 0.7rem;
    color: rgba(255, 215, 0, 0.7);
    font-weight: 400;
    margin-left: 2px;
}

/* Efecto de brillo animado */
.card-glow {
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 255, 255, 0.4) 50%,
        transparent 100%);
    transition: left 0.5s ease;
    border-radius: 20px;
    z-index: 1;
}

.epic-user-card:hover .card-glow {
    left: 100%;
}

/* Responsive para móviles - FORZAR HORIZONTAL */
@media (max-width: 480px) {
    .epic-user-card {
        margin: 12px 10px 20px 10px; /* Márgenes aún más pequeños */
        width: calc(100% - 20px); /* Máximo ancho posible */
    }
    
    .user-card-content {
        padding: 8px 12px; /* Padding compacto */
        font-size: 0.7rem; /* Texto más pequeño */
        gap: 4px; /* Gap mínimo */
        justify-content: space-between; /* Distribuir bien */
        /* NO flex-wrap para mantener horizontal */
    }
    
    .user-name {
        max-width: 45px; /* Nombre más corto */
        font-size: 0.7rem;
    }
    
    .user-label {
        font-size: 0.7rem;
    }
    
    .card-separator {
        margin: 0 1px;
        font-size: 0.6rem;
    }
    
    .balance-info,
    .bonus-info {
        gap: 3px; /* Gap súper pequeño */
    }
    
    .balance-info i,
    .bonus-info i {
        font-size: 0.6rem;
    }
    
    .balance-value,
    .bonus-value {
        font-size: 0.7rem;
    }
    
    .bonus-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    .epic-user-card {
        margin: 10px 8px 18px 8px; /* Márgenes súper pequeños */
        width: calc(100% - 16px);
    }
    
    .user-card-content {
        font-size: 0.65rem; /* Texto aún más pequeño */
        padding: 6px 10px;
        gap: 3px;
    }
    
    .user-name {
        max-width: 40px;
        font-size: 0.65rem;
    }
    
    .user-label {
        font-size: 0.65rem;
    }
    
    .balance-value,
    .bonus-value {
        font-size: 0.65rem;
    }
    
    .balance-info i,
    .bonus-info i {
        font-size: 0.55rem;
    }
}

/* Para pantallas súper pequeñas - máximo ancho y compacto */
@media (max-width: 320px) {
    .epic-user-card {
        margin: 8px 5px 15px 5px; /* Márgenes mínimos */
        width: calc(100% - 10px); /* Casi todo el ancho */
        border-radius: 15px; /* Border radius más pequeño */
    }
    
    .user-card-content {
        padding: 5px 8px; /* Padding súper compacto */
        gap: 2px; /* Gap mínimo */
        font-size: 0.6rem;
    }
    
    .user-name {
        max-width: 35px; /* Nombre súper corto */
    }
    
    .card-separator {
        font-size: 0.5rem;
        margin: 0;
    }
}

