@font-face{
    font-family: 'Aller Display';
    src: url('../fonts/Aller/AllerDisplay.ttf');
    font-weight: normal;
    font-size: normal;
}
@font-face{
    font-family: 'Aller Regular';
    src: url('../fonts/Aller/Aller_Std_Rg.ttf');
    font-weight: normal;
    font-size: normal;
}
@font-face{
    font-family: 'Aller Light';
    src: url('../fonts/Aller/Aller_Std_Lt.ttf');
    font-weight: normal;
    font-size: normal;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Aller Regular';
    width: 100%; /* mejor que 100vw */
}

.content-prime{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.content-prime img{
    width: 100%;
    max-width: 100vw;
    object-fit: cover;
}
.gtdeobra{
    width: 100%;
    max-width: 100vw;
    background-image: url('../webp/img/servicios/gtdeObra/FONDO.webp');
    background-size: 100% 100%;
}
.cont-phrase{
    padding: 40px 40px 0px;
}
.cont-phrase h1, .sub{
    text-align: center;
}
h1{
    font-family: 'Aller Display';
    color: #AAD159;
    font-size: 78px;
    padding-bottom: 0;
    margin-bottom: 0;
    padding-top: 25px;
}
.sub{
    font-family: 'Aller Light';
    color: #AAD159;
    margin:0 0 20px;
}
.cont-phrase p {
    font-size: 30.9px;
}
p{
    font-family: 'Aller Regular';
    color: #002060;
    text-align: justify;
}
.carousel-container {
    max-width: 100vw;
    margin: 0 auto;
    position: relative;
    width: 100%; /* Ancho del área visible (ajústalo según tu diseño) */
    z-index: 5;
    padding: 50px 0;
    /* justify-content: center; */
}
button.prev, button.next {
    position :absolute;
    top: 50%;
    background-color: #7b7b7b87;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    padding: 12px;
    font-size: 38px;
    color:white;
}

button.prev{
    left: -25px;
}
button.next{
    right:-25px;
}

button:hover{
    background-color: #adf05683;
    color: rgba(0, 0, 0, 0.719);
}
button:active {
    background-color: #ffffff79;
}
.control_b{
    position:relative;
    width:95%;
    margin:0 auto;
    z-index: 10;
}
.carousel-overflow{
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    z-index: 5;
}
.carousel-track {
    width: 224.9%;
    white-space: nowrap;
    margin: 0 auto;
    display: flex;
    transition: transform 0.5s ease-in-out; /* Animación suave */
    position: relative;
    z-index: 8;
}
.carousel-slide {
    position:relative;
    display: inline-block;
    height: 390px;
    /* width: 25%; */
    width: calc(100% /4);
    box-sizing: border-box; /* Incluye padding y border en el cálculo del ancho */
    overflow: hidden;
    text-align: center;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease-in-out;
}
.carousel-slide img {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}