.main {
    background-image: url('/img/servicios/fondo.png'); /* Usa './' para indicar que la carpeta está en el mismo directorio */
    background-color: white;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 50vh;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
}

.main::after {
    content: ""; /* Necesario para que el pseudo-elemento sea visible */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Corrección del color con transparencia */
    z-index: 1; /* Asegura que el overlay esté sobre la imagen */
}


.text{  
    z-index: 2;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;   
    text-align: center;
}

.text h3{
    font-size: 40px;
    line-height: 50px;
    font-weight: 800;
    margin: 0;
}

.text p{
    padding: 0 0px;
    font-size: 13px;
}



@media screen and (max-width: 400px){}
@media screen and (max-width: 800px){}
@media screen and (max-width: 1030px){}
@media screen and (max-width: 1500px){}



.introduccion{
    position: relative;
    height: 35vh;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.text1{
    text-align: center;
    max-width: 50%;
    font-weight: 400;
    font-size: 16px;
}

.text1 span{
    color: black;
    font-weight: 600;
}

.text1 p{
    font-size: 14px;
}

.botones{
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
}

.botones .portafolio button{
    background-color: white;
    color: #00939c;
}

.proyecto button{
    padding: 5px 30px;
}

.botones .portafolio button:hover, .proyecto button:hover{
    background-color:#0078A8;
    color: white;
    border: solid 2px #0078A8;
}


@media screen and (max-width: 400px){}
@media screen and (max-width: 800px){}
@media screen and (max-width: 1030px){}
@media screen and (max-width: 1500px){}



.container{
    width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.container .seccion h3{
    text-align: center;
    margin: 20px 0;
    padding-top: 30px;
}

.container h3{
    margin: 5px 0;
    text-transform: uppercase;
}

.fila2{
    margin-top: 50px;
}

.fila0, .fila1, .fila2, .fila3{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Añade espacio entre los elementos */
}

.box_verde, .box_azul {
    position: relative; /* Asegura que ::after se posicione correctamente */
    background-size: cover;
    background-position: center;
}

.box_verde::after,  .box_azul::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 148, 156, 0.5); /* Usa opacidad para no tapar la imagen */
    z-index: 1; /* Asegura que el overlay esté sobre la imagen */
    transition: .7s;
}


.box_azul::after {
    background-color: rgba(6, 85, 151, 0.5); /* Usa opacidad para no tapar la imagen */
}


.box_verde:hover::after {
    background-color: rgba(0, 148, 156, 0.8); /* Más oscuro al hacer hover */

}
.box_azul:hover::after {
    background-color: rgba(6, 85, 151, 0.8); /* Más oscuro al hacer hover */
}

.fila0 .box_azul{
    background-image: url('/img/servicios/1.jpg'); 
}

.fila1 .box_azul{
    background-image: url('/img/servicios/2.jpg'); 
}

.fila1 .box_verde{
    background-image: url('/img/servicios/3.jpg'); 
}

.fila2 .box_azul{
    background-image: url('/img/servicios/4.jpg'); 
}

.fila2 .box_verde{
    background-image: url('/img/servicios/5.jpg'); 
}

.fila3 .box_azul{
    background-image: url('/img/servicios/6.jpg'); 
}

.fila3 .box_verde{
    background-image: url('/img/servicios/7.jpg'); 
}




.box_azul, .box_verde {
    width: 400px;
    height: 400px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    padding: 20px 30px;
}

.fila1 .box_azul, .fila2 .box_azul, .fila3 .box_azul {
    width: 500px;
}

.fila0, .box_azul{
    width: 1020px;
    align-self: center;
}


h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    z-index: 3;
    cursor: default;
}

.lista {
    position: relative;
    z-index: 3;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s ease-in-out, opacity .7s ease-in-out;
    pointer-events: none;
}

.box_azul:hover > .lista,
.box_verde:hover > .lista  {
    max-height: 100%; /* Ajusta según el contenido */
    opacity: 1;
    pointer-events: auto;
}



.lista li:hover{
    text-decoration: underline;
    cursor: default;
}


.lista ul{
    list-style: lower-latin;
}


.lista li{
    font-size: 15px;
    z-index: 3;
}




    
.chevron {
    margin-top: 80px;
    background-image: url('/img/fondo.png'); /* Usa './' para indicar que la carpeta está en el mismo directorio */
    background-color: white;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 20vh
}

.chevron::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Asegura que el after no tenga color */
    pointer-events: none; /* Hace que no sea interactuable */
    user-select: none; /* Evita la selección de texto e imágenes */
}

.chevron img {
    max-width: 100%;
    pointer-events: none; /* Deshabilita la interacción con las imágenes */
}


.normas{
    position: relative;
    background-color: white;
    padding: 80px 0;
}

.normas p{
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.normas ul{
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 80px;
    align-items: center;
    gap: 70px;
    padding-bottom: 100px;
}

.normas li{
    transition: .7s;
}

.normas li:hover{
    scale: 1.1;
}


@media screen and (max-width: 800px){

    .fila0, .fila1, .fila2, .fila3{
        flex-direction: column;
    }

    .box_azul, .box_verde {
        width: 500px;
    }
    
    .fila1 .box_azul, .fila2 .box_azul, .fila3 .box_azul {
        width: 500px;
    }
    
    .fila0, .box_azul{
        width: 500px;
    }

    .fila1 .box_azul::after,
    .fila3 .box_azul::after
    {
        background-color: rgba(0, 148, 156, 0.5);
    }

    .fila1 .box_azul:hover::after,
    .fila3 .box_azul:hover::after{
        background-color: rgba(0, 148, 156, 0.8);
    }



    .fila1 .box_verde::after,
    .fila3 .box_verde::after{
        background-color: rgba(6, 85, 151, 0.5);
    }

    .fila1 .box_verde:hover::after,
    .fila3 .box_verde:hover::after{
        background-color: rgba(6, 85, 151, 0.8);
    }

    .container .titulo{
        padding: 0 100px;
    }

    .normas ul{
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 3 columnas iguales */
        grid-template-rows: auto; /* Filas ajustadas al contenido */
        justify-items: center; /* Centra cada elemento en su celda */
        gap: 10px;
    }

}

@media screen and (max-width: 400px){

    .main .text{
        padding-top: 100px;
    }

    .introduccion .text1{
        padding-top: 200px;
        max-width: 75%
    }
    
    .botones{
        flex-direction: column;
        align-items: center;
    }

    .container{
        padding-top: 200px;
    }

    .container .titulo{
        padding: 0 10px;
    }

    .box_azul, .box_verde {
        width: 250px;
        height: 500px;
    }
    
    .fila1 .box_azul, .fila2 .box_azul, .fila3 .box_azul {
        width: 250px;
    }
    
    .fila0, .box_azul{
        width: 250px;
    }

    .normas ul{
        grid-template-columns: repeat(1, 1fr); /* 3 columnas iguales */
        gap: 80px;
    }

}



@media screen and (max-width: 400px){}
@media screen and (max-width: 800px){}
@media screen and (max-width: 1030px){}
@media screen and (max-width: 1500px){
    .text{  
    top: 45%;
}
}

