body{
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}


/*Contenedor para carrusel*/
.custom-container {
    position: relative;
    width: 100%;
    height: 37rem;
    overflow: hidden;
    margin-top: 4.8rem; 
}

.custom-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-slide.active {
    opacity: 1;
}

.slide-text {
    position: absolute;
    width: 100%;
    height: 100%; 
    color: white;
    font-size: 2.5rem;
    line-height: 2.3;
    padding: 8rem 12rem;
    box-sizing: border-box;
}

.slide-text p {
    margin: 1rem;
}

.container {
    display: flex;
    flex-direction: column;
}

.slide-text {
    order: 1; 
    background-color: rgba(0, 0, 0, 0.5);
    position: relative; 
    z-index: 1; 
}

.carousel-title {
    order: 2; 
    color: white;
    font-size: 3.5rem;
    justify-content: center;
    align-items: center;
    padding: 9.5rem 13rem;
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 2; 
}


.slide-text-ajustes {
    position: absolute;
    width: 100%;
    height: 100%; 
    color: white;
    font-size: 1.8rem;
    line-height: 2.3;
    padding: 15rem 12rem;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    opacity: 0; 
    transition: opacity 0.2s;
}


.carousel-controls button {
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    margin: 20px;
}

.carousel-controls button:hover {
    background-color: rgba(0, 0, 0, 1);
}

.custom-container:hover .carousel-controls {
    opacity: 1;
    z-index: 3; 
}

#carrusel-1 {
    background-image: url('../img/inicio.webp');
}

#carrusel-2 {
    background-image: url('../img/image-1.webp');
}

#carrusel-3 {
    background-image: url('../img/image-3.webp');
}

.carousel-title {
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 2s ease-in-out, transform 0.5s ease-in-out;
}

.slide-text p {
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 2s ease-in-out, transform 0.5s ease-in-out 0.5s; 
}

.custom-slide.active .carousel-title {
    opacity: 1;
    transform: translateY(0);
}

.custom-slide.active .slide-text p {
    opacity: 1;
    transform: translateY(0); 
}

/*Contenedor  somos*/
.section-somos {
    background: #175c81;
    width: 100%;
    height: 105vh;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: white;
}


.parrafo p{
    font-size: 1rem;
    line-height: 1.8rem;
    text-align: justify;
}

.somos-contenedor {
    display: flex;
    width: 70%;
    max-width: 1200px; 
}

.parrafo {
    flex: 1; 
    padding-right: 20px; 
}

.imagen {
    flex: 1; 
  
}

.somos-title {
    margin-top: 0;
    font-size: 2.3rem;
    font-weight: 10;
    line-height: .95;
}

.linea-blanca {
    height: 2px;
    width: 10rem;
    background-color: #FFFFFF;
    margin-bottom: 20px;
}

.img-oceano {
    width: 35rem;
    height: 30rem;
}

/*Contenedor Servicio */

.section-servicio {
    background: white;
    width: 100%;
    height: 80vh;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: white;
}

.servicio-title{
    color: #175c81;
}

#servicios01{
    border-top:1px solid #c5cacf;
}

.contenedor-texto{
    margin-top: 10rem;
    font-size: 1.2rem;
    line-height: 1.3rem;
    text-align: justify;
    margin-right: 1rem;
    color: #2eaccb;
}

/* Contenedor Experiencia */
.section-experiencia{
    background:#2eaccb;
    width: 100%;
    height: 90vh;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: white;
}

.experiencia-parrafo p {
    margin-top: 1.4rem;
}

/* Contenedor Servicios */
.contenedor-servicio{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #175c81;
    padding: 10rem 15rem;
  
}

.servicio-contenedor-texto p{
    font-size: 1rem;
    line-height: 1.1rem;
    text-align: justify;
    margin-right: 1rem;
    color: #2eaccb;
}

.servicio-title{
    margin-top: 0px;
    font-size: 2rem;
    font-weight: bold;
}

.linea-servicio {
    height: 2px; 
    width: 7rem; 
    background-color: #175c81; 
    margin-bottom: 20px; 
}

.img-servicio{
    width: 34rem;
    height: 25rem;
    display: block;
}

.contenedor-servicio1{
    display: flex;
    justify-content: center;
    color: #175c81;
    padding: 5rem 10rem;
}


.contenedor-img{
    width: 40%;
    position: relative;
    display: inline-block;
}

.img-servicio1{
    width: 25rem;
    height: 35rem;
    margin: 3rem;
    
}

.contenedor-img-servicio{

    position: relative;
    display: inline-block;
}

.contenedor-img-servicio1{
    position: relative;
    display: inline-block;

}

#servicios1{
    margin-top: -10rem;
    border-top: 1px solid #eaf1f7;
    
}

.img-cobertura{
    width: 40rem;
    height: 35rem;
}

/*Contenedor cobertura*/
.parrafo-cobertura{
    flex: 1; 
    padding-right: 20px; 
    padding-top: 10rem;
}

.experiencia-title{
    flex: 1; 
    font-size: 2.1rem;
    border-right: 3px solid white;
}

.experiencia-parrafo{
    flex: 1.7; 
}

.parrafo-cobertura p{
    flex: 1; 
    font-size: 1rem;
    line-height: 1.9rem;
    text-align: justify;
}

/*Estilos para el experiencia*/
.experiencia-parrafo{
    font-size: 1rem;
    line-height: 1.8rem;
    text-align: justify;
}


/*Estilos para el modal*/
.open-modal-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #0D73BA;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.open-modal-btn i {
    font-size: 1.2em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: auto;
    padding: 30px;
    width: 100%;
    max-width: 950px;
}

.close-btn {
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    top: 20px;
    right: 10px;
    color: white;
    width: 50px;
    font-size: 50px;
    font-weight: 100;
    cursor: pointer;
    background: #92b5da;
}

.close-btn:hover {
    background: #FFFFFF;
    color: #92b5da;
}

.close-btn1 {
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    top: 20px;
    right: 10px;
    color: white;
    width: 50px;
    font-size: 50px;
    font-weight: 100;
    cursor: pointer;
    background: #92b5da;
}

.close-btn1:hover {
    background: #FFFFFF;
    color: #92b5da;
}

.modal-img {
    width: 100%;
    height: 100%;
}

.open-modal-btn-servicio1 {
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 70px;
    right: 70px;
    background-color: #0D73BA;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
}

.open-modal-btn-servicio1 i {
    font-size: 1.2em;
}

.modal-img1{
    width: 50%;
    height: 60%;
}

@media screen and (min-width: 1800px) {
    .modal-content {
        max-width: 1050px;
     
    }
}

@media screen and (max-width: 800px) {
    .custom-container {
        margin-top: 3.8rem;
        height: 13rem; 
        width: 100%;
    }

    .slide-text p {
        order: 2; 
        background-color: rgba(0, 0, 0, 0.5);
        position: relative;
        z-index: 1;
        font-size: 0.7rem;
    }

    .carousel-title {
        order: 1;
        color: white;
        font-size: 0.9rem; 
        justify-content: center;
        align-items: center;
        padding: 3rem 2rem; 
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }
    
    .slide-text-ajustes {
        font-size: 0.54rem;
        line-height: 1rem;
        padding: 6rem 2rem;

    }

    .carousel-controls {
        top: 45%; 
    }

    .slide-text {
        font-size: 1.5rem; 
        line-height: 1;
        padding: 4rem;
    }

    .section-somos{
        height: auto;
        padding: 3rem 0rem;
    }

    .somos-contenedor,
    .contenedor-servicio {
        flex-direction: column; 
        align-items: center; 
        width: 90%;
    }

    .parrafo {
        padding-right: 0; 

    }

    .contenedor-texto p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .img-oceano,
    .img-servicio{
        width: 22.4rem;
        height: 15rem;
    }

    .img-servicio1{
        width: 19.5rem;
        height: 30rem;
        margin: 1rem;
        padding: 1rem;
    }

    .img-cobertura{      
        width: 20rem;
        height: 22rem;
    }

    .contenedor-servicio1,
    .contenedor-servicio,
    .contenedor-cobertura, 
    .contenedor-experiencia{
        display: flex;
        padding: 1rem ;
    }

    .somos-title,
    .servicio-title,
    .experiencia-title,
    .cobertura-title{
       font-size: 1.8rem;
       font-weight: 400;
    }
    
    .contenedor-img{
        width: auto;
    }

    .parrafo-cobertura{
        padding-top: 1rem;
    }

    .modal-content {
        width: auto;
        height: 80%;
        margin-top: 60px;
        padding: 40px;
    }

    .close-btn {
        z-index: 5;
    }

    .close-btn1 {
        z-index: 5;
    }

    .modal-img{
        margin-top: 100px;
        width: 100%;
        height: 50%;
    } 
    
    .modal-img1{
        width: 100%;
        height: 100%;
    } 

    .carousel-controls button {
        font-size: 1rem;
        height: 25px;
        width: 25px;  
    }
    
    strong{
        font-weight: 400;
    }

    .linea-blanca-experiencia {
        margin-top: 1rem;
        height: 3px; 
        width: 11rem; 
        background-color: #FFFFFF; 
        margin-bottom: 20px; 
        display: block; 
    }

    .contenedor-texto-experiencia{
       border: none;
       font-weight: 500;
    }
    
    .section-servicio{
        height: auto;
        padding: 3rem 0rem;
    }

    #servicios {
        display: flex;
        flex-direction: column; 
    }
    
    .servicio-contenedor-texto {
        order: -1; 
        margin-bottom: 0.5rem; 
    }
    
    .section-experiencia{
        width: 100%;
        height: auto;
        padding: auto;
    }
    
    .contenedor-texto{
        margin-top: 1rem;
    }
    
    .img-servicio {
        margin-top: 0rem; 
    }
    
    .experiencia-title{
        border: none;    
    }

    .servicio-title {
        line-height: 1.7rem; 
    }

    .modal-img{
        justify-content: center;
        text-align: center;
        align-items: center;
    }
    
}
