nav {
    display: flex;
    align-items: center;
}

header {
    width: 100%;
    position: relative;
    display: flex;
    padding: 20px 20px;
    background-color: #ffffff;
    color: #041c5d;
    z-index: 15;
}

.menu {
    position: absolute;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 6%;
    z-index: 25;
    gap: 30px;
}

.menu li {
    display: flex;
    z-index: 10;
    margin-right: 0;
}

.menu li a {
    z-index: 5;
    text-decoration: none;
    color: #041c5d;
    font-weight: bold;
    transition: color 0.3s;
    font-family: 'Aller Regular';
}

.menu a:hover {
    color: #7FBF3B;
}

.logo a {
    display: flex;
    flex-direction: row;
}

.logo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 350px;
    height: 50px;
}

.logo-img {
    flex: 1;
    max-width: 100%;
    padding-left: 25px;
    height: auto;
}

.left {
    position: absolute;
    flex: 1;
    width: 8%;
    height: 80%;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right {
    position: absolute;
    flex: 1;
    width: 135px;
    height: 50px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 130px;
}

/* Botón hamburguesa oculto por defecto */
.menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #041c5d;
    cursor: pointer;
}

/* ----------- SOLO MÓVIL/TABLET ----------- */
@media (min-width: 360px) and (max-width: 768px) {
    header {
        width: initial;
    }
    .logo{
            padding-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .menu {
        display: none;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 70px;
        right: 6%;
        padding: 10px;
        border: 1px solid #ccc;
    }
    .menu.active {
        display: flex;
    }
}

@media screen and (min-width: 3440px){
    header{
        height: 160px;
        padding: 10px 10px;
    }
    .menu{
        font-size: 45px;
        gap: 120px;
    }
    .menu li a{
    }
    .logo{
        width: 20%;
        align-self: center;
        left: 2%;
        position: relative;
    }
    .logo a{
        position: absolute;
        display: flex;
        flex-direction: row;
        left: 0;
        top: -82%;
        width: 40%;
        height: 243%;
    }
    .logo-img{
        width: auto;
        height: auto;
        align-self: center;
    }
}
@media screen and (min-width: 7680px){
    header{
        height: 338px;
    }
    .menu{
        font-size: 72px;
    }
}