/* Estilos generales y existentes */
@font-face {
    font-family: 'Aller';
    src: url('../fonts/Aller/Aller_Std_Bd.ttf') format('truetype');
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Aller';
}
body.no-scroll{
    overflow: hidden;
    position: fixed;
    width: 100%;
}


header {
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0);
    padding: 15px 30px;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: auto;
    margin: 0 auto;
}

.logo {
    height: 30px;
    width: auto;
}

.menu {
    display: flex;
    list-style: none;
    gap: 20px;
    max-height: 100%;
    align-items: center;
}
.menu li a {
    text-decoration: none;
    color: #002855;
    padding: 8px 16px;
    transition: color 0.3s, background-color 0.3s, transform 0.3s;
    border-radius: 5px;
    position: relative;
    font-family: 'Aller';
}

.menu li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #002855;
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Efecto al pasar el cursor por encima del botón del menú */
.menu li a:hover {
    color: #8bc34a;
    background-color: rgba(139, 195, 74, 0.1); /* Fondo verde claro */
    transform: translateY(-2px); /* Eleva ligeramente el botón */
}

.menu li a:hover::after {
    width: 100%;
}

.menu li a:active {
    background-color: #8bc34a;
    color: #ffffff;
    transform: scale(0.98);
}

.menu li a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.5);
}

.active {
    color: #8bc34a;
    position: relative;
}

.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #002855;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Estilos para las imágenes de logo específicas */
.logo-derecho {
    margin-left: auto;
}

/* Estilos para el menú hamburguesa */
.hamburger {
    display: none;
    position: absolute;
    right: 10px;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #002855;
    margin: 4px 0;
    border-radius: 5px;
}

/* Estilos del menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    display: none; /* Oculto por defecto */
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    color: #002855;
    white-space: nowrap;
    transition: color 0.3s, background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: rgba(139, 195, 74, 0.1); /* Fondo verde claro */
    color: #8bc34a;
}

/* Mostrar el submenú al pasar el cursor sobre el elemento principal */
.dropdown:hover .dropdown-menu {
    display: block; /* Muestra el submenú */
}

/* Estilos responsivos */
@media screen and (max-width: 810px) {
    .header-container {
        justify-content: space-between;
    }
    .dropdown .dropdown-menu {
        display: none;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .menu {
        flex-direction: column;
        gap: 15px;
        display: none;
        width: 100%;
        text-align: center;
        position: fixed;
        z-index: 100;
        top: 60px;
        left: 0;
        background-color: #ffffff;
        padding: 0 0;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        display: flex;
        height: 94%;

    }

    .menu li a {
        display: block;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        height: 35px;
    }
    #mantis-link {height: auto; overflow: hidden;}
    .logo-derecho{ display: flex; justify-content: center; margin: auto;}
}


/* 📱 Móvil horizontal (modo landscape con poca altura) */
@media screen and (max-height: 800px) and (orientation: landscape) {
    .header-container {
        justify-content: space-between;
    }
    .menu {
        flex-direction: column;
        gap: 15px;
        display: none;
        width: 100%;
        text-align: center;
        position: fixed;
        z-index: 100;
        bottom: 0; /* Ajustar según altura de tu header */
        left: 0;
        background-color: #ffffff;
        padding: 0 0;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        display: flex;
    }

    .menu li a {
        display: block;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        height: 35px;
    }

    #mantis-link {height: auto; overflow: hidden;}
    .logo-derecho{ display: flex; justify-content: center; margin: auto;}
}

/* 🔒 Evitar scroll cuando el menú está abierto */
.no-scroll {
    overflow: hidden;
}

@media screen and (min-width: 3440px){

    .menu{
        font-size: 45px;
        gap: 200px;
    }
    .logo{
        height: 80px;
    }
}
@media screen and (min-width: 7680px){
    .logo{
        height: 180px;
    }
    .menu{
        font-size: 79px;
        gap: 580px;
    }
    .overlay-title{
        font-size: 12rem;
    }
    .overlay-subtitle{
        font-size: 10rem;
    }
    .overlay-button{
        font-size: 6rem;
    }
    .dropdown-menu li {
        padding: 25px 20px;
    }
    header{
        padding: 15px 100px;
    }
}