﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Dos columnas o más dependiendo del espacio */
    gap: 20px; /* Espacio entre cartas */
    justify-content: center; /* Centra el contenido */
    padding: 20px; /* Margen interno para un mejor aspecto */
}

.wrapper {
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

    .wrapper .card {
        position: absolute;
        height: 100%;
        width: 100%;
        padding: 5px;
        background: #fff;
        border-radius: 10px;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    }

        .wrapper .card img {
            height: 100%;
            width: 100%;
            object-fit: cover;
            border-radius: 10px;
        }

    .wrapper .back-face {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex-direction: column;
        transform: rotateY(180deg);
    }

    .wrapper:hover > .front-face {
        transform: rotateY(-180deg);
    }

    .wrapper:hover > .back-face {
        transform: rotateY(0deg);
    }

    .wrapper .back-face img {
        height: 150px;
        width: 150px;
        padding: 5px;
        border-radius: 50%;
        background: linear-gradient(to right, #ff1133, #6a4c93);
    }

.back-face .info .title {
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

.back-face ul {
    display: flex;
    gap: 10px; /* Espacio entre íconos */
}

    .back-face ul a {
        display: block;
        height: 40px;
        width: 40px;
        color: #fff;
        text-align: center;
        line-height: 38px;
        border: 2px solid transparent;
        border-radius: 50%;
        background: linear-gradient(to right, #ff1133, #6a4c93);
        transition: all 0.5s ease;
    }

        .back-face ul a:hover {
            color: #ff1133;
            border-color: #ff1133;
            background: transparent;
        }
