* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background: -webkit-linear-gradient(155deg, #8720af, #ec2d30, #661985, #e22c2f);
}

.center, .delantera,
.contenido, .trasera {
    position: absolute;
}

.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 400px;
    width: 290px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.delantera, .trasera {
    height: 100%;
    width: 100%;
    text-align: center;
    background: url(entreunosyceros.jpeg);
    background-size: cover;
    background-position: center;
    transform: translateY(0deg);
    border-radius: 10px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.4, .3, .2, 1);
}

.contenido {
    left: 0%;
    top: 50%;
    width: 100%;
    perspective: 1000px;
    transform: translateY(-50%) translateZ(60px) scale(0.94);
}

.delant p {
    font-size: 25px;
    margin-bottom: 15px;
    color: white;
    font-weight: bold;
}

.delant span {
    font-size: 20px;
    color: white;
}

.delant p:after {
    content: '';
    display: block;
    left: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background: white;
    margin: 0 auto;
    margin-top: 10px;
}

.tras .icons:before, .tras .icons:after{
        content: '';
    display: block;
    left: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background: white;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.trasera {
    transform: rotateY(180deg);
    background: url(entreunosyceros.jpeg);
    background-size: cover;
    background-position: center;
}

.tras {
    color: rgb(185, 185, 185);
}

.tras h2 {
    font-size: 25px;
    padding-bottom: 5px;
    color:white
}

.tras span {
    font-size: 25px;
}

.icons {
    margin: 10px 0;
    display: block;
}

i.fab {
    color: #042f4b;
    font-size: 20px;
    height: 40px;
    width: 40px;
    background: white;
    border-radius: 50%;
    margin: 0 5px;
    line-height: 40px;
    cursor: pointer;
}

/*Giro*/

.center:hover>.trasera {
    transform: rotateY(0deg);
}

.center:hover>.delantera {
    transform: rotateY(-180deg);
}

/*Redes sociales*/

.fa-facebook-f:hover {
    background-color: rgb(17, 0, 255);
    color: white;
}

.fa-twitter:hover {
    background-color: rgb(0, 140, 255);
    color: white;
}

.fa-youtube:hover {
    background-color: rgb(219, 0, 0);
    color: rgb(255, 255, 255);
}

.fa-instagram:hover {
    background-color: rgb(193, 53, 132);
    color: white;
}

.fa-github:hover {
    background-color: rgb(116, 116, 116);
    color: white;
}