.tarjetas {
    --bgTarjeta: #fff;
    --nameTarjeta: transparent;
    --anchoTarjeta: 265px;
    --altoTarjeta: 350px;
    --anchoContentTarjetas: 1000px;
}

@media (max-width: 400px) {
    .tarjetas {
        --anchoTarjeta: 310px;
        --altoTarjeta: 400px;
    }

    .tarjetas header h1 {
        font-size: 38px;
    }
}

.tarjetas * {
    box-sizing: border-box;
}

/*=== TARJETAS GIRATORIAS ===*/

.tarjetas .flip-container {
    -webkit-perspective: 1000;
    -o-perspective: 1000;
    perspective: 1000;
    display: inline-block;
    cursor: pointer;
}

@media all and (min-device-width: 768px) {
    .tarjetas .flip-container:hover .flipper {
        -webkit-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }
}

@media all and (max-device-width: 767px) {
    .tarjetas .flip-container.hover .flipper {
        -webkit-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }
}


.tarjetas .flip-container,
.tarjetas .front,
.tarjetas .back {
    min-width: var(--anchoTarjeta);
    height: var(--altoTarjeta);
}

.tarjetas .flip-container .flipper {
    -webkit-transition: 0.6s;
    -webkit-transform-style: preserve-3d;

    -moz-transition: 0.6s;
    -moz-transform-style: preserve-3d;

    -o-transition: 0.6s;
    -o-transform-style: preserve-3d;

    transition: 0.6s;
    transform-style: preserve-3d;

    position: relative;
}

.tarjetas .flip-container .front,
.tarjetas .flip-container .back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.tarjetas .flip-container .back {
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    text-align: center;
    transform: rotateY(180deg);
}

/*=== FIN TARJETAS GIRATORIAS ===*/

.tarjetas {
    padding: 10px 0;
    color: #fff;
    max-width: var(--anchoContentTarjetas);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tarjetas .back {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
}

.tarjetas .tituloCardBack {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.15;
}

.tarjetas .contenidoCardBack {
    padding: 5px 10px;
    font-size: 19px;
    line-height: 1.1;
}

.tarjetas .front {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.tarjetas .front,
.tarjetas .back {
    border-radius: 15px;
    padding: 20px;
}

.tarjetas .front::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 10px solid #02b15c;
    border-radius: 15px;
}

.tarjetas .back::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 10px solid #FFD966;
    border-radius: 15px;
}

.tarjetas .flip-container .front {
    background-color: var(--bgTarjeta);
}

.tarjetas .flip-container .back {
    background-color: #fff;
    color: #000000;
}

.tarjetas .imgFront {
    max-width: 100%;
    width: 220px;
    padding: 0;
    margin: 10px auto;
    border-radius: 5px;
    /* box-shadow: 0 0 6px 0 rgba(0, 0, 0, .3); */
}

.tarjetas .nameFront {
    border-radius: 1em;
    padding: 10px;
    margin: 15px 0;
    text-align: center;
}

.tarjetas .flip-container .front .nameFront {
    background-color: var(--nameTarjeta);
}