/* ==========================================================================
   KILLZONE DAYZ - HOJA DE ESTILOS PRINCIPAL (STYLE.CSS)
   Totalmente comentada y explicada para facilitar ajustes manuales.
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES GLOBALES DE DISEÑO (:root)
   Aquí defines los colores, fuentes y transiciones que se usan en toda la web.
   Si cambias un color aquí, cambiará automáticamente en todas partes.
   ========================================================================== */
:root {
    /* Fondos oscuros de la web */
    --bg-main: #000000;           /* Fondo negro absoluto principal */
    --bg-surface: #0a0c10;        /* Fondo secundario ligeramente más claro */
    --bg-card: #10131a;           /* Fondo de las tarjetas (Reglas, VIP, Servidor) */
    --bg-card-hover: #151922;     /* Fondo de las tarjetas cuando pasas el ratón por encima */
    
    /* Bordes */
    --border-color: rgba(255, 255, 255, 0.08); /* Borde sutil blanco transparente */
    --border-accent: rgba(255, 204, 0, 0.45);   /* Borde amarillo táctico */
    
    /* Paleta Amarilla Táctica (Color de identidad de Killzone) */
    --primary: #ffcc00;           /* Amarillo brillante principal (botones, títulos, luces) */
    --primary-glow: rgba(255, 204, 0, 0.3);    /* Resplandor suave amarillo */
    --primary-hover: #ffd633;     /* Amarillo más claro al pasar el ratón por botones */
    --primary-dim: rgba(255, 204, 0, 0.12);    /* Amarillo transparente de fondo */
    
    /* Color oficial de Discord */
    --discord-color: #5865f2;     /* Azul/morado clásico de Discord */
    --discord-glow: rgba(88, 101, 242, 0.25);
    
    /* Color de éxito / Estado Online */
    --success: #2ea44f;           /* Verde para indicar "Online" */
    --success-glow: rgba(46, 164, 79, 0.3);
    
    /* Colores de texto */
    --text-main: #f0f6fc;         /* Texto blanco suave para títulos y lectura cómoda */
    --text-muted: #8b949e;        /* Texto grisáceo para descripciones secundarias */
    --text-dim: #6e7681;          /* Texto gris oscuro para pies de página y detalles */
    
    /* Tipografías (Google Fonts) */
    --font-heading: 'Chakra Petch', sans-serif; /* Fuente angular y militar para títulos */
    --font-body: 'Inter', sans-serif;           /* Fuente limpia y ultra legible para textos */
    
    /* Suavidad de animaciones (hover) */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. REINICIO Y ESTILOS BASE (HTML Y BODY)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;       /* Evita que los paddings rompan los anchos */
}

html { scroll-behavior: auto;      /* Desplazamiento suave al hacer clic en los enlaces */
    scroll-padding-top: 74px;     /* Espacio compensatorio para que la barra fija no tape los títulos */
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;           /* Evita scroll horizontal indeseado */
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   3. BARRA DE NAVEGACIÓN SUPERIOR (.navbar)
   Fija arriba con efecto translúcido blur (vidrio oscuro).
   ========================================================================== */
.navbar {
    position: fixed;              /* Permanece fija arriba de la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;                 /* Alto de la barra */
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);  /* Desenfoque del contenido que pasa por detrás */
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;                /* Capa 1000: Siempre por encima de todo */
    display: flex;
    align-items: center;
    transition: var(--transition);
}

/* Estilo cuando bajas la página (se vuelve más oscura y añade resplandor) */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    border-bottom-color: rgba(255, 204, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.nav-container {
    max-width: 1280px;            /* Ancho máximo del contenido de la barra */
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo en la esquina superior izquierda */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    text-decoration: none;
    color: var(--text-main);
}

/* Imagen del logo KZ */
.nav-logo {
    height: 32px;                 /* Tamaño del logo en la barra */
    width: auto;
    /* Logo sólido blanco con resplandor amarillo brillante de fondo */
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.85)) drop-shadow(0 0 2px #ffcc00);
    transition: var(--transition);
}

.nav-brand:hover .nav-logo {
    transform: scale(1.05);       /* Crece sutilmente al pasar el ratón */
    filter: drop-shadow(0 0 16px rgba(255, 204, 0, 1)) drop-shadow(0 0 6px #ffcc00);
}

/* Texto KILLZONE al lado del logo */
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Palabra DAYZ en amarillo */
.brand-text span {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

/* Lista de enlaces (Inicio, Reglas, Servidores, etc.) */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
}

.nav-item a {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

/* Hover en los enlaces */
.nav-item a:hover,
.nav-item a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Pequeña línea amarilla debajo de la sección activa */
.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Botón VIP en la barra (destacado con borde dorado) */
.nav-item.vip-btn a {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(255, 179, 0, 0.08));
    border: 1px solid var(--border-accent);
    color: var(--primary);
}

.nav-item.vip-btn a:hover {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.3), rgba(255, 179, 0, 0.15));
    color: #ffffff;
    box-shadow: 0 0 18px var(--primary-glow);
}

/* Botón hamburguesa (solo visible en pantallas móviles) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* ==========================================================================
   4. SECCIÓN HERO / INICIO (#inicio)
   Aquí está la arquitectura por capas que aloja el video loop como fondo.
   ========================================================================== */
#inicio {
    position: relative;
    width: 100%;
    height: calc(100vh - 74px);   /* Ocupa el 100% de la pantalla menos la barra */
    margin-top: 74px;             /* Empieza justo después de la barra */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribuye tag arriba, video centro, botones abajo */
    padding: 24px 20px 18px;
    background-color: #000000;    /* Fondo negro idéntico al del video */
    overflow: hidden;             /* Oculta cualquier desborde */
    text-align: center;
}

/* --------------------------------------------------------------------------
   CAPA 0: EL CONTENEDOR DEL VIDEO LOOP (.hero-video-layer)
   Cubre la pantalla de extremo a extremo debajo de la barra.
   -------------------------------------------------------------------------- */
.hero-video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;                   /* Capa 1: Fondo */
    overflow: hidden;
    pointer-events: none;         /* Permite hacer clic a través del video */
    display: flex;
    background-color: #000000;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   EL ELEMENTO DEL VIDEO (.kz-loop-video)
   Aquí es donde ajustas la posición y el tamaño del video loop.
   -------------------------------------------------------------------------- */
.kz-loop-video {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;          /* 'contain' muestra el video sin recortarlo */
    mix-blend-mode: screen;       /* Hace que el negro sea 100% transparente */

    /* ----------------------------------------------------------------------
       GUÍA RÁPIDA PARA AJUSTES MANUALES DEL VIDEO:
       
       A) SUBIR O BAJAR EL VIDEO:
          transform: translateY(-40px);   -> Valor negativo SUBE el video (ej: -50px)
          transform: translateY(30px);    -> Valor positivo BAJA el video (ej: 20px)
          
       B) AGRANDAR O ACHICAR EL VIDEO:
          transform: translateY(-40px) scale(1.15);  -> 1.15 lo agranda un 15%
          transform: translateY(-40px) scale(0.90);  -> 0.90 lo achica un 10%
       ---------------------------------------------------------------------- */
    transform: translateY(-40px) scale(1.0);
    transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   CAPA FRONTAL: ELEMENTOS INTERACTIVOS (Z-INDEX 5)
   Flotan por encima del video para que siempre sean clickeables.
   -------------------------------------------------------------------------- */

/* Contenedor de la etiqueta superior */
.hero-top-tag {
    position: relative;
    z-index: 5;
    margin-top: 26px;             /* Distancia respecto a la barra superior */
}

/* La pastilla "SERVIDOR OFICIAL DAYZ" */
.hero-tag {
    display: inline-block;
    background: rgba(255, 204, 0, 0.12);
    color: var(--primary);
    border: 1px solid var(--border-accent);
    padding: 6px 20px;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
    backdrop-filter: blur(8px);
}

/* Contenedor inferior: Botones + Scroll Explorar */
.hero-bottom-group {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

/* Grupo de botones (Unirse, Descripción, Discord) */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Indicador de scroll (ratón + texto EXPLORAR) */
.scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition);
}

.scroll-down-indicator:hover {
    color: var(--primary);
}

/* Dibujo del ratón */
.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

/* Ruedita del ratón animada */
.scroll-wheel {
    width: 3px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* Adaptación para pantallas de baja altura */
@media (max-height: 700px) {
    .hero-actions .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   5. BOTONES (.btn)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

/* Botón Principal (Amarillo Táctico) */
.btn-primary {
    background: var(--primary);
    color: #000000;               /* Letras negras sobre fondo amarillo */
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);  /* Pequeña elevación al pasar el ratón */
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.45);
}

/* Botón Secundario (Oscuro con borde) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Botón de Discord (Morado oficial) */
.btn-discord {
    background: var(--discord-color);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--discord-glow);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* ==========================================================================
   6. SECCIONES GENERALES (ENCABEZADOS Y CONTENEDORES)
   ========================================================================== */

/* Efecto Motion Blur durante el desplazamiento cinematográfico */
main {
    position: relative;
    z-index: 1;
    transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: filter, transform;
}

main.motion-blur-active {
    filter: blur(2.5px);
    transform: scale(0.994);
    pointer-events: none;
}

.section {
    padding: 90px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 820px; font-size: 1.05rem; line-height: 1.7;
    margin: 8px auto 0;
}

/* ==========================================================================
   7. SECCIÓN: DESCRIPCIÓN (#descripcion)
   Tarjetas con los pilares del servidor (PvP, Helicópteros, Construcción)
   ========================================================================== */
.desc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    max-width: 920px;
    margin: 36px auto 0;
}

.desc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.desc-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.desc-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
}

.desc-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.desc-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   8. SECCIÓN: REGLAS (#reglas)
   ========================================================================== */
.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    transition: var(--transition);
}

.rule-card:hover {
    border-color: var(--border-accent);
}

.rule-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

/* Número de regla (01, 02, etc.) */
.rule-badge {
    background: var(--primary-dim);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid var(--border-accent);
}

.rule-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.rule-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Tarjeta de regla tipo enlace interactivo (Regla 06) */
.rule-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border-color: rgba(88, 101, 242, 0.35);
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.08) 0%, var(--bg-card) 60%);
}

.rule-card-link:hover {
    border-color: var(--discord-color);
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.16) 0%, var(--bg-card-hover) 60%);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.25);
}

.rule-link-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: var(--discord-color);
    text-transform: uppercase;
    transition: var(--transition);
}

.rule-card-link:hover .rule-link-action {
    color: #ffffff;
    gap: 12px;
}

/* ==========================================================================
   9. SECCIÓN: SERVIDORES (#servidores - 4 BLOQUES)
   Bloques 1 y 2: Launcher Oficial (Azul/Plata)
   Bloques 3 y 4: DZSA Launcher (Amarillo Táctico)
   ========================================================================== */

/* Cabecera de grupo de método */
.server-group-header {
    max-width: 1040px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
}

.server-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Badge distintivo Launcher Oficial (Azul) */
.official-badge {
    background: rgba(56, 139, 253, 0.12);
    border: 1px solid rgba(56, 139, 253, 0.4);
    color: #58a6ff;
}

/* Badge distintivo DZSA Launcher (Amarillo) */
.dzsa-badge {
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    color: var(--primary);
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.server-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 26px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

/* Tarjeta Método Launcher Oficial (Borde y resplandor azul) */
.server-card.official-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #58a6ff;
    opacity: 0.9;
}

.server-card.official-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(56, 139, 253, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Tarjeta Método DZSA Launcher (Borde y resplandor amarillo) */
.server-card.dzsa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.9;
}

.server-card.dzsa-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.server-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

/* Pastilla de estado Online verde */
.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 164, 79, 0.15);
    color: #3fb950;
    border: 1px solid rgba(46, 164, 79, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.server-status-pill .dot {
    width: 6px;
    height: 6px;
    background: #3fb950;
    border-radius: 50%;
    box-shadow: 0 0 6px #3fb950;
    flex-shrink: 0;
}

.server-map-tag {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.server-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.server-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.feature-tag-highlight {
    color: var(--primary);
    border-color: var(--border-accent);
    font-weight: 700;
}

/* Caja de datos para copiar (Nombre o IP) */
/* Caja de Copiar Nombre en Launcher Oficial (Diseno centrado, sutil y simetrico) */
.official-copy-box {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 16px 18px 18px !important;
    gap: 12px !important;
    background: rgba(0, 0, 0, 0.42) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* Nombre del servidor en Launcher Oficial (Limpio, centrado y altura unificada) */
.official-copy-box .server-copy-name {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.81rem;
    line-height: 1.45;
    color: #c9d1d9;
    text-align: center;
    word-break: break-word;
    letter-spacing: 0.25px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Boton Copiar Nombre centrado, sutil y elegante */
.copy-btn-subtle {
    background: rgba(255, 204, 0, 0.08) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(255, 204, 0, 0.32) !important;
    padding: 6px 24px !important;
    border-radius: 6px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.copy-btn-subtle:hover {
    background: var(--primary) !important;
    color: #000000 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.3) !important;
}

.server-ip-box {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.ip-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #e6edf3;
    font-weight: 600;
}

/* Texto del nombre del servidor (para que fluya limpio si es largo) */
.server-copy-name {
    font-size: 0.78rem;
    line-height: 1.35;
    word-break: break-word;
    color: #d0d7de;
}

/* Botón "Copiar" */
.copy-btn {
    background: var(--primary-dim);
    color: var(--primary);
    border: 1px solid var(--border-accent);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary);
    color: #000000;
}

/* --------------------------------------------------------------------------
   PASO A PASO VISUAL (GUÍA RÁPIDA 1 - 2 - 3)
   -------------------------------------------------------------------------- */
.server-steps-box {
    max-width: 1040px;
    margin: 18px auto 0;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.official-steps {
    background: rgba(56, 139, 253, 0.04);
    border: 1px dashed rgba(56, 139, 253, 0.25);
}

.dzsa-steps {
    background: rgba(255, 204, 0, 0.03);
    border: 1px dashed rgba(255, 204, 0, 0.25);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: #c9d1d9;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(56, 139, 253, 0.15);
    border: 1px solid rgba(56, 139, 253, 0.4);
    color: #58a6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.dzsa-step-num {
    background: var(--primary-dim);
    border-color: var(--border-accent);
    color: var(--primary);
}

.step-arrow {
    color: var(--text-dim);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .server-steps-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .step-arrow {
        display: none;
    }
    .server-ip-box {
        flex-direction: column;
        align-items: stretch;
    }
    .copy-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   10. SECCIÓN: DISCORD (#discord)
   ========================================================================== */
.discord-banner {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(16, 19, 26, 0.95) 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discord-banner h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.discord-banner p {
    color: #c9d1d9;
    max-width: 600px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

/* ==========================================================================
   11. SECCIÓN: ESTADO (#estado)
   Métricas de rendimiento del servidor.
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   12. SECCIÓN: VIP (#vip)
   Tarjetas de rangos y donaciones de la comunidad.
   ========================================================================== */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 820px;
    margin: 0 auto;
}

.vip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* Tarjeta destacada (Rango más popular) */
.vip-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.08) 0%, var(--bg-card) 45%);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.15);
}

.vip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Etiqueta "Más Popular" arriba de la tarjeta destacada */
.vip-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000000;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 14px;
    border-radius: 999px;
}

.vip-tier-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.vip-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.vip-price span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.vip-price.vip-price-variable {
    font-size: 1.55rem;
    line-height: 1.2;
}

.vip-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.vip-card .btn {
    margin-top: auto;
}

.vip-features li {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icono de check verde/amarillo antes de cada beneficio */
.vip-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* ==========================================================================
   13. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    background: #000000;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary);
}

/* ==========================================================================
   14. ADAPTACIÓN A TELÉFONOS Y TABLETS (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 900px) {
    /* Muestra el botón hamburguesa */
    .menu-toggle {
        display: flex;
    }
    
    /* El menú de la barra se convierte en un panel desplegable */
    .nav-links {
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }
    
    /* Clase que abre el menú en móviles */
    .nav-links.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-item a {
        display: block;
        padding: 12px;
    }
}

/* ==========================================================================
   15. CURSOR PERSONALIZADO INTERACTIVO TÁCTICO
   Solo activo en computadoras con ratón (se desactiva en móviles).
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    /* Oculta la flecha por defecto de Windows */
    body, a, button, input, select, textarea, .btn, .copy-btn, .nav-brand {
        cursor: none !important;
    }

    /* Punto central amarillo instantáneo */
    .custom-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        background-color: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;           /* Siempre por encima del resto */
        transform: translate(-50%, -50%);
        box-shadow: 0 0 10px var(--primary);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    /* Aro exterior amarillo con física fluida de seguimiento */
    .custom-cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 34px;
        height: 34px;
        border: 1.5px solid rgba(255, 204, 0, 0.65);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 14px rgba(255, 204, 0, 0.25);
        opacity: 0;
        transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    background-color 0.25s ease,
                    border-color 0.25s ease,
                    box-shadow 0.25s ease,
                    opacity 0.2s ease;
    }

    /* Efecto "Target Lock": Se expande al pasar sobre botones o enlaces */
    .custom-cursor-ring.cursor-hover {
        width: 50px;
        height: 50px;
        border-color: var(--primary);
        background: rgba(255, 204, 0, 0.12);
        box-shadow: 0 0 24px rgba(255, 204, 0, 0.5);
    }

    /* Efecto al hacer clic */
    .custom-cursor-ring.cursor-click {
        width: 26px;
        height: 26px;
        border-color: #ffffff;
        background: rgba(255, 255, 255, 0.2);
    }
}

/* En teléfonos táctiles se desactiva para no interferir con los dedos */
@media (hover: none) or (pointer: coarse) {
    .custom-cursor-dot,
    .custom-cursor-ring {
        display: none !important;
    }
}










.server-card-body { flex: 1; display: flex; flex-direction: column; }

/* Boton directo conectar DZSA Launcher */
.dzsa-connect-btn {
    width: 100% !important;
    margin-top: auto !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
}

/* ==========================================================================
   MONITOREO EN TIEMPO REAL (#estado) - CFTOOLS CLOUD
   ========================================================================== */

/* Badge de jugadores en las pastillas de servidores */
.server-player-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-family: var(--font-mono, 'Courier New', monospace);
    color: #e6edf3;
    font-weight: 700;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* Grid de servidores en vivo */
.live-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.live-server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.live-server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.85;
}

.live-server-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.live-server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.live-server-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.live-server-map {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Display de Jugadores en Vivo */
.live-player-display {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.live-player-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.live-player-count {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.live-player-separator {
    font-size: 1.4rem;
    color: var(--text-dim);
    font-weight: 300;
}

.live-player-max {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #c9d1d9;
}

.live-player-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 6px;
}

.live-queue-tag {
    background: rgba(56, 139, 253, 0.12);
    border: 1px solid rgba(56, 139, 253, 0.3);
    color: #58a6ff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Barra de Progreso de OcupaciÃ³n */
.live-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.live-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3fb950 0%, #ffcc00 100%);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.live-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fila de metadatos */
.live-meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.live-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e6edf3;
    font-family: var(--font-mono, monospace);
}

/* Indicador de sincronizaciÃ³n en vivo con pulso */
.live-sync-indicator {
    max-width: 1040px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    position: relative;
    box-shadow: 0 0 8px #3fb950;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid #3fb950;
    box-sizing: border-box;
    transform-origin: center center;
    pointer-events: none;
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}
/* Discreto trigger del Easter Egg en el footer */
.secret-trigger {
    color: inherit;
    text-decoration: none;
    cursor: default;
    transition: color 0.3s ease;
}

.secret-trigger:hover {
    color: var(--primary);
}

/* ==========================================================================
   SCOREBOARD / LEADERBOARD SYSTEM (CFTools Cloud Sync)
   ========================================================================== */

.scoreboard-page {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 110px 24px 80px 24px;
    min-height: calc(100vh - 120px);
}

/* Encabezado Principal */
.scoreboard-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.scoreboard-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.scoreboard-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 164, 79, 0.12);
    border: 1px solid rgba(46, 164, 79, 0.35);
    color: #3fb950;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.sync-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 8px #3fb950;
    animation: radarPulse 2s infinite ease-out;
}

.scoreboard-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 12px;
}

.scoreboard-title span {
    color: var(--primary);
    text-shadow: 0 0 16px var(--primary-glow);
}

.scoreboard-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Selector de Servidor (Pestañas Chernarus vs Livonia) */
.server-switcher-container {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.server-switcher {
    display: inline-flex;
    background: rgba(16, 19, 26, 0.8);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 12px;
    gap: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.server-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.server-tab-btn .tab-icon {
    font-size: 1.15rem;
}

.server-tab-btn .tab-badge {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    transition: var(--transition);
}

.server-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.server-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.22), rgba(255, 179, 0, 0.08));
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.server-tab-btn.active .tab-badge {
    background: var(--primary);
    color: #000000;
    font-weight: 700;
}

/* PODIO TOP 3 SUPERVIVIENTES */
.podium-container {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 45px;
}

.podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.podium-card:hover {
    transform: translateY(-6px);
}

/* Tarjeta Top 1 (Oro) */
.podium-card.first {
    border-color: rgba(255, 204, 0, 0.6);
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.08) 0%, var(--bg-card) 60%);
    box-shadow: 0 0 35px rgba(255, 204, 0, 0.2);
    padding-top: 32px;
    padding-bottom: 32px;
}

.podium-card.first:hover {
    box-shadow: 0 0 45px rgba(255, 204, 0, 0.35);
    border-color: var(--primary);
}

/* Tarjeta Top 2 (Plata) */
.podium-card.second {
    border-color: rgba(210, 225, 240, 0.4);
    background: linear-gradient(180deg, rgba(210, 225, 240, 0.06) 0%, var(--bg-card) 60%);
    box-shadow: 0 0 25px rgba(210, 225, 240, 0.1);
}

/* Tarjeta Top 3 (Bronce) */
.podium-card.third {
    border-color: rgba(205, 127, 50, 0.4);
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.06) 0%, var(--bg-card) 60%);
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.1);
}

.podium-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.podium-card.first .podium-badge {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
}

.podium-card.second .podium-badge {
    background: #d8e2dc;
    color: #000;
}

.podium-card.third .podium-badge {
    background: #cd7f32;
    color: #fff;
}

.podium-icon-wrapper {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}

.podium-card.first .podium-icon-wrapper {
    width: 82px;
    height: 82px;
    font-size: 2.6rem;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.25) 0%, rgba(255, 204, 0, 0.05) 70%);
    border: 2px solid #ffcc00;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.4);
}

.podium-card.second .podium-icon-wrapper {
    background: radial-gradient(circle, rgba(210, 225, 240, 0.2) 0%, rgba(210, 225, 240, 0.05) 70%);
    border: 2px solid #d8e2dc;
}

.podium-card.third .podium-icon-wrapper {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.05) 70%);
    border: 2px solid #cd7f32;
}

.podium-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-card.first .podium-name {
    font-size: 1.55rem;
    color: #ffcc00;
}

.podium-kd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.podium-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 12px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.podium-stat-item {
    display: flex;
    flex-direction: column;
}

.podium-stat-item .stat-lbl {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.podium-stat-item .stat-num {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

/* BARRA DE HERRAMIENTAS / CONTROLES (Búsqueda y Filtros) */
.scoreboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.scoreboard-search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.scoreboard-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(16, 19, 26, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.scoreboard-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    background: #10131a;
}

.scoreboard-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-dim);
    pointer-events: none;
}

.scoreboard-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    display: none;
    padding: 4px;
}

.scoreboard-search-clear:hover {
    color: #ffffff;
}

/* Filtros rápidos de ordenación */
.scoreboard-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill-btn {
    padding: 8px 14px;
    background: rgba(16, 19, 26, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill-btn.active {
    background: rgba(255, 204, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.2);
}

/* TABLA DE POSICIONES COMPLETA */
.scoreboard-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    position: relative;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.scoreboard-table th {
    background: #0b0d12;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    transition: var(--transition);
}

.scoreboard-table th:hover {
    color: var(--primary);
}

.scoreboard-table th.sorted {
    color: var(--primary);
}

.scoreboard-table th.sorted::after {
    content: ' ▼';
    font-size: 0.7rem;
}

.scoreboard-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.94rem;
    vertical-align: middle;
    white-space: nowrap;
}

.scoreboard-table tbody tr {
    transition: background-color 0.2s ease;
}

.scoreboard-table tbody tr:hover {
    background-color: rgba(255, 204, 0, 0.035);
}

/* Rango y Medallas */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
}

.rank-badge.rank-1 {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.rank-badge.rank-2 {
    background: #d8e2dc;
    color: #000;
}

.rank-badge.rank-3 {
    background: #cd7f32;
    color: #fff;
}

.rank-badge.rank-general {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* Celda de Jugador */
.player-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.player-name-text {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

/* K/D Badges en Tabla */
.kd-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
}

.kd-tag.high {
    background: rgba(46, 164, 79, 0.15);
    color: #3fb950;
    border: 1px solid rgba(46, 164, 79, 0.4);
    box-shadow: 0 0 8px rgba(46, 164, 79, 0.2);
}

.kd-tag.medium {
    background: rgba(255, 204, 0, 0.14);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.35);
}

.kd-tag.normal {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-numeric {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Pie de tabla con conteo de supervivientes */
.scoreboard-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(11, 13, 18, 0.95);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 10px;
}

/* Estados de Carga y Sin Resultados */
.scoreboard-loading,
.scoreboard-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 204, 0, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px auto;
    animation: spin 0.85s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scoreboard-empty-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

/* Adaptabilidad Móvil */
@media (max-width: 900px) {
    .podium-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .podium-card.first {
        order: -1;
    }
}

@media (max-width: 600px) {
    .scoreboard-page {
        padding-top: 90px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .server-tab-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .scoreboard-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .scoreboard-search-box {
        max-width: 100%;
    }
}

/* ==========================================================================
   FICHA DE SUPERVIVIENTE (BÚSQUEDA PERSONAL DE JUGADOR)
   ========================================================================== */

.player-profile-card {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08) 0%, rgba(16, 19, 26, 0.96) 50%, rgba(10, 12, 16, 0.98) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 0 35px rgba(255, 204, 0, 0.15), 0 12px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: profileCardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes profileCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.profile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 204, 0, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.profile-close-btn:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: rgba(255, 204, 0, 0.2);
}

.profile-identity-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.25) 0%, rgba(16, 19, 26, 0.8) 70%);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
    flex-shrink: 0;
}

.profile-info-block {
    flex: 1;
}

.profile-player-name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-rank-pill {
    font-size: 0.88rem;
    padding: 3px 12px;
    border-radius: 6px;
    background: var(--primary);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-server-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Grilla de Estadísticas de la Ficha */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.profile-stat-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    transition: var(--transition);
}

.profile-stat-box:hover {
    border-color: rgba(255, 204, 0, 0.35);
    background: rgba(255, 204, 0, 0.04);
}

.profile-stat-box.featured-kd {
    border-color: rgba(46, 164, 79, 0.5);
    background: rgba(46, 164, 79, 0.08);
}

.profile-stat-box.featured-kd .stat-value {
    color: #3fb950;
    text-shadow: 0 0 10px rgba(46, 164, 79, 0.4);
}

.profile-stat-box .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-stat-box .stat-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

/* Resaltado de fila en tabla cuando se busca */
.scoreboard-table tbody tr.highlighted-player-row {
    background-color: rgba(255, 204, 0, 0.12) !important;
    border-left: 3px solid var(--primary);
}

.scoreboard-table tbody tr.highlighted-player-row td {
    color: #ffffff;
}

.scoreboard-table tbody tr.highlighted-player-row .player-name-text {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

/* Selector de límite (Top 50 / Top 100) */
.view-limit-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.limit-btn {
    background: transparent;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.limit-btn:hover {
    color: #ffffff;
}

.limit-btn.active {
    background: var(--primary);
    color: #000000;
    font-weight: 700;
}