* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

nav {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    background-color: #003180;
    height: 80px;
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    z-index: 1000;
}

nav ul {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
}

nav ul li a{
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    margin: 10px;
    padding: 8px 12px;
    font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
    color: #FFCC00;
    background-color: rgba(255, 255, 255, 0.1);
}


.checkbtn {
    font-size: 30px;
    color: white;
    float: right;
    line-height: 80px;
    cursor: pointer;
    display: none;
}

.logo {
    height: 80px;
    padding: 10px;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}


#check {
    display: none;
}

.checkbtn i {
    transition: transform 0.3s ease;
}

#check:checked ~ .checkbtn i.fa-bars {
    transform: rotate(90deg);
}

#check:checked ~ .checkbtn i.fa-bars::before {
    content: "\f00d";  /* Font Awesome X icon unicode */
}
/* lineas 78 a 88 son nuevas, para probar si la x del menu funciona */

@media (max-width: 1100px) {
    .logo {
        height: 70px;
        padding: 8px;
    }

    .logo img {
        max-height: 54px;
    }

    nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 1000px) {
    .checkbtn {
        display: block;
        order: 2;
    }

    nav ul {
        position: fixed;
        width: 100%;
        height: calc(100vh - 80px); /* Full height minus navbar height */
        background: #2c3e50;
        top: 80px;
        left: -120%;
        text-align: center;
        transition: all 0.5s;
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        margin: 0;
        overflow-y: auto; /* Add scrollbar when content overflows */
    }

    nav ul li {
        display: block;
        margin: 30px 0;
        line-height: 40px;
    }

    nav ul li a {
        font-size: 20px;
        padding: 8px 15px;
    }

    a:hover,
    a.active {
        color: #FFCC00;
        background-color: rgba(255, 255, 255, 0.1);
    }

    #check:checked ~ ul {
        left: 0;
    }

    .logo {
        height: 60px;
        padding: 6px;
        order: 1;
    }

    .logo img {
        max-height: 48px;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }
}

.language-switcher {
    margin-left: 20px;
}

.language-switcher button {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-switcher button:hover {
    background: #fff;
    color: #2c3e50;
}

.language-switcher button img{ /*eso se podria sacar*/
    width: 20px;
    height: auto;
}