/* CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

/* FONDOS */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* AJUSTE: Reducido de 2vh a 0.5vh para subir el logo al límite superior */
    padding-top: 0.5vh;
    padding-bottom: 20px;
}

/* HEADER Y LOGO CON AURA ÉPICA (GUARDADO) */
.header {
    text-align: center;
    margin-bottom: 10px;
}

/* Reducido ligeramente para compactar */
.logo {
    width: 280px;
    margin-bottom: 8px;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 0 15px rgba(229, 169, 59, 0.8)) drop-shadow(0 0 30px rgba(0, 168, 255, 0.5));
    animation: aura-glow 3s infinite alternate ease-in-out;
}

@keyframes aura-glow {
    0% {
        filter: drop-shadow(0 0 15px rgba(229, 169, 59, 0.7));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 40px rgba(0, 168, 255, 0.7));
        transform: scale(1.02);
    }
}

.tagline {
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0.7;
    text-transform: uppercase;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 8px 0;
    background: linear-gradient(135deg, #fff 30%, #e5a93b 70%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(229, 169, 59, 0.25);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 13px;
    opacity: 0.5;
    font-style: italic;
}

/* CONTENEDOR DE CAJONES - ANCHO MAESTRO */
.container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 98%;
    max-width: 1550px;
    /* AJUSTE: Reducido de 15px a 5px para que los cajones sigan al título de cerca */
    margin-top: 5px;
}

.card {
    flex: 1;
    max-width: 460px;
    background: rgba(8, 8, 12, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- EFECTO ZOOM CONTROLADO --- */
.card.classic:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(229, 169, 59, 0.25);
    border-color: rgba(229, 169, 59, 0.4);
    background: rgba(12, 12, 18, 0.85);
}

.card.extreme:hover {
    box-shadow: 0 0 40px rgba(0, 168, 255, 0.35);
}

/* IDENTIDAD VISUAL POR SERVIDOR */
.classic {
    border-top: 4px solid #e5a93b;
}

.extreme {
    border-top: 4px solid #00a8ff;
}

.header-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.icon {
    font-size: 20px;
}

/* TAMAÑOS DE TEXTO (CONFIGURACIÓN MAESTRA) */
.title-server {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem !important;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.classic .title-server {
    color: #e5a93b;
    text-shadow: 0 0 8px rgba(229, 169, 59, 0.4);
}

.extreme .title-server {
    color: #00a8ff;
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.4);
}

.description {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 15px;
    height: 40px;
}

/* ESTADÍSTICAS */
.grid-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item span {
    display: block;
    font-size: 9px;
    opacity: 0.6;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-item strong {
    font-size: 16px !important;
}

.classic .stat-item strong {
    color: #e5a93b;
}

.extreme .stat-item strong {
    color: #00a8ff;
}

/* ONLINE STATUS */
.online-tag {
    background: rgba(0, 255, 100, 0.05);
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 100, 0.1);
}

.green {
    color: #00ff64;
    font-weight: bold;
}

/* LISTA DE CARACTERÍSTICAS */
.feature-list {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.feature-list ul {
    list-style: none;
}

.feature-list li {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

/* BOTONES */
.btn-play {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.3s;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.btn-gold {
    background: linear-gradient(135deg, #e5a93b, #b8860b);
    color: #000;
    border: 1px solid #e5a93b;
    box-shadow: 0 0 10px rgba(229, 169, 59, 0.4);
}

.btn-gold:hover {
    box-shadow: 0 0 20px rgba(229, 169, 59, 0.7);
    color: #000;
}

.btn-blue {
    background: linear-gradient(135deg, #00a8ff, #0056b3);
    color: #fff;
    border: 1px solid #00a8ff;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
}

.btn-blue:hover {
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.7);
    color: #fff;
}

/* BADGES */
.badge {
    position: absolute;
    top: -10px;
    right: 15px;
    padding: 3px 10px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: bold;
}

.badge-gold {
    background: #e5a93b;
    color: #000;
    box-shadow: 0 0 8px rgba(229, 169, 59, 0.6);
}

.badge-blue {
    background: #00a8ff;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.6);
}

/* TEXTO LEGAL */
.legal {
    margin-top: auto;
    padding: 20px 0;
    font-size: 12px;
    opacity: 0.4;
    letter-spacing: 0.5px;
    text-align: center;
}

/* BARRAS DE PROGRESO DE ESTADÍSTICAS */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-bar-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.stat-info span {
    opacity: 0.6;
    text-transform: uppercase;
}

.stat-info strong {
    font-weight: 800;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.progress-bar-fill.gold {
    background: linear-gradient(90deg, #e5a93b, #ffb83f);
    box-shadow: 0 0 8px rgba(229, 169, 59, 0.6);
}

.progress-bar-fill.blue {
    background: linear-gradient(90deg, #00a8ff, #00d2ff);
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.6);
}

/* EFECTO SHIMMER EN BOTONES */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: rotate(30deg);
    animation: shimmer-effect 3s infinite;
    pointer-events: none;
}

@keyframes shimmer-effect {
    0% {
        transform: translate(-30%, -30%) rotate(30deg);
    }
    100% {
        transform: translate(30%, 30%) rotate(30deg);
    }
}

/* BARRA LATERAL SOCIAL */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-item:hover {
    transform: scale(1.15) translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-item.discord:hover {
    background: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

.social-item.facebook:hover {
    background: #1877F2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.6);
}

.social-item.whatsapp:hover {
    background: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

/* REPRODUCTOR DE MÚSICA */
.music-player {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.music-player:hover {
    background: rgba(15, 15, 25, 0.9);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.music-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.8;
    text-transform: uppercase;
}

.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 16px;
    height: 12px;
}

.sound-wave .bar {
    width: 2px;
    height: 2px;
    background-color: #e5a93b;
    transition: height 0.2s ease;
}

.music-player.playing .sound-wave .bar {
    background-color: #00a8ff;
    animation: wave-animation 1.2s ease infinite alternate;
}

.music-player.playing .sound-wave .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.music-player.playing .sound-wave .bar:nth-child(3) {
    animation-delay: 0.4s;
}

.music-player.playing .sound-wave .bar:nth-child(4) {
    animation-delay: 0.1s;
}

@keyframes wave-animation {
    0% { height: 2px; }
    100% { height: 12px; }
}

/* RESPONSIVO */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        gap: 15px;
    }

    .card {
        padding: 20px;
    }

    .title-server {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {

    body,
    .viewport {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .viewport {
        padding-top: 50px;
        padding-bottom: 20px;
        justify-content: flex-start;
    }

    .logo {
        width: 140px;
    }

    .main-title {
        font-size: 1.4rem;
        padding: 0 10px;
    }

    .container {
        flex-direction: column;
        width: 90%;
        margin-top: 20px;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 15px;
    }

    /* Desactivar efectos hover exagerados en tactil */
    .card:hover {
        transform: scale(1.01);
        transform: translateY(-5px);
    }

    .legal {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        padding: 20px;
    }

    /* Adaptación móvil para elementos sociales y reproductor */
    .social-sidebar {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .music-player {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}