@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins';
}



.box_nosotros{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    margin-bottom: 100px;

}

.box_nosotros h1{
    margin-bottom: 50px;
    color: #1d1f40;
    font-size: 2.8rem;
}

.caja__nosotros{
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(3,1fr);
    gap: 200px;
}


.card{
    position: relative;
    width: 300px;
    height: 420px;
    background: #ffff;
    transform-style: preserve-3d;
    transform: perspective(100em);
    box-shadow: 30px 40px 40px rgba(0, 0, 0, 0.2);
    transition: .7s;
}


.card:hover{
    transform: translateX(10%);
}

.card h2{
    text-align: center;
}

.imgBox{
    position: relative;
    width: 100%;  
    height: 100%;
    z-index: 1;
    transform-origin: left;
    transform-style: preserve-3d;    
    transition: 1s;
    background: #0000002d;
    box-shadow: 30px 40px 40px rgba(0, 0, 0, 0.2);
}

.imgBox h2{
    display: flex;
    position: absolute;
    z-index: 2;
    color: #fff;
    top:50%;
    left: 50%;
    transform:translate(-50%,-50%);
}

.card:hover .imgBox{
    transform: rotateY(-180deg);
} 

.card .imgBox img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* filter:brightness(.9); */

}


.card .imgBox img:nth-child(2){
    transform: rotateY(180deg);
    z-index: 3;

}

.card .details{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card .details .content{
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .details .content h2{
    color: #1d1f40;
    text-align: center;
    font-weight: 700;
    line-height: 1em;
}

.card .details .parrafo p{
    text-align: justify;
    font-size: 15px;
    margin-top: 20px;
}





@media (max-width:1580px) {


    .caja__nosotros{
        gap: 150px;
    }

    .box_nosotros{
        margin-top: 50px;
    }

    .card{
        width: 250px;
        height: 350px;
    }    

    .card h2{
        font-size: 1.2rem;
    }

    .card .details .parrafo p{
        font-size: 13px;
    }

}

@media (max-width:480px){

    .box_nosotros{
        margin-top: 50px;
    }

    .box_nosotros h1{
        font-size: 25px;
    }
    .caja__nosotros{
        grid-template-columns: 1fr;
    }

    .card{
        width: 250px;
        height: 350px;
    }

    .card:hover{
        transform: translate(0%);
    }

    .imgBox h2{
        font-size: 20px;
    }

    .card .details .content h2{
        font-size: 20px;
    }

    .card .details .parrafo p{
        font-size: 12px;
    }
}

