@import url("variables.css");
/* ====================================================================== */
/* 🧭 NAVEGACIÓN (NAVBAR & DROPDOWN) */
/* ====================================================================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Usar padding responsivo aquí */
    padding: 1rem var(--content-padding-x-desktop);

    background-color: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(10px);
    /* Unificado el valor del blur */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    border-radius: 50%;
}

.isologo {
    color: var(--white);
    text-align: center;
    font-family: var(--family-Title);
    font-size: 32px;
    /* Mantenido 32px para logo */
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.64px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition-speed);
    border-radius: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-body-white);
    position: relative;
    transition: none;
    text-align: center;
    font-family: var(--family-Body);
    font-size: var(--body2-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-body-white);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--text-body-white);
    font-weight: 800;
    /* Usar el valor numérico para consistencia */
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Dropdown --- */
.nav-links .dropdown {
    position: relative;
    margin-left: 20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 10px 0;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.75);
    /* Aumentado un poco la opacidad */
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    z-index: 100;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 400;
    /* Asegurar que no sea bold por defecto */
}

.dropdown-menu li a::after {
    content: none;
}

.dropdown-menu li a:hover {
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

.display-section {
    display: none;
}

.social-media-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}


/* ------------------------------ */



@media screen and (max-width: 1024px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 60%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -10px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    
}


/* Tablet y Escritorio Pequeño (max-width: 1024px) */
@media screen and (max-width: 1024px) {

    /* NAV - Móvil (Menú Hamburguesa) */
    nav {
        padding: 1rem var(--content-padding-x-mobile);
    }

    .social-media-header {
        position: fixed;
        right: -100%;
    }

    .display-section {
        display: flex;
        flex-direction: row;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 60%;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -10px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    /* NAV - Dropdown en Móvil */
    .nav-links.active .dropdown-menu {
        position: static;
        display: block;
        background-color: transparent;
        padding-left: 20px;
    }

    /* .nav-links.active .dropdown {
        width: 100%;
    } */

}

/* Móvil (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Fuentes y Espaciado */
    p {
        font-size: var(--body1-size-mobile);
        /* 1rem */
    }

    /* Títulos */
    .section-title h1 {
        font-size: var(--h1-size-mobile);
    }

    .subtitulo-seccion {
        font-size: var(--h3-size-mobile);
    }

}