* {
    margin: 5;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-family: 'Cabin', sans-serif;
}

.wrap {
    width: auto;
    margin: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.tarjeta-wrap {
    width: auto;
    -webkit-perspective: 800;
    perspective: 800;
}

.tarjeta {
    width: 270px;
    height: 300px;
    background: #fff;
    position: relative;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: .7s ease;
    transition: .7s ease;
    -webkit-box-shadow: 0px 10px 15px -5px #001a49;
    box-shadow: 0px 10px 15px -5px #001a49;
}

.adelante,
.atras {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.adelante {
    width: 100%;
}

.atras {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    padding: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    color: #fff;
    font-family: "open sans";
}

.tarjeta-wrap:hover .tarjeta {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.card1 {
    background-image: url(../img/familia-leches_2019.png);
    background-size: cover;
}

.card2 {
    background-image: url(../img/p_quesos.png);
    background-size: cover;
}

.card3 {
    background-image: url(../img/p_fermentados.png);
    background-size: cover;
}

.card4 {
    background-image: url(../img/p_refrescos.png);
    background-size: cover;
}

.card5 {
    background-image: url(../img/p_postres.png);
    background-size: cover;
}

@media (max-width: 480px) {
    .wrap,
    .tarjeta-wrap,
    .tarjeta,
    .adelante,
    .atras,
    .card1,
    .card2,
    .card3,
    .card4,
    .card5,
    h1 {
        width: 100%;
    }
    .wrap {
        width: auto;
        margin: 0;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flow-root;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}