.main {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 50% 100%, 0% 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Opacidad de la capa */
  z-index: 1;
}



.text{  
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%);
    color: white;   
    text-align: center;
}

.text h3{
    font-size: 35px;
    line-height: 35px;
    font-weight: 800;
    margin: 0;
}

.text p{
    padding: 0 150px;
    font-size: 14px;
}




@media screen and (max-width: 1400px){
    .text h3{
        font-size: 40px;
    }

    .text p{
        padding: 0 30px;
    }
}


.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Espacio entre el collage y el texto */
    padding: 0px 100px;
    margin-bottom: 100px;
    margin-top: 100px;
}

.collage {
    position: relative;
    width: 45%; /* Ajusta el tamaño del collage */
    height: 600px; /* Ajusta según el tamaño del collage */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    clip-path: polygon(0% 15%, 100% 0%, 100% 100%, 0% 100%);
}



.collage img {
    width: calc(33.33% - 20px); /* Ajusta según el número de imágenes */
    height: auto;
    object-fit: cover;
    transition: 0.3s;
    z-index: 0;
}


.collage img:hover{
    transform: scale(1.2    );
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
}


.text1 {
    width: 35%; /* Ajusta el ancho del texto */
    padding-left: 200px;
    padding-top: 55px;
    max-width: 50%;
}

.text1 .p1{
    font-size: 14px;
    font-weight: 500;
}

.text1 .p2{
    padding-top: 20px;
    font-size: 14px;
    font-weight: 400;
    color: #a0a0a0;
}

@media screen and (max-width: 1500px){

    .collage {
        clip-path: polygon(0% 14%, 100% 0%, 100% 100%, 0% 98%);
    }

}

@media screen and (max-width: 1400px){

    .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px; /* Espacio entre el collage y el texto */
        padding: 10px 0px;
        margin-bottom: 80px;
    }
    
    .collage {
        height: 400px; /* Ajusta según el tamaño del collage */
        clip-path: polygon(0% 17%, 100% 0%, 100% 100%, 0% 99%);
    }
    
    .collage img {
        width: calc(33.33% - 20px); /* Ajusta según el número de imágenes */
        height: auto;
        object-fit: cover;
    }

    .collage {
        clip-path: polygon(0% 20%, 100% 0%, 100% 100%, 0% 98%);
    }

    .text1 {
        width: 40%; /* Ajusta el ancho del texto */
        padding-top: 80px;
        padding-left: 100px;
        max-width: 100%;
    }

    .text1 .p1{
        font-size: 14px;
    }
    
    .text1 .p2{
        padding-top: 10px;
        font-size: 13px;
    }

}

@media screen and (max-width: 800px){

    .container {
        gap: 40px; /* Espacio entre el collage y el texto */
    }

    .collage {
        clip-path: polygon(0% 25%, 100% 0%, 100% 100%, 0% 100%);
        height: 400px; /* Ajusta según el tamaño del collage */
    }

    .text1 {
        padding-top: 70px;
    }

}

@media screen and (max-width: 400px){

    .container {
        flex-direction: column;
        justify-content: center;
        padding: 80px 30px;
        margin-bottom: 0px;
    }

    .collage {
        position: relative;
        width: 100%; /* Ajusta el tamaño del collage */
        height: 200px; /* Ajusta según el tamaño del collage */
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        justify-content: center;
    }
    
    .collage img {
        width: calc(33.33% - 20px); /* Ajusta según el número de imágenes */
        height: auto;
        object-fit: cover;
    }
    
    .text1 {
        width: 100%; /* Ajusta el ancho del texto */
        padding-left: 00px;
        padding-top: 0px;
        text-align: center;
    }
    
    .text1 .p1{
        font-size: 14px;
    }
    
    .text1 .p2{
        padding-top: 20px;
        font-size: 13px;
        font-weight: 400;
        color: #a0a0a0;
    }

}




.stats {
    background-image: url('/img/inicio/4.JPG'); /* Usa './' para indicar que la carpeta está en el mismo directorio */
    background-size: cover;
    background-position: center;
    max-width: 100%;
    display: flex;
    height: 400px;
    align-items: flex-start;
    justify-content: center;
    gap: 300px;
    margin-top: 50px;
}

.stats::after {
    content: ""; /* Necesario para que el pseudo-elemento sea visible */
    position: absolute;
    width: 100%;
    height: 400px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1; /* Asegura que el overlay esté sobre la imagen */
}

.stat-item {
    z-index: 2;
    text-align: center;
    color: white;
    font-size: 14px;
    padding-top: 70px;
}


.iconsax {
    font-size: 30px;
    color: white;
}


.stat-item span {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: #0099A8;
}


.services-container {
    z-index: 3;
    position: relative;
    background: white;
    padding: 90px 50px;
    margin: 20px auto;
    width: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    top: -120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-container p{
    text-align: center;
    max-width: 80%;
    color: #a0a0a0;
    font-size: 14px;
    z-index: 6;
}

.services-container span{
    font-weight: 600;
    font-size: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 10px 0px;
    max-width: 80%;
}

.service1, .service2, .service3, .service4{
    position: relative;
    background: #0099A8;
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    padding-top: 100px;
    padding-bottom: 30px;
    z-index: 4;
    font-size: 14px;
}

.service3, .service4{
    z-index: 3;
}

.service2, .service3{
    background-color: #0078A8;
}


.service1::before, .service2::before, .service3::before, .service4::before{
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
}


.service1 span, .service2 span, .service3 span, .service4 span{
    font-size: 14px;
    font-weight: 300;
}

.btn {
    padding: 5px 60px;
    background-color: #00939c;
    color: white;
    border: 2px solid #00939c;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 25px;
}

.btn:hover {
    background-color: white;
    color: #00939c;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 1500px){
    
    .stats {
        gap: 200px;
    }

    .services-container {
        width: 70%;
    }

}

@media screen and (max-width: 1030px){   
    .stats {
        gap: 100px;
    }

    .services-container {
        width: 70%;
    }

    .services-container p{
        max-width: 100%;
    }
    
    
    .services-grid {
        max-width: 100%;
    }

}


@media screen and (max-width: 800px){

    .stats {
        flex-direction: column;
        height: 800px;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    
    .stats::after {
        height: 800px;
    }
    
    .stat-item {
        padding-top: 10px;
        padding-bottom: 10px;
    }

        
    .stat-item span{
        font-size: 25px;
    }


    .services-container {
        width: 80%;
        padding: 90px 40px;
        top: -80px;
    }
    
    
    .services-grid {
        max-width: 100%;
    }
}

@media screen and (max-width: 400px){
    
    .stats {
        height: 700px;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    
    .stats::after {
        height: 700px;
    }
    
    .stat-item {
        font-size: 13px;
    }

        
    .stat-item span{
        font-size: 20px;
    }

    .services-container {
        width: 80%;
        padding: 10px 10px;
    }
    
    
    .services-grid {
        max-width: 100%;
    }

    .services-container {
        width: 100%;
        padding: 0px 0px;
        margin: 0px auto;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0);
        top: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services-container p{
        max-width: 70%;
        font-size: 13px;
    }

    .services-container span{
        padding-top: 70px;
        font-size: 14px;
    }

    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin: 20px 0px;
        max-width: 90%;
    }

    .service1{
        z-index: 4;
    }

    .service2{
        z-index: 3;
    }

    .service3{
        z-index: 2;
        background-color: #00939c;
    }
    
    .service4{
        z-index: 1;
        background-color: #0078A8;
    }

    .service1, .service2, .service3, .service4{
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .service1::before, .service2::before, .service3::before, .service4::before{
        width: 0px;
        height: 0px;
    }

    .btn{
        margin-bottom: 70px;
    }
}


.projects-container {
    background: white;
    margin: 0px auto;
    width: 60%;
    margin-top: 10px;
}

.projects-container h2{
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.projects-grid a{
    text-decoration: none;
}

.project {
    text-align: left;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.project img {
    object-fit: cover;
    width: 100%;
    height: 150px;
    background: #767676;
    display: block;
}

.project .titulo,
.project .contenido{
    padding: 0 20px;
}

.project .contenido{
    padding-bottom: 20px;
}


.project .titulo p{
    color: #00939c;
    font-size: 14px;
    font-weight: 800;
    padding-top: 10px;
}


.project span{
    font-weight: 600;
    font-size: 14px;
    color: #0078A8;
}

.projects-container .project p{
    font-size: 14px;
    margin: 0;
    text-align: left;
}

.projects-container .proyectos {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
    padding: 0;
}

.projects-container .proyectos p{
    padding: 90px 0 10px;
    text-align: center;
    max-width: 60%;
    font-weight: 500;
}

.projects-container .proyectos .btn{
    margin: 0;
}

@media screen and (max-width: 800px){
    .projects-container {
        width: 70%;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
        margin-top: 40px;
    }
    

.projects-container .proyectos p{
    padding: 50px 0 10px;
    text-align: center;
    max-width: 90%;
    font-weight: 400;
}


}


@media screen and (max-width: 400px){

    .projects-container {
        width: 90%;
    }
}


.clients-container {
    width: 80%;
    margin: 50px auto;
    text-align: center;
    margin-bottom: 150px;
    margin-top: 50px;
}

.clients-container p{
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.clients-container h2 {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 30px;
}

.clients-carousel .clients-wrapper {
    display: flex;
    justify-content: center;
}

.client {
    padding: 30px  70px;
    border-left: 1px solid #7676764d;
    text-align: center;
    transition: transform 1s ease;
    flex-direction: column;
}


.client i{
    color: #0078A8;
    font-weight: 400;
    font-size: 60px;
}

.client:first-child {
    border-left: none;
}

.client p {
    font-size: 13px;
    color: #a0a0a0;
    margin-bottom: 10px;
    margin-top: 30px;
    font-weight: 400;
    max-width: 100%;
}

.client .name {
    font-weight: bold;
    color: #000;
}


.clients-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}


@media screen and (max-width: 1030px){
    
    .clients-container {
        width: 90%;
    }

    
    .client {
        margin-top: 30px;
        padding: 30px  20px;
    }

}


/* Aplica el carrusel solo en móviles */
@media screen and (max-width: 400px) {

    .clients-carousel .clients-wrapper {
        display: flex;
        justify-content: flex-start;
    }



    .clients-wrapper {
        display: flex;
        width: 100%; /* Asegura que el wrapper sea lo suficientemente grande para los testimonios */
        transition: transform 1s ease-in-out;
    }

    .client {
        flex: 0 0 100%;
        text-align: center;
        border-left: none;
        padding: 0px  00px;
        
    }

    .client p{

        padding: 0px  40px;
        
    }

}

/* En pantallas grandes, aseguramos que el contenido sea estático */
@media screen and (min-width: 401px) {
    .clients-wrapper {
        display: block;
        width: auto;
        transform: none !important; /* Evita que el JS haga cambios */
    }
}



@media screen and (max-width: 400px){}
@media screen and (max-width: 800px){}
@media screen and (max-width: 1030px){}
@media screen and (max-width: 1500px){}



