*{
    margin: 0;
    padding: 0;
   
}
html {
    scroll-behavior:smooth;
}
#cont-header{
    width: 100%;
    display: flex;
    height: 100px;
    background-color: rgba(1, 57, 106, 0.378);
}
.header-section{
    display: flex;
    flex-direction: row;
    
}
#header-logo{
    margin-top: 5px;
    height: 100px;
    width: 100px;
    
}
#header-logo img{
    width: 100%;
    height: auto;
    text-align: center;
    
}
#header-tittle{
    margin: auto;
    color: #0c354e;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}
.info{
    color: rgba(1, 57, 106, 0.679);
    margin: auto 0 auto 120px;
    border: 2px solid rgba(1, 57, 106, 0.659);
    border-radius: 3px;
    padding: 10px;
    width: 22%;
    background-color: rgba(255, 255, 255, 0.6);
    font-family: "Montserrat", sans-serif;
}
ion-icon.header-icon.md.hydrated{
    width: 45px;
    height: 45px;
    margin-right: 10px;
    color: rgba(1, 57, 106, 0.679);
}
hr{
    background-color: rgba(1, 57, 106, 0.679);
    height: 2px;
    border: none;
}
.menu{
    width: 100%;
    height: 50px;
    display: flex;
    text-align: center;
    list-style: none;
    background-color: rgba(1, 57, 106, 0.378);
}
.menu-items{
    margin: auto 2.5%;
    width: 20%;
    
}

.menu-items a{
    text-decoration: none;
    color: #0c354e;
    transition: color 0.5s ease;
    font-family: "Montserrat", sans-serif;
}
.menu-items a:hover{
    color: #0c354eae;
}

.desplegable{
    position: relative;
    
}
.menu-2{
    list-style: none;
    background-color:  #9FB5C6;
    position: absolute;
    top: 100%;
    left: 30%;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.menu-2 li{
    text-decoration: none;
    width: auto;
    
    text-align: left;
    margin: 5px auto;
}

.desplegable:hover .menu-2{
    visibility: visible;
    opacity: 1;
}

#banner {
    position: relative;
    display: inline-block; 
    width: 100%;
    
}

#banner img {
    display: block;
    width: 100%;
    height: 600px;
}

.banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 30px;
    margin-left: 15px;
}

.banner-text p{
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.banner-text h2{
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

#info-principal{
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: row;
    margin: 100px 0;
}
.contacto-info-main{
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: auto;
    align-items: center;
    text-align: center;
}
.contacto-info-main h2, .contacto-info-main h3{
    margin-bottom: 10px;
    margin-top: 10px;
    font-family: "Montserrat", sans-serif;
    color: #0c354e;
    
}
.contacto-info-main h2{
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(33, 100, 255, 0.4);
    font-size: 30px;
}
.contacto-info-main h3{
    font-weight: 400;
    font-size: 25px;
}

.contacto-info-main iframe{
    border-radius: 10px;
}

.contacto-info-main img{
    width: 100%;
    height: auto;
    margin: 5px auto;
}

#titulo-contacto{
    width: 100%;
    height: 130px;
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    text-align: center;
    margin: 80px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
    background: linear-gradient(to right, #0c354e 50%, #1e669397 50%);
    background-size: 200% 100%;
    background-position: right;
    transition: background-position 0.6s ease, transform 0.6s ease;
}
#titulo-contacto:hover{
    transform: translateY(-10px);
    background-position: left;
    
}

#cont-redes-contacto{
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 100px;
}
.cont-info-red{
    width: 22%;
    height: 170px;
    margin: auto;
    display: flex;
    
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: 2px solid #0c354e;
    background-color: #9FB5C6;
}
.logo-contacto{
    margin-top: 15px;
    width: 40px;
    height: 40px;
    color: #0c354e;
    margin-bottom: 20px;
}
.cont-info-red h3{
    margin-bottom: 5px;
    color: #0c354e;
    font-family: "Montserrat", sans-serif;
}
.cont-info-red p{
    color: #0c354e;
    font-family: "Montserrat", sans-serif;
}

#contacto-wpp{
    width: 8%;
    height: 60px;
    position: fixed;
    bottom: 5%;
    right: 2%;
    transition: transform 0.5s ease;
}
#contacto-wpp img{
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    
}
#contacto-wpp:hover{
    transform: scale(1.2);
}


#footer{
    width: 100%;
    height: 500px;
    background-color: rgba(1, 57, 106, 0.378);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.footer-cont{
    margin: auto;
    width: 30%;
    height: 200px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}
.footer-cont img{
    width: 25%;
    height: 120px;
    margin: 0 auto;
}
.footer-cont h2{
    color: rgba(1, 57, 106, 0.822);
    font-family: "Montserrat", sans-serif;
}
#footer-nav{
    width: 70%;
    display: flex;
    text-align: center;
    list-style: none;
}

#list-footer {
    list-style: none;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.footer-items a{
    text-decoration: none;
    font-size: 20px;
    color: #0c354e;
    transition: color 0.5s ease;
    font-family: "Montserrat", sans-serif;
    
}
.footer-items a:hover{
    color: #0c354eae;
}
#footer-subnav{
    list-style-type: none;
    text-align: start;
    margin-left: 25px;
}
.subnav-items a{
    font-size: 18px;
    font-weight: 300;
}

#footer-redes{
    display: flex;
    justify-content: center;
}
.footer-cont h3{
    margin-bottom: 20px;
    font-size: 22px;
    color: rgba(1, 57, 106, 0.822);
    font-family: "Montserrat", sans-serif;
}
ion-icon.footer-red.md.hydrated{
    width: 30px;
    height: 30px;
    color: rgba(1, 57, 106, 0.679);
    margin: auto 15px;
    transition: transform 0.7s ease;
}
ion-icon.footer-red.md.hydrated:hover{
    transform: translateY(-10px);
}


@media (max-width: 576px) {

    /* Header */
    #cont-header {
        height: auto;
        flex-direction: column;
        padding: 10px 0;
    }

    .header-section {
        width: 100%;
        justify-content: left;
        margin: 8px 0;
    }

    .info {
        margin: 8px auto;
        width: 85%;
        font-size: 0.9rem;
        padding: 8px;
    }

    #header-logo {
        width: 80px;
        height: 80px;
        
    }

    #header-tittle {
        font-size: 1.4rem;
        margin: 20px 0;
    }

    ion-icon.header-icon {
        width: 36px;
        height: 36px;
    }

    /* Menú hamburguesa necesario (actualmente no lo tienes, pero es clave) */
    .menu {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .menu-items {
        width: 100%;
        margin: 6px 0;
        font-size: 1.1rem;
    }

    .desplegable .menu-2 {
        position: static;
        width: 100%;
    }

    .menu-2 {
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        
    }

    #banner{
        height: 300px;
        width: 100%;
    }
    #banner img{
        height: 300px;
        width: 100%;
    }
    #banner h1{
        bottom: -15%;
        left: 2%;
        font-size: 45px;
    }
    #banner p{
        bottom: -20%;
        left: 2%;
        font-size: 15px;
    }
    #info-principal{
        flex-direction: column;
        height: auto;
    }
    .contacto-info-main{
        width: 80%;
        margin: auto;
        margin-bottom: 40px;
    }
    #cont-redes-contacto{
        width: 100%;
        flex-direction: column;
        height: auto;
    }
    .cont-info-red{
        width: 85%;
        margin: 30px auto;
    }
    /* WhatsApp flotante */
    #contacto-wpp {
        width: 20%;
        right: 3%;
        bottom: 2%;
    }

    /* Footer */
    #footer {
        height: auto;
        width: 100%;
    }

    .footer-cont {
        width: 90%;
        height: auto;
        margin: 20px 0;
    }

    .footer-cont img {
        width: 40%;
        height: auto;
    }

    #footer-nav {
        width: 100%;
    }

    #list-footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-items {
        margin: 12px 0;
        font-size: 1.1rem;
    }

    #footer-subnav {
        margin-left: 0;
        text-align: center;
    }

    .footer-redes ion-icon {
        width: 36px;
        height: 36px;
        margin: 0 12px;
    }
}


@media (min-width: 577px) and (max-width: 768px) {

    #cont-header {
        width: 100%;
        height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
        justify-content: left;
    }

    .info {
        width: 43%;
        margin: 10px;
    }

    .menu {
        padding: 10px 0;
        width: 100%;
        height: auto;
    }

    .menu-items {
        margin: 0 auto;
        font-size: 1.05rem;
    }
    .menu-2{
        position: relative;
        top: auto;
        left: auto;
        opacity: 1;
        visibility: visible;
    }
    
    #banner{
        height: 300px;
        width: 100%;
    }
    #banner img{
        height: 300px;
        width: 100%;
    }
    #banner h1{
        bottom: 60%;
        left: 2%;
        font-size: 50px;
    }
    #banner p{
        bottom: 58%;
        left: 2%;
        font-size: 20px;
    }
    #info-principal{
        flex-direction: column;
        height: auto;
    }
    .contacto-info-main{
        width: 80%;
        margin: auto;
        margin-bottom: 40px;
    }
    #cont-redes-contacto{
        width: 100%;
        flex-direction: column;
        height: auto;
    }
    .cont-info-red{
        width: 85%;
        margin: 30px auto;
    }
    /* WhatsApp flotante */
    #contacto-wpp {
        width: 20%;
        right: 3%;
        bottom: 2%;
    }
    #footer {
        padding: 50px 20px;
    }
    .footer-cont img{
        width: 55%;
        margin: auto;
    }
    .footer-items{
        margin: 20px auto;
    }
    #list-footer {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Opcional: Ajustes muy pequeños (≤ 380px) */
@media (max-width: 380px) {
    .info-carrusel h1 {
        font-size: 1.5rem;
    }
    .info-carrusel p {
        font-size: 0.9rem;
    }
    .leermas-carrusel {
        padding: 0.8em 1.8em;
        font-size: 0.85rem;
    }
}