.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.header_backgorund{
    position: relative;
    width: 100%;
    height: 100dvh;
}

 .video_background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video_background video{
    height: 100%;
    width: 100%;
    position: absolute;
    opacity: 1;
    z-index: -1;
    object-fit: cover;
}

.content_text{
    width: 100%;
    height: 100%;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

.textBackground{
    position: absolute;
    flex-direction: column;
    display: flex;
    justify-content: center;
    height: 70%;
    color: var(--color6);
    padding: 30px 60px ;
    margin-left: 0;
    width: 80%;
}


h1{
    font-family: var(--font-family-tittle);
    font-size: 50px;
    width: 50%;
}

p{
    font-family: var(--font-family-body);
    font-size: 20px;
    width: 50%;
} 

.animated-button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    font-size: var(--font-size-p);
    color: var(--color6);
    font-family: var(--font-family-tittle);
    cursor: pointer;
    width: 10%;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    overflow: hidden;
    transition: color 0.4s;
    text-decoration: none;
    border-radius: 5%;
    border: 1px solid var(--color6);
}

.animated-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color);
    z-index: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s;
}

.animated-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.animated-button:hover {
    color: var(--color6);
    border: 1px var(--color6) solid;
}

.animated-button span {
    position: relative;
    z-index: 1;
}

.animated-button:hover{
    cursor: pointer;
}

/*---------SECCION 2------------*/


.servicesBackground {
    position: relative;
    width: 70%;
    height: 60vh;
    margin-top: 2.5rem;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    overflow: hidden;

}

.servicesBackground::-webkit-scrollbar {
    display: none;
}

.servicesBackground img, .Infoimg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.servicesBackground img {
    object-fit: cover;
    opacity: 0;
}

.servicesBackground img.active, .Infoimg.active {
    opacity: 1;
}

.servicesBackground img.next-enter, .Infoimg.next-enter {
    transform: translateX(100%);
}

.servicesBackground img.next-enter-active, .Infoimg.next-enter-active {
    transform: translateX(0);
    opacity: 1;
}

.servicesBackground img.prev-enter, .Infoimg.prev-enter {
    transform: translateX(-100%);
}

.servicesBackground img.prev-enter-active, .Infoimg.prev-enter-active {
    transform: translateX(0);
    opacity: 1;
}

.servicesBackground img.next-exit, .Infoimg.next-exit {
    transform: translateX(0);
}

.servicesBackground img.next-exit-active, .Infoimg.next-exit-active {
    transform: translateX(-100%);
    opacity: 0;
}

.servicesBackground img.prev-exit, .Infoimg.prev-exit {
    transform: translateX(0);
}

.servicesBackground img.prev-exit-active, .Infoimg.prev-exit-active {
    transform: translateX(100%);
    opacity: 0;
}

.Infoimg {
    background-color: var(--color6);
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    z-index: 5;
    top: 1em;
    right: 2em;
    padding: 10px;
    opacity: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.Infoimg h1 {
    color: var(--color);
    font-size: var(--font-size-titulo);
    line-height: 1.2em;
    width: 90%;
    height: 20%;
}

.Infoimg p {
    font-size: var(--font-size-nota);
    padding-top: 1.5rem;
    width: 90%;
    height: 40%;
    line-height: 1.2em;
}

.Infoimg .btn_style {
    position: absolute;
    bottom: 1em;  
    border-radius: 50%; 
    border: none;
    aspect-ratio: 1/1;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

#nextBtn {
    left: 1em;
}
#prevBtn {
    right: 1em;
}

.Infoimg .btn_style i {
    font-size: 1.5rem;
    padding: .3em;
    color: var(--color6);
}

.container_services {
    padding-top: 10rem;
    padding-bottom: 10rem;
    position: relative;
    flex-direction: column;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 90dvh;
    align-items: center;
}

.services_head {
    padding-top: 3em;
    padding-bottom: 3em;
    position: relative;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.services_head.visible {
    opacity: 1;
    transform: translateY(0);
}

.services_head h1 {
    width: 100%;
    font-size: var(--font-size-display);
    line-height: 3.5rem;
}

.services_head p {
    line-height: 2rem;
    width: 100%;
    font-size: var(--font-size-subencabezado);
    font-family: var(--font-family-body);
    color: gray;
}

.services_head span {
    color: var(--color);
}

/* ///////////////////////// SECCION 3 ////////////////// */

.container_works{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 50vh;
    box-sizing: border-box;
}

.works_title{
    position: relative;
    flex-direction: column;
    width: 70%;
    display: flex;
    padding-top: 3em;
    padding-bottom: 3em;
    align-items: center;
    justify-content: center;
    width: 70%;
    
 }

 

 .works_title h1, .works_title p {
    margin: 0;
    padding: 0;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word; 
}

.works_title h1{
    color: var(--color);
    font-size: var(--font-size-display);
    font-family: var(--font-family-tittle);
    margin-bottom: 2rem;
 }

 .works_title p{
    color: gray;
    font-size: var(--font-size-subencabezado);
    font-family: var(--font-family-body);
    line-height: 2rem;
 }

 .container_work {
    position: relative;
    display: grid;
    width: 70%;
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual tamaño */
    gap: 20px; /* Espacio entre las columnas y filas */
    padding: 20px;
    box-sizing: border-box;
}

.info_work {
    position: relative;
    display: flex;
    height: 600px;
    width: 520px;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info_work img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.work_link{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 95%;
    padding: 10px;
    text-align: center;
}

.work_link a{
    display: block;
    opacity: 0;
    width: 100%; 
    height: 100%; 
    color: var(--color6);
    background-color: var(--color); 
    text-decoration: none; 
    border-radius: 5px; 
    overflow: hidden; 
    padding: 20px 20px; 
    box-sizing: border-box; 
    transition: all 0.5s ; 
    
}

.work_link a h1{
    font-size: var(--font-size-encabezado);
    text-align: left;
    
}

.work_link a:hover{
    opacity: 1;
}


.work_link .line{
    width: 50%;
    height: 5px;
    background-color: var(--color6);
    margin-top: 10px;
}


/* ////////////////////////CLIENTES////////////////// */

.container_customers {
    padding-top: 5rem;
    padding-bottom: 5rem;
    width: 100%;
    height: 50dvh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.customers_title {
    width: 70%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.customers_title h1{
    width: 100%;
    text-align: start;
    color: var(--color);
    
}

.container-img {
    width: 70%;
    height: 20dvh;
    position: relative;
    overflow: hidden;
}

.Imgcustomers {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.containerImg {
    flex: 0 0 calc(100% / 6); /* Muestra 6 imágenes a la vez */
    max-width: calc(100% / 6);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.containerImg img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.slider__btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 10;
}

.slider__btn:hover {
    background-color: rgba(0, 0, 0, 1);
}

.slider__btn-prev {
    left: 0;
}

.slider__btn-next {
    right: 0;
}


.slider__btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: var(--color6);
    font-family: var(--font-family-tittle);
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 10;
}

.slider__btn:hover {
    background-color: rgba(0, 0, 0, 1);
}

.slider__btn-prev {
    left: 0;
}

.slider__btn-next {
    right: 0;
}

.slider__btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: var(--color6);
    font-family: var(--font-family-tittle);
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 10;
}

.slider__btn:hover {
    background-color: rgba(0, 0, 0, 1);
}

.slider__btn-prev {
    left: 0;
}

.slider__btn-next {
    right: 0;
}

.slider__btn{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: var(--color6);
    font-family: var(--font-family-tittle);
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
}

.slider__btn:hover{
    background-color: rgba(0, 0, 0, 1);
}

.slider__btn-prev{
    left: 0;
}

.slider__btn-next{
    right: 0;
}



.containerCalification {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50dvh;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.calificacion_title {
    width: 70%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.calificacion_title h1{
    width: 100%;
    text-align: start;
    color: var(--color);
    
}

.reviews-carousel {
   width: 70%;
   min-height: 100%;
   overflow: hidden;
   position: relative; /* Asegura que los botones estén posicionados correctamente */
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    
}

.review-card {
    min-width: calc(100% / 3 - 18px); /* Ajusta el ancho para mostrar 3 tarjetas a la vez con margen */
    box-sizing: border-box;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 10px; /* Espaciado entre las tarjetas */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible; /* Permite que la imagen sobresalga */
    min-height: 450px; /* Establece una altura mínima para las tarjetas */
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    padding-top: 30px; /* Reduce aún más el espacio para la imagen que sobresale */
}

.profile-wrapper {
    position: absolute;
    top: -10px; /* Ajusta para que la imagen sobresalga aún menos */
    left: 20px;
    width: 50%;
    height: 170px; /* Aumenta el tamaño del contenedor para incluir el nombre */
    overflow: visible; /* Asegura que la imagen no se recorte */
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.profile-wrapper img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid #ddd; /* Opcional: Agrega borde alrededor de la imagen */
}

.review-author {
    font-size: 16px;
    font-family: var(--font-family-tittle);
    margin-top: 5px;
    text-align: center; /* Centra el nombre del autor */
}

.stars {
    font-size: 20px;
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: right;
    color: yellow;
    margin-left: 120px; /* Ajusta el espacio para que las estrellas no se superpongan con la imagen */
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
    flex: 1;
}

.review-text {
    font-size: var(--font-size-p);
    margin-bottom: 10px;
    text-align: center; /* Centra el texto dentro del contenedor */
    max-height: 200px; /* Altura máxima para la reseña */
    overflow-y: auto; /* Permite desplazamiento si el contenido supera la altura máxima */
    padding-right: 10px; /* Añade espacio para la barra de desplazamiento */
    font-family: var(--font-family-body);
}


.prev, .next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    z-index: 1000; /* Asegura que los botones estén por encima del contenido */
    transition: all 1s;
}

.prev:hover, .next:hover{
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media screen and (min-width:767px) and (max-width:1020px){

.header_backgorund{
    width: 100%;
    height: 50dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video_background{
    position: relative;
    width: 100%;
    height: 70%;
}

.content_text{
    background-color: var(--color);
    position: relative;
    width: 100%;
    height: 30%;
    
}

.info_work {

    height: 700px;
    width: 100%;

}

.Infoimg{
    display: none;
}

.textBackground{
    width: 80%;
}

.textBackground h1{
    width: 80%;
    
}

.textBackground p{
    width: 80%;
}


.animated-button{
    display: none;
}

.services_head{
    width: 80%;
    padding: 1em 2em;
}

.services_head h1{
    font-family: var(--font-family-tittle);
    font-size: var(--font-size-display);
    text-align: center;
    width: 100%;
}

.services_head p{
    text-align: center;
    font-family: var(--font-family-body);
    font-size: var(--font-size-p);
    width: 100%;
}

.servicesBackground{
    height: 30dvh;
    width: 80%;
}


.container_works .works_title{
    width: 80%;
    text-align: center;
}

.container_works .works_title h1{
    font-size: var(--font-size-display);
    width: 100%;
}

.container_works .works_title p{
    font-size: var(--font-size-titulo);
    width: 100%;
}

.container_work{
    grid-template-columns: 1fr;
}

.container_customers{
    height: 20dvh;
}

.containerImg {
    flex: 0 0 calc(100% / 3); /* Muestra 3 imágenes a la vez */
    max-width: calc(100% / 3);
    margin-top: 20px;
}

.Imgcustomers{
    width: 90%;
}

.container_services{
    min-height: 30dvh;
}

.servicesBackground{
    height: 20dvh;
    margin-top: 100px;
}

.customers_title{
    text-align: center;
    color: var(--color);
}

.customers_title h1{
    width: 100%;
    text-align: center;
}

.containerCalification {
    min-height: 30dvh;
    padding-top: 5rem;
    padding-bottom: 5rem;
 
}

.calificacion_title h1{
    width: 100%;
    text-align: center;
}


.reviews-carousel {
   width: 70%;
   height: 100%;
   overflow: hidden;
   position: relative; 
}

.review-card {
    min-width: 97%;
    height: 100%; 
    margin: 0; 
    padding: 10px; 
}

.card-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    padding-top: 30px; 
    height: 100%;
}


.profile-wrapper {
    width: 100%;
    height: 50%;

    position: relative; 
    top: auto; 
    left: auto; 
    margin-bottom: 10px; 
    width: auto; 
}

.profile-wrapper img {
    width: 80px;
    height: 80px;
}

.review-author {
    margin-top: 5px;
    text-align: center; 
    font-size: var(--font-size-titulo);
}



.stars {
    font-size: var(--font-size-display);
    flex: 1;
    width: 50%;
    margin-left: 0; 
}

.review-text {
    font-size: var(--font-size-titulo);
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    height: 100%; 
    overflow-y: auto; 
}


}

  