.headImg {
    width: 98%;
    background-color: #013e74;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    justify-self: center;
    align-items: center;
    border-radius: 3px;
    
}

.menorH {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.headL,
.headR {
    width: 30%;
    display: flex;
    align-items: center;


}

.headL {
    justify-content: flex-end;

}

.headR {
    justify-content: flex-start;
}

.headL img {

    width: 100%;
    max-width: 200px;
    height: auto; 
}

.headR img {

    width: 90%;
    height: 160px; 
    max-width: 300px;


}

.headM {

    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
}

.headM p {
    font-size: 24px;
    font-weight: bold;
    font-family: sans-serif;
    text-align: center;
}




@media (max-width: 600px) {



    .headM p {
        font-size: 16px;
    }

    .headL,
    .headR {

        width: 40%;
        justify-content: center;

    }

    .headL img {
    height: 80%;
    }

    .headR img {
        height: 70%;
    }

}

@media (max-width: 370px) {

    .headM p {
        font-size: 10px;
    }


    .headL img {
    height: 60%;
    }

    .headR img {
        height: 50%;
    }

}


.headBotones {
    width: 98%;
    display: flex;
    justify-content: center;
    justify-self: center;
    gap: 5px;
}

.hamburguesa {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    cursor: pointer;
    margin: 10px;
    z-index: 1001;
}

.hamburguesa div {
    width: 30px;
    height: 4px;
    background-color: black;
    margin: 4px 0;
}

.botonMenu {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background-color: white;
    border: 1px solid rgb(95, 156, 248);
    position: relative;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Añadido para permitir submenús */
    justify-content: center;
    align-items: center;
}

.botonMenu:hover {
    border-color: rgb(0, 78, 196);
    background-color: rgb(242, 246, 253);
}

.submenu,
.submenu2,
.submenu3 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid rgb(95, 156, 248);
    border-radius: 6px;
    padding: 5px 0;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.submenu a,
.submenu2 a,
.submenu3 a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-decoration: none;
    color: black;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.submenu a:hover,
.submenu2 a:hover,
.submenu3 a:hover {
    background-color: rgb(242, 246, 253);
    text-decoration: underline;
}

/* Mostrar submenús al hacer hover (escritorio) */
#turismo:hover .submenu {
    display: block;
}

#solucion:hover .submenu2 {
    display: block;
}

#quienSomos:hover .submenu3 {
    display: block;
}

.headerImagenes {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

#sliderImagen {
    width: 98%;
    height: auto;

    max-height: 600px;
    display: block;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    border-radius: 8px;

}

footer {
    margin-top: 40px;
    width: 100%;
    background-color: #f4f4f4;
}

.footer-row1,
.footer-row2 {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.footer-row1>div {
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
}

footer img {
    width: 100%;
    max-width: 500px;
    height: 120px;
}

.footer-row2 {
    margin-top: 30px;
}

.footer-row2>div {
    width: 30%;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.foot4 {
    display: flex;
    flex-direction: row;
}

.footInfo p {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.fBottom {
    background-color: black;
    padding: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;


}

.fBottom a {
    text-decoration: none;
    color: white;

}

.fBottom a:hover {
    color: rgb(94, 94, 247);
    text-decoration: underline;
}


/* Media queries */
@media (max-width: 740px) {
    .botonMenu {
        padding: 5px;
        font-size: 12px;
    }


    .footInfo p {
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
    }
}

@media (max-width: 470px) {
    .headBotones {
        display: none;
        flex-direction: column;
        background-color: white;
        position: static;
        width: 100%;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        border-radius: 0;
        margin-top: 10px;
    }

    .hamburguesa {
        display: flex;
    }

    #turismo,
    #solucion,
    #quienSomos {
        flex-direction: column;
    }

    .botonMenu {
        width: 100%;
    }

    .submenu,
    .submenu2,
    .submenu3 {
        position: static;
        display: none;
        border: none;
    }

    .submenu a,
    .submenu2 a,
    .submenu3 a {
        background-color: white;
        border: 1px solid rgb(95, 156, 248);
        border-radius: 5px;
        margin-top: 5px;
    }

    .submenu a:hover,
    .submenu2 a:hover,
    .submenu3 a:hover {
        border-color: rgb(0, 78, 196);
        background-color: rgb(242, 246, 253);
    }

    #turismo.open .submenu {
        display: block;
    }

    #solucion.open .submenu2 {
        display: block;
    }

    #quienSomos.open .submenu3 {
        display: block;
    }

    .footer-row1,
    .footer-row2 {
        flex-direction: column;
        align-items: center;
    }

    .footer-row1>div,
    .footer-row2>div {
        width: 100%;
        max-width: 90%;
        margin-bottom: 15px;
    }

    .headImg img,
    #sliderImagen {
        min-height: 70px;
    }
}