/* CHRISTIAN  */
@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;
    display: flex;
    flex-direction: column;
}
.portada-meca-suelos{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.portada-meca-suelos img{
    width: 100%;
    object-fit: cover;
}
.meca-suelos {
    width: 100%;
    height: 600px;
    position: relative;
    background-color: #ffffff;
}

.background-image {
    width: 100vw;
    height: 100%;
    background-size: 100% 108%;
    background-repeat: no-repeat;
    background-image: url('../webp/img/servicios/mecasuelos/IMAGEN 01.webp'); /* Eliminé la barra invertida */
    position: absolute;
}
h1 {
    display: flex;
    justify-content: center;
    font-family: 'Aller Display';
    color: #AAD159;
    font-size: 82.64px; /* Redondeé el tamaño de fuente */
    margin-top: 31px;
    margin-bottom: 0;
    position: relative;
}
.container-mecasuelos p{
    position: relative;
    font-family: 'Aller Regular';
    text-align: justify;
    color: #002060;
    margin-left: 53.67px;
    margin-right: 30.24px;
    margin-bottom: 47px; /* Asegúrate de no duplicar la propiedad margin-bottom */
    font-size: 32.2px;
}

/* 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;
}
#carruselmecasuelos1{
    z-index: 10;
    width:100vw;
    height: 100vh;
}
#carruselmecasuelos1 img{
    width: 100%;
    height: 100%;
}

#carruselmecasuelos2{
    position: relative;
    width: 40vw;
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    object-fit: unset;
    z-index: 10;
}
#carruselmecasuelos2 img.active {
    display: flex;
    width: 70%;
    height: 100%;
    margin-left: 30%;
    z-index: 10;
    object-fit: unset; /* Sobrescribe la propiedad object-fit */
}
#carruselmecasuelos2 img.next_mecasuelos {
    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;
}

#carruselmecasuelos2 img.prev_mecasuelos{
    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;
}

.tipos_trabajo{
    background-image: url('../webp/img/servicios/mecasuelos/IMAGEN\ 02.webp');
    background-size: 100% 100%;
}
.works-container h2{
    font-family: 'Aller Display';
    color: #002060;
    font-size: 35px;
    margin-left: 54.047px;
    margin-bottom:10px;
    padding-top: 25px;
}

.works-container li{
    font-family: 'Aller Regular';
    margin-top: 0;
    color:#002060;
    font-size: 1.45rem;
    margin-left: 54.803px;
    line-height: 1.3;
    list-style: none;
}
@media screen and (max-width: 768px) and (orientation: portrait) {
    .meca-suelos h1{
        font-size: 2rem;
    }
    .meca-suelos p{
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .works-container li{
        font-size: 1em;
    }
    .works-container h2{
        font-size: 1.4rem;
    }
    .meca-suelos{
        width: 100%;
        height: auto;
    }
    .background-image{
        width: 100%;
        height: 88%;
        background-size: cover;
        background-repeat: no-repeat;
        top: 6%;
        left: -96px;
    }
    .container-mecasuelos p {
        margin: 25px 20px;
    }
    #Carrusel_contenedor_principal{
        height: 200px;
    }
    .carousel-container {
        height: 100%;
    }
    #carruselmecasuelos1 img {
        height: 100%;
    }
    #carruselmecasuelos1 {
        height: 100%;
    }
    #carruselmecasuelos2 img.active {
        height: 78%;
    }
    #carruselmecasuelos2 img.next_mecasuelos {
        height: 60%;
    }

    .carousel-controls{
        width: auto;
        height: auto;
        left:50%;
        bottom: 10px;
        transform:translateX(0);
        gap:10px;
    }
    button {
        width: 25px; /* Ajusta el ancho del botón según sea necesario */
        height: 25px; /* Ajusta la altura del botón según sea necesario */
    }

    button i {
        font-size: 15px; /* Ajusta el tamaño del icono según sea necesario */
    }
    .works-container {
        left: -33px;
        position: relative;
    }
}
