* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden; /* Evita el desplazamiento horizontal */
}

.card-container {
    width: 100%;
    overflow: hidden;
}

.cards {
    display: flex;
    transition: transform 0.5s ease;
    padding-bottom: 20px;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap; /* Ajuste para el espacio en la parte inferior */
}

.card {
    flex-shrink: 0; /* Evita que las tarjetas se reduzcan */
    position: relative;
    width: 300px;
    height: 350px;
    margin-right: 20px;
    transition: transform 0.5s;
    overflow: hidden; /* Evita que las imágenes se desborden */
}

.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: .5s;
}

.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 1px -1px 10px 4px #e5802a82;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .front h3 {
    position: absolute;
    bottom: -8px;
    width: 100%;
    height: 48px;
    line-height: 25px;
    color: #fff;
    background: rgba(0, 0, 0, .4);
    text-align: center;
}

.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: rgb(229 238 253 / 42%);
    padding: 15px;
    color: #020202;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 1px 1px 10px 2px #3295fb;
}

.card .back .link {
    border-top: solid 1px #f3f3f3;
    height: 50px;
    line-height: 50px;
}

.card .back .link a {
    color: #f3f3f3;
}

.card .back h3 {
    font-size: 30px;
    margin-top: 20px;
    letter-spacing: 2px;
}

.card .back p {
    letter-spacing: 1px;
} 

.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}
