@font-face{
    font-family: 'Aller Regular';
    src: url('../fonts/Aller/Aller_Std_Rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face{
    font-family: 'Aller Display';
    src: url('../fonts/Aller/AllerDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body{
    width: 100vw;
    font-family: 'Aller Regular';
    display: flex;
    flex-direction: column;
}
.content-prime{
    /* position: relative; */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.content-prime img{
    width: 100%;
    object-fit:  cover;
}
.cont-civi{
    width: 100%;
    height: 620px;
    position: relative;
    background-color: #ffffff;
}
.img-backgroundciv{
    width: 100%;
    height: 100%;
    background-size:  25% 85%;
    background-position: 120px 60px;
    background-repeat: no-repeat;
    background-image: url('../webp/img/servicios/civil/IMAGEN 01.webp');
    position: absolute;
}
.container-text{
    margin-bottom: 240px;
}
.container-text h2{
    font-family: 'Aller Display';
    text-align: center;
    color: #AAD159;
    font-size: 82.64px;
    margin-top: 31px;
    position: relative;
}
.container-text p{
    font-family: 'Aller Regular';
    text-align: justify;
    color: #002060;
    margin: 25px 30.24px 47px 53.67px;
    font-size: 32.2px;
    position: relative;
}
/*Carrusel*/
#Carrusel_contenedor_principal {
    width: 100vw;
    height: 90vh;
    background-color: #002060;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.carousel-container{
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carousel{
    width: 100vw;
    height: 100%;
    position:absolute;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.carousel img{
    position:absolute;
    width:100vw;
    height: 100vh;
    left:100%;
    overflow: hidden;
    transition:all 0.5s ease-in-out;
}
.carousel img.active{
    width: auto;
    left: 0;
    justify-content: center;
}
#carruselciviluno{
    z-index: 10;
    width:100vw;
    height: 100vh;
    display: contents;
}
#carruselciviluno img{
    width: 100%;
    height: 100%;
}

#carruselcivildos{
    position: relative;
    width: 40vw;
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    object-fit: unset;
    z-index: 10;
}
#carruselcivildos img.active {
    display: flex;
    width: 70%;
    height: 100%;
    margin-left: 30%;
    z-index: 10;
    object-fit: unset; /* Sobrescribe la propiedad object-fit */
}
#carruselcivildos img.next_calidad {
    width: 70%;
    height: 80%;
    opacity: 0.4;
    margin-left: 2%;
    left: 0;
    z-index: 5;
    object-fit: unset;
    transition: all 0.5s ease-in-out;
}

#carruselcivildos img.prev_calidad{
    width:100% ;
    height: 80%;
    z-index: 0;
    opacity: 0.2;
    object-fit: unset;
    transition:all 0.5s ease-in-out;
}
.carousel-controls {
    position: absolute;
    bottom: 40px; /* Ubica el contenedor en la parte inferior */
    left: 50%; /* Centra horizontalmente */
    transform: translateX(50%); /* Ajusta para centrar perfectamente */
    z-index:10;
    display: flex;
    gap:20px;
}
button{
    bottom: 0;
    width: 40px;
    height: 40px;
    background-color: #fffefea5;
    color: #ffffff;
    border-radius: 50%;
    border:none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor:pointer;
}
button i{
    font-size:25px ;
}
button:disabled{
    /* display: inline-block; */
    cursor: not-allowed;
    opacity: 0;
}
@media screen and (max-width: 768px) and (orientation: portrait) {
    .container-text h2 {
        font-size: 2rem;
        margin-top: 15px;
    }
    .container-text p {
        font-size: 1rem;
        margin: 23px 25px;
    }
    .img-backgroundciv {
        background-size: 250px auto;
        background-position: center center;
    }
    .cont-civi {
        height: 421px;
    }
    #Carrusel_contenedor_principal {
        height: 200px;
    }
    .carousel-container {
        height: 100%;
    }
    #carruselcivildos{
        height: 100%;
    }
    #carruselcivildos img.active {
        height: 78%;
    }
    #carruselcivildos img.next_calidad{
        height: 60%;
    }
    .carousel-controls {
        left:35%;
    }
    button {
        bottom: 0;
        width: 25px;
        height: 25px;
    }
    button i {
        font-size: 12px;
    }
}