.consulta-section {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
    height: 350px; /* Ajusta según lo necesites */
    background-image: url('/img/carrusel1.jpg'); /* Reemplaza con la ruta correcta */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.consulta-section h1{
    text-align: center;
    font-size: 60px;
    margin: 10px;
    text-transform: uppercase;
    color: #03727b;
}

.consulta-section p{
    text-align: center;
    max-width: 40%;
    line-height: 1.4em;
    font-size: 20px;
}

@media screen and (max-width: 800px){
    .consulta-section h1{
        font-size: 60px;
    }
    .consulta-section p{
        max-width: 70%;
    } 
}

@media screen and (max-width: 400px){
    .consulta-section h1{
        font-size: 30px;
    }
}

.contacto{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto .titulo{
    font-size: 20px;
    color: #199a8f;
    text-align: center;
}

.casillas{
    display: flex;
    gap: 90px;
    padding-top: 20px;
}

.casilla{
    width: 400px;
    height: 200px;
    border: solid 2px #03727b;
    padding: 10px;
    border-radius: 40px;
    margin-top: 90px;
    margin-bottom: 60px;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
    transition: .5s;
}

.casilla:hover{
    transform: translateY(10px);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0);
    transition: .5s;
}

.casilla a{
    text-decoration: none;
}

.contactos{
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-70px);
}

.contactos img{
    width: 130px;
    margin-bottom: 20px;
}

.contactos span{
    color: #ffa92e;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.contactos p{
    margin: 10px 0;
    color: black;
    font-size: 20px;
}

.atencion{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
}

.atencion .norte-sur {

    position: relative;
    width: 100%;
    height: 450px; /* Ajusta según lo necesites */
    background-image: url('/img/norte-sur.jpg'); /* Reemplaza con la ruta correcta */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Previene scroll innecesario */
}

.atencion .norte-sur::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #03717b6c; /* Color con transparencia */
    z-index: 1; /* Detrás del texto */
}

.atencion h3 {
    position: relative; /* Para que esté por encima del ::after */
    width: 100%;
    max-width: 33%;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    color: white;
    z-index: 2;
}

.atencion h2{
    color: #ffa92e;
    font-size: 40px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px; /* Mejor usar margin que padding en este caso */
    position: relative; /* Para posicionar el ::after con más control si se desea */
    margin-top: 150px;
    line-height: 40px;
}

.atencion h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 4px;
    background-color: #ffa92e;
    margin: 15px auto 0 auto; /* margen superior de 10px */
}

.atencion h4{
    color: #ffa92e;
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 30px;
    font-weight: 900;
}

.atencion p span{
    color: #199a8f;
    margin-top: 20px;
}

.atencion p{
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}



.mapa{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 200px;
}

.mapa1{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mapa1 h2{
    color: #199a8f;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 35px;
}

.mapa1 p{
    font-size: 20px;
    font-weight: 700;
    font-size: 25px;
}

@media (max-width: 800px) {
    .casillas{
        flex-direction: column;
        padding-top: 0;
    }

    .casilla.pt2{
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .atencion h3{
        max-width: 60%;
    }
    
    .atencion h2{
        max-width: 80%;
    }
    
    .mapa{
        flex-direction: column;
    }

}

@media (max-width: 400px) {

    .casilla{
        width: 300px;
        height: 200px;
    }

    .contacto .titulo{
        font-size: 18px;
    }
    
    .atencion h3{
        max-width: 80%;
    }
    
    .mapa{
        flex-direction: column;
    }

    .mapas{
        width: 100%; /* Se ajusta al ancho del contenedor */
        max-width: 500px; /* Ancho máximo */
        height: 400px; /* Altura personalizada */
    }
}
