body {
    background-color: #ffffff;
}

.card-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    perspective: 1000px;
}

/* Ocultar el checkbox */
input[type="checkbox"].flipper-checkbox {
    display: none;
}

.card {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0 auto;
    
    transition: transform 0.5s;
}

.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: 0 5px 10px #000;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .front h3, .card .front h5, .card .front h6 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    color: #fff;
    background: rgba(0,0,0,.4);
    text-align: center;
    font-size: 20px;
}

.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: #485d1d;
    padding: 15px;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 5px 10px #000;
}

.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;
}

/* Volteo al pasar el mouse en escritorio */
.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}

/* Volteo al hacer clic en móvil */
input[type="checkbox"].flipper-checkbox:checked + .card .front {
    transform: perspective(600px) rotateY(180deg);
}

input[type="checkbox"].flipper-checkbox:checked + .card .back {
    transform: perspective(600px) rotateY(360deg);
}

.modal-header {
    text-align: center;
    text-align: justify;
}
