/* Header css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

#header-global {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Logo */
#header-global .logo-container img{
    width: 50px;
}

/* Contenedor principal del header */
#header-global .header-container{
    max-width: 1200px;
    height: 70px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Listas solo dentro del header global */
#header-global ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

#header-global ul li{
    display: inline-block;
    position: relative;
}

#header-global ul li a{
    display: block;
    padding: 10px 10px;
    color: #ffffff;
    text-decoration: none;
    text-align: start;
    font-size: 14px;
    font-weight: bold;
}

/* Dropdown */
#header-global ul li ul.dropdown li{
    display: block;
}

#header-global ul li ul.dropdown{
    width: 100%;
    position: absolute;
    z-index: 999;
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    padding: 0;
}

#header-global ul li a:hover{
    color: #fee122;
    border-radius: 10px 10px 0px 0px;
    font-size: 14.5px;
    text-shadow: 0 0 20px rgba(255, 251, 0, 0.808);
    transition: all 0.25s;
}

#header-global ul li:hover ul.dropdown{
    display: block;
}

/* SIDEBAR SOLO DEL HEADER GLOBAL */
#header-global .sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 1100; /* por encima del header (que está en 1000) */
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

#header-global .sidebar li{
    width: 100%;
}

#header-global .sidebar a{
    width: 100%;
}

/* Estado por defecto: menú de escritorio visible, hamburguesa oculto */
#header-global .hideOnMobile {
    /* se muestra normalmente en escritorio (hereda display: inline-block del li) */
}

#header-global .menu-button {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1000px){
    /* En móvil ocultamos los items de escritorio */
    #header-global .hideOnMobile{
        display: none;
    }

    /* En móvil mostramos solo el botón del menú */
    #header-global .menu-button{
        display: inline-block;
    }

    /* Dropdown en móvil dentro del header con id */
    #header-global ul li ul.dropdown{
        width: 100%;
        z-index: 999;
        display: none;
        position: static; /* sobrescribe el absolute de escritorio */
    }
}

/* Sidebar a ancho completo en pantallas muy pequeñas */
@media(max-width: 400px){
    #header-global .sidebar{
        width: 100%;
    }
}

/* Clases para animación del header */

#header-global.header-hidden {
    top: -100px;
    transition: top 0.3s ease-in-out;
}

#header-global.header-transparent {
    background-color: rgba(13, 15, 20, 0.8);
    transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out;
    top: 0;
}

#header-global.header-visible {
    /* puedes dejar el fondo como quieras en la parte superior */
    transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out;
    top: 0;
}
/* SECTION FOOTER */

.resources-section{
    background-color: #121415;
    font-family: "Montserrat", sans-serif;
}

.resources-container h1{
    font-size: 15px;
    color: white;
}

.resources-container{
    display: flex;
    justify-content: center;
    align-items: start;
    max-width: 1200px;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.219);
}

.resources, .legal, .socials, .logo{
    width: 300px;
}

.resources-container ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding: 0;
    margin: 0;
}

.resources-container a{
    text-decoration: none;
    color: rgb(194, 194, 194);
    font-size: 12px;
}

.resources, .legal, .socials, .logo{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img{
    margin-top: 10px;
    width: 150px;
}

.socials{
    display: flex;
    flex-direction: column;
}

.socials h1{
    margin-bottom: 5px;
}

#discordbanner{
    border-radius: 10px;
    width: 250px;
}

footer{
    color: rgb(194, 194, 194);
    background-color: #121415;
}

.footerdemrda{
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 10px;
}

/* Footer responsive */

@media(max-width: 1000px){
    .resources-container{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .resources, .legal, .socials, .logo{
        display: flex;
        justify-content: start;
        align-items: start;
    }
    .resources, .legal, .socials, .logo{
        width: 150px;
    }

    .socials{
        align-items: center;
    }
}

/* BOTÓN PARA SUBIR */

#btnSubir {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #fee122;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease;
}
  
#btnSubir:hover {
    background-color: rgb(231, 202, 15);
    box-shadow: 0 0 20px rgba(255, 251, 0, 0.808);
}
