/* =========================================
    BARRA DE NAVEGACIÓN (nav.css)
   ========================================= */

.navbar {
display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000; 
    transition: all 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-item.active, .nav-item:hover {
    background-color: #FBB03B;
    color: #000000;
}

.nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Botones Nav Right */
.discord-btn {
    background-color: #6370f4;
    color: #ffffff;
    font-size: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.discord-btn:hover {
    background-color: #7985f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 112, 244, 0.4);
}

.lang-btn {
    background-color: #111111;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    height: 45px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: #1a1a1a;
    border-color: #FBB03B;
    transform: translateY(-2px);
}

#lang-icon {
    font-size: 16px;
    border-radius: 2px;
}

.play-btn {
    background-color: #FBB03B;
    color: #000000;
    border: none;
    padding: 0 20px;
    height: 45px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.play-btn:hover {
    background-color: #FDCB6E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 176, 59, 0.4);
}

/* Botón Hamburguesa Oculto por defecto */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: #FBB03B;
}

/* =========================================
    RESPONSIVE NAVBAR (Móviles y Tablets)
   ========================================= */

/* =========================================
   RESPONSIVE NAVBAR (Móviles y Tablets)
   ========================================= */

@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap; 
        padding: 15px 20px;
    }

    /* 1. "Desempaquetamos" las cajas para poder ordenar los botones libremente */
    .nav-left, .nav-right {
        display: contents;
    }

    /* 2. Ocultamos los enlaces y el botón de jugar en la vista por defecto */
    .nav-links, .play-btn {
        display: none;
        width: 100%; /* Obliga a que al mostrarse rompan a la siguiente línea */
    }

    /* 3. REORDENAMOS LA BARRA SUPERIOR VISIBLE */
    /* El logo (si lo tienes en nav-left) se queda a la izquierda por defecto (order: 0) */

    .discord-btn {
        order: 2;
        margin-left: auto; /* Esto es pura magia: empuja este botón y los siguientes a la derecha del todo */
        margin-right: 12px;
    }

    .lang-btn {
        order: 3;
        margin-right: 12px;
    }

    .mobile-menu-btn {
        display: block; /* Mostramos la hamburguesa */
        order: 1;
    }

    /* 4. ASIGNAMOS EL ORDEN AL MENÚ DESPLEGABLE */
    .nav-links {
        order: 5;
    }

    .play-btn {
        order: 6;
    }

    /* --- ESTADO ACTIVO (Menú Abierto) --- */
    .navbar.active {
        background-color: #0f0f0f;
    }

    .navbar.active .nav-links {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 1px solid #2a2a2a;
    }

    .navbar.active .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar.active .play-btn {
        display: flex;
        justify-content: center;
        margin-top: 20px; /* Un poco de respiro respecto a los enlaces */
    }
}


/* =========================================
   PIE DE PÁGINA PREMIUM V2 (FOOTER)
   ========================================= */

.site-footer-premium {
    position: relative;
    margin-top: 80px;
    background-color: rgba(10, 10, 12, 0.6); /* Un poco más oscuro y transparente */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Brillo ambiental corregido para que emane desde el borde inferior */
.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    max-width: 1200px;
    height: 180px;
    background: radial-gradient(ellipse at bottom, rgba(251, 176, 59, 0.08) 0%, rgba(0,0,0,0) 65%);
    z-index: 0;
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Parte Izquierda: Alineación Horizontal */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espacio entre el título y el tagline */
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre la ranita y la palabra NiteCraft */
}

.footer-logo {
    height: 45px; /* Reducido para que quede a la par del texto */
    width: auto;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.footer-brand-row h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.footer-left p {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Parte Derecha */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-ip-btn {
    background-color: rgba(251, 176, 59, 0.05);
    border: 1px solid rgba(251, 176, 59, 0.3);
    color: #FBB03B;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-ip-btn:hover {
    background-color: #FBB03B;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 176, 59, 0.25);
}

.footer-socials-premium {
    display: flex;
    gap: 12px;
}

.footer-socials-premium a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials-premium a:hover {
    background-color: #FBB03B;
    border-color: #FBB03B;
    color: #000000;
    transform: translateY(-2px);
}

/* Franja inferior */
.footer-bottom-premium {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.footer-bottom-content .mojang-disclaimer {
    color: #E44950;
    opacity: 0.8;
}

/* =========================================
   Franja inferior y Textos Legales
   ========================================= */
.footer-bottom-premium {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    max-width: 1200px; /* Un poco más ancho para que quepan las tres columnas */
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos bajen si falta espacio */
    gap: 15px;
}

.footer-bottom-content p {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.footer-bottom-content .mojang-disclaimer {
    color: #E44950;
    opacity: 0.8;
}

/* Estilos de los enlaces legales */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-legal-links a {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #FBB03B;
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    user-select: none;
}

/* Responsive para Móviles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .footer-left {
        align-items: center;
    }

    .footer-brand-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-right {
        align-items: center;
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}