/* --- Variables de Color y Sistema de Diseño --- */
:root {
    /* Colores Principales */
    --vr-cyan: #00ffcc;
    --vr-cyan-glow: rgba(0, 255, 204, 0.5);
    --vr-indigo: #6366f1; /* Más moderno */
    --vr-indigo-glow: rgba(99, 102, 241, 0.5);
    --vr-accent: #a855f7; /* Púrpura para gradientes */
    
    /* Fondos Profundos */
    --vr-dark: #060608;
    --vr-darker: #000000;
    --vr-dark-card: rgba(15, 15, 20, 0.65);
    
    /* Textos */
    --vr-text: #f8fafc;
    --vr-text-muted: #94a3b8;
    
    /* Utilidades */
    --vr-border: rgba(255, 255, 255, 0.08);
    --vr-border-hover: rgba(255, 255, 255, 0.2);
    --vr-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    --vr-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--vr-dark);
    font-family: 'Inter', sans-serif;
    color: var(--vr-text);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .hero-title, .section-title, .card-title, .connect-title, .stat-card-number {
    font-family: 'Outfit', sans-serif !important;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--vr-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--vr-cyan); }

/* --- Fondo de Partículas --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Index corregido para que el contenido pase por encima */
    pointer-events: none;
    background: radial-gradient(circle at center, #0a0b12 0%, #000000 100%);
}

.content-wrapper, main {
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

/* --- Glassmorphism Utilidades --- */
.glass-panel {
    background: var(--vr-dark-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--vr-border);
    border-radius: 20px;
    box-shadow: var(--vr-shadow);
    transition: var(--vr-transition);
}

.glass-panel:hover {
    border-color: var(--vr-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* --- Mensajes de aviso --- */
.alert-success, .alert-danger {
    background: var(--vr-dark-card);
    border: 1px solid var(--vr-border);
    border-left: 4px solid var(--vr-cyan);
    color: var(--vr-text);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    max-width: 800px;
    margin: 20px auto;
    padding: 1rem 1.5rem;
    animation: fadeInDown 0.6s ease;
}
.alert-danger { border-left-color: #ef4444; }
.floating-message {
    background: rgba(10, 10, 14, 0.9);
    border: 1px solid var(--vr-border);
    border-left: 4px solid var(--vr-cyan) !important;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    margin-top: 70px !important;
    position: relative;
    z-index: 1000;
}

/* --- Navegación (nav.php) --- */
.gtahub-nav-container {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    position: relative;
    z-index: 1000;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.gtahub-nav {
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0.6rem 2rem;
    gap: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: var(--vr-transition);
}

.gtahub-nav:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 45px rgba(0, 255, 204, 0.1);
}

.gtahub-nav .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.gtahub-nav .nav-links a {
    color: var(--vr-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--vr-transition);
    letter-spacing: 1px;
}

.gtahub-nav .nav-links a i { font-size: 1.1rem; }

.gtahub-nav .nav-links a:hover,
.gtahub-nav .nav-links a.active {
    color: var(--vr-text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.gtahub-nav .nav-logo {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    position: relative;
    transform: scale(1.4);
    filter: drop-shadow(0 0 15px rgba(0, 255, 204, 0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gtahub-nav .nav-logo:hover {
    transform: scale(1.6);
    filter: drop-shadow(0 0 25px rgba(0, 255, 204, 0.6));
}

.gtahub-nav .nav-logo img { width: 100%; height: 100%; object-fit: contain; }

.gtahub-nav .nav-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gtahub-nav .nav-online {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.gtahub-nav .nav-online .count {
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.gtahub-nav .nav-online .count::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-dot 2s infinite;
}

.gtahub-nav .nav-online .label {
    color: var(--vr-text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 16px;
}

@media (max-width: 991px) {
    .gtahub-nav {
        flex-direction: column;
        border-radius: 24px;
        gap: 1.5rem;
        padding: 1.5rem;
        width: 90%;
        max-width: 400px;
    }
    .gtahub-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .gtahub-nav .nav-logo { margin: 1rem 0; transform: scale(1.2); }
    .gtahub-nav .nav-stats { flex-direction: column; gap: 1rem; }
}


/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding-top: 10vh;
    padding-bottom: 90px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

@media (min-width: 768px) {
    .hero-title { font-size: 7.5rem; }
}

.hero-title span {
    background: linear-gradient(135deg, var(--vr-cyan) 0%, var(--vr-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 255, 204, 0.4);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--vr-text-muted);
    opacity: 0;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s forwards 0.6s;
}

/* --- Botones --- */
.btn-primary-professional {
    background: linear-gradient(135deg, var(--vr-cyan) 0%, var(--vr-indigo) 100%);
    border: none;
    color: #fff !important;
    padding: 16px 45px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--vr-transition);
    box-shadow: 0 10px 25px var(--vr-cyan-glow);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-professional::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--vr-indigo) 0%, var(--vr-accent) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary-professional:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--vr-indigo-glow);
}

.btn-primary-professional:hover::before { opacity: 1; }

/* --- Secciones Generales --- */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 1rem;
    color: var(--vr-text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--vr-cyan), var(--vr-indigo));
    border-radius: 4px;
}

.text-white-50 { color: var(--vr-text-muted) !important; font-size: 1.1rem; }

/* --- Features Section --- */
.features-section { padding: 100px 0; }

.feature-item {
    text-align: center;
    padding: 2.5rem;
}

.feature-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--vr-cyan), var(--vr-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    transition: var(--vr-transition);
    display: inline-block;
}

.feature-item:hover .feature-icon { transform: scale(1.15) rotate(5deg); }

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--vr-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Connect Section --- */
.connect-section {
    padding: 100px 0;
    position: relative;
}

.connect-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--vr-text);
    margin-bottom: 1rem;
    text-align: center;
}

.connect-subtitle {
    font-size: 1.2rem;
    color: var(--vr-text-muted);
    text-align: center;
    margin-bottom: 4rem;
}

.connect-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.connect-card, .stat-card, .news-card, .server-status-card, .feature-item, .info-card {
    background: var(--vr-dark-card) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--vr-border) !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    transition: var(--vr-transition) !important;
    box-shadow: var(--vr-shadow) !important;
}

.connect-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.connect-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.connect-card:hover, .stat-card:hover, .news-card:hover, .feature-item:hover, .server-status-card:hover, .info-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(0, 255, 204, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 204, 0.1) !important;
}

.connect-card:hover::before { opacity: 1; }

.connect-card-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--vr-cyan), var(--vr-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    transition: var(--vr-transition);
}

.connect-card:hover .connect-card-icon { transform: scale(1.1) translateY(-5px); }

.connect-card-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.connect-card-text {
    color: var(--vr-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.connect-card-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.connect-card-button {
    border-radius: 50px;
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    transition: var(--vr-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.connect-card-button-discord {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--vr-border);
    color: #fff;
}
.connect-card-button-discord:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
}

.connect-card-button-download {
    background: linear-gradient(45deg, var(--vr-indigo), var(--vr-accent));
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.connect-card-button-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.6);
    color: #fff;
}

.android-ip-only {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--vr-border);
    border-radius: 12px;
    padding: 1.2rem;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--vr-text);
    width: 100%;
}
.android-ip-only span { color: var(--vr-cyan); font-weight: bold; }

/* --- Stats --- */
.stat-card { text-align: center; }
.stat-card-icon i {
    font-size: 3rem;
    color: var(--vr-cyan);
    margin-bottom: 1.2rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--vr-cyan-glow));
}
.stat-card-number {
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-card-label {
    font-size: 0.9rem;
    color: var(--vr-text-muted);
    letter-spacing: 2px;
    font-weight: 700;
}

/* --- News --- */
.noticias-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
}
.noticias-carousel > div {
    flex: 0 0 90%;
    scroll-snap-align: center;
}
@media (min-width: 768px) { .noticias-carousel > div { flex: 0 0 45%; } }

.news-card { height: 100%; display: flex; flex-direction: column; }
.news-card .card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.news-card .card-text {
    color: var(--vr-text-muted);
    line-height: 1.7;
    flex-grow: 1;
}

/* --- Server Status --- */
.server-status-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem !important;
}
.server-status-title {
    font-size: 2.8rem;
    font-weight: 800;
}
.player-count {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--vr-cyan), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.player-count small {
    font-size: 1.8rem;
    color: var(--vr-text-muted);
    -webkit-text-fill-color: var(--vr-text-muted);
}
.status-badge {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6em 1.2em;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}
.status-badge.online {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge.online::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-dot 1.5s infinite;
}

.server-progress .progress {
    height: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    border: 1px solid var(--vr-border);
}
.server-progress .progress-bar {
    background: linear-gradient(90deg, var(--vr-cyan), var(--vr-indigo));
    box-shadow: 0 0 15px var(--vr-cyan-glow);
    border-radius: 50px;
}

/* --- Discord Float --- */
.discord-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    background: #5865F2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.5);
    transition: var(--vr-transition);
}
.discord-float:hover {
    transform: scale(1.15) rotate(-10deg);
    background: #4752c4;
    color: white;
}

/* --- Animaciones --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Fix Inventario Tablas */
.tabla-inventario tr td:first-child { color: #FFFFFF !important; font-weight: 600; }
.tabla-inventario tr td:nth-child(2) { color: var(--vr-text-muted) !important; }
.tabla-inventario th { color: var(--vr-text-muted) !important; font-family: 'Outfit', sans-serif; font-size: 0.9rem; letter-spacing: 1px; }

/* Modal general UI */
.modal-content {
    border: 1px solid var(--vr-border);
    border-radius: 24px;
    background: var(--vr-dark-card);
    backdrop-filter: blur(20px);
}
.modal-header { border-bottom: 1px solid var(--vr-border); }
.modal-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem; }
.form-control {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--vr-border);
    color: #fff;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
}
.form-control:focus {
    background: rgba(0,0,0,0.5);
    border-color: var(--vr-indigo);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}