@font-face {
    font-family: 'Inter_Medium';
    src: url('../fonts/inter/Inter-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

header {
    width: 100%;
    height: 15vh;
    background-color: #13124e;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

body {
    padding-top: 15vh;
}

header .menu {
    width: 80%;
    height: 10vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 45px;
}

header .logo {
    width: 35%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.logo img {
    width: 40%;
    height: auto;
}

.idiomas {
    width: 15%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.idiomas img {
    width: 50%;
    height: auto;
}

.links {
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.links a {
    text-decoration: none;
    color: #000000;
    font-family: 'Inter_Medium', sans-serif;
    text-transform: uppercase;
}

.links a:hover {
    color: #ff5e14;
}

.link_btn {
    /*     width: 15%; */
    height: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #ff5e14;
    color: white;
    font-family: 'Inter_Medium', sans-serif;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    padding: 30px 15px;
}

/* Estilos para el icono de hamburguesa (oculto por defecto) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-right: 20px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #13124e;
    border-radius: 2px;
    transition: 0.3s;
}


/* Clase que aplicaremos con JavaScript */
header.shrink {
    height: 8vh;
    /* Altura más flaquita */
    background-color: transparent;
}

/* Ajuste opcional: reducir el menú interno también si es necesario */
header.shrink .menu {
    height: 7vh;
    transition: all 0.4s ease;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    /* Sombra al hacer scroll */
}

header.shrink .logo img {
    width: 30%;
    transition: all 0.4s ease;
}

header.shrink .links a {
    font-size: 0.9em;
    transition: all 0.4s ease;
}

header.shrink .link_btn {
    font-size: 12px;
    padding: 20px 12px;
    transition: all 0.4s ease;
}

/* Contenedor del dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* El menú que se despliega */
.dropdown-content {
    display: none;
    /* Escondido por defecto */
    position: absolute;
    background-color: #13124e;
    /* El azul oscuro de tu imagen */
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-align: center;
    padding: 10px 0;
    top: 100%;
    /* Aparece justo debajo */
    left: 50%;
    transform: translateX(-50%);
    /* Centrado respecto al link padre */
}

/* Links dentro del submenú */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

/* Color naranja para items específicos como "NOSOTROS" */
.dropdown-content a.highlight {
    color: #FF5C00;
}

/* Cambio de color al pasar el cursor sobre los links del submenú */
.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0);
}

/* MOSTRAR AL HACER HOVER */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Ajuste para que el link principal cambie de color si quieres */
.dropdown:hover .main-link {
    color: #FF5C00;
}




/* --- MEDIA QUERY PARA Laptops Medianas --- */
@media (max-width: 1400px) {

    .link_btn {
        width: 20%;
        height: 50%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background-color: #ff5e14;
        color: white;
        font-family: 'Inter_Medium', sans-serif;
        text-transform: uppercase;
        border: none;
        cursor: pointer;
        padding: 20px 10px;
        font-size: 12px;
    }



}

/* --- MEDIA QUERY PARA Laptops Pequeñas --- */
@media (max-width: 1280px) {

    .link_btn {
        width: 25%;
        height: 50%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background-color: #ff5e14;
        color: white;
        font-family: 'Inter_Medium', sans-serif;
        text-transform: uppercase;
        border: none;
        cursor: pointer;
        padding: 20px 10px;
        font-size: 13px;
    }

    .link_btn br {
        display: none;
    }

}


/* --- MEDIA QUERY PARA MÓVILES --- */
@media (max-width: 768px) {
    header .menu {
        width: 95%;
        position: relative;
    }

    .hamburger {
        display: flex;
        /* Mostrar hamburguesa */
    }

    .links {
        display: none;
        /* Ocultar links por defecto */
        flex-direction: column;
        position: absolute;
        top: 110%;
        /* Aparece debajo del menú blanco */
        left: 0;
        width: 100%;
        background-color: white;
        border-radius: 20px;
        padding: 20px 0;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
        height: auto;
    }

    /* Clase para mostrar el menú cuando se hace clic */
    .links.active {
        display: flex;
    }

    .links a {
        padding: 15px;
        width: 100%;
        text-align: center;
    }

    .link_btn {
        width: 80%;
        margin-top: 10px;
    }

    header .logo {
        width: 60%;
        justify-content: flex-start;
        padding-left: 20px;
        gap: 50px;
    }

    header .logo img {
        width: 60%;
    }

    header .idiomas img {
        width: 100%;
        height: auto;
    }

    header.shrink .logo img {
        width: 60%;
        transition: all 0.4s ease;
    }

    header.shrink .idiomas{
        width: 40%;
        transition: all 0.4s ease;
    }

}