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

header {
    width: auto;
    position: relative;
    display: flex;
    background-color: #ffffff;
    color: #041c5d;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    padding: 15px 10px;
}

.menu {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 0;
    gap: 8vw;
    right: 5%;
    z-index: 50;
}

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

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

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

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

.logo-img {
    flex: 1;
    width: auto;
    height: auto;
    max-height: 50px;
}


.left, .right{
    position: relative;
    flex: 1;
    width: auto;
    height: 100%;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.left {
    border-right: 3px solid #041c5d;
    height: 100%;
    padding-right: 10px;
    /* height: 120px; */
}
.left img {
    height: auto;
    max-height: 50px;
}

.right {
    padding-left: 20px;
}

/* 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: 320px) and (max-width: 768px) {
    header {
        width: initial;
        padding: 10px 10px 10px 0;
        justify-content: space-between;
    }
    .logo{
        width: 100%;
        padding-left: 0;
        height: 30px;
        justify-content: start;
        align-items: center;
        gap: 10px;
    }
    .logo-img{
    flex: 1;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    .left {
        width: 50%;
        max-width: 44px;
        height: 50%;
        max-height: 26px;
        left: 20px;
        padding-right: 10px;
        border-right: solid #041c5d;
    }
        .right {
        width: 50%;
        max-width: 90px;
        height: 50%;
        max-height: 25px;
        left: 0;
    }
    .logo-img, .right {
        padding-left: 0;
    }
    .left, .right {
    position: relative;
    flex: 1;
    width: 100%;
    height: auto;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 8px;
    padding: 7px;
    padding-left: 5px;
    }
    .right{
        left: -2px;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 30px;
        right: 20px;
        background-color: #fffbfb;
        padding: 10px;
        border-radius: 5px;
        width: 200px;
    }
    .menu.active {
    display: flex;
    width: 100vw;
    left: 0;
    z-index: 50;
    }
    .menu li {
        margin: 10px 0;
    }
    .menu-toggle {
        display: flex;
        justify-content: space-between;
        right: 10%;
        align-self: center;
    }
}
@media (min-width: 890px) and (max-width: 1270px) {
    .menu{
        width: auto;
        gap: 3vw;
        right: 0;
    }
    .left img{
    height: 40px;
    }
    .logo{
        width: auto;
        height: 40px;
        position: relative;    }
    .logo-img{
        height: 100%;
    }
    .menu li a {
        font-size: smaller;
    }
}
@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;
    }
}
@media (min-width: 780px) and (max-width: 960px){
    
}