/* SERVICIOS */

.animar {
    opacity: 0;
    transition: opacity 0.3s;
}

.productos {
    display: flex;
    flex-wrap: wrap;  
    width: 100%;
        
    justify-content: center; 
    align-items: center;     
    gap: 1.25rem;               
    padding: 1.25rem;
}



.producto {
    flex: 1 1 18.75rem;
    max-width: 18.75rem;
    height: 21.875rem;
    border-radius: 0.625rem;
    
    perspective: 1000px;
}

.animar.visible {
    opacity: 1;
}



@media (max-width: 40rem) { 
    .productos {
        flex-direction: column;
        align-items: center; 
    }

    .producto {
        width: 100%;   
    }
}

.producto:hover .card{
    transform: rotateY(180deg);
}

.card {
    position: relative;
    width: 100%;
    height: 100%;

    transform-style: preserve-3d;
    border-radius: 0.625rem;
    box-shadow:
        0 0 12px var(--color-principal),
        0 10px 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.8s ease;
}


.front-producto,
.contenido2 {
    position: absolute;
    border: 0.313rem solid var(--color-principal);
    border-radius: 0.625rem;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}




.titulo-front{
    text-align: center;
    position: absolute;
    bottom: 30px;
    font-size: 25px;
    font-weight: 700;
    color: var(--color-texto);
    border-radius: 0.625rem;
    letter-spacing: 1px;
}

.img-producto {
    width: 80%;
    height: auto;
    max-height: 15rem;
}

.contenido2 {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 1.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: var(--color-principal);
    transform: rotateY(180deg);
    backface-visibility: hidden;
    text-align: center;

}

.contenido2 .titulo2 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 0.625rem;
  
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.box:nth-child(1) { animation-delay: 0s; }
.box:nth-child(2) { animation-delay: 0.1s; }
.box:nth-child(3) { animation-delay: 0.2s; }
.box:nth-child(4) { animation-delay: 0.3s; }
.box:nth-child(5) { animation-delay: 0.4s; }
.box:nth-child(6) { animation-delay: 0.5s; }