.wrapper{
  width: 90%;
  margin: 0 auto;
  max-width: 80rem;
}

.cols{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.col{
  width: calc(25% - 2rem);
  margin: 1rem;
  cursor: pointer;
}

.container2{
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
	-webkit-perspective: 1000px;
	        perspective: 1000px;
}

.front,
.back{
  background-size: cover;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.25);
  border-radius: 10px;
	background-position: center;
	-webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	-o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	-webkit-backface-visibility: hidden;
	        backface-visibility: hidden;
	text-align: center;
	min-height: 280px;
	height: auto;
	border-radius: 10px;
	color: #fff;
	font-size: 1.5rem;
}

.back{
  background: #cedce7;
  background: -webkit-linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
  background: -o-linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
  background: linear-gradient(45deg,  #cedce7 0%,#596a72 100%);
}

.front:after{
	position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: '';
    display: block;
    opacity: .6;
    background-color: #000;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    border-radius: 10px;
}
.container2:hover .front,
.container2:hover .back{
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.inner{
    -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
            transform: translateY(-50%) translateZ(60px) scale(0.94);
    top: 50%;
    position: absolute;
    left: 0;
    width: 100%;
    padding: 2rem;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
            perspective: inherit;
    z-index: 2;
}

.container2 .back{
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.container2 .front{
    -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.container2:hover .back{
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.container2:hover .front{
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.front .inner p{
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.front .inner p:after{
  content: '';
  width: 4rem;
  height: 2px;
  position: absolute;
  background: #C6D4DF;
  display: block;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -.75rem;
}

.front .inner span{
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat';
  font-weight: 300;
}

@media screen and (max-width: 64rem){
  .col{
    width: calc(33.333333% - 2rem);
  }
}

@media screen and (max-width: 48rem){
  .col{
    width: calc(50% - 2rem);
  }
}

@media screen and (max-width: 32rem){
  .col{
    width: 100%;
    margin: 0 0 2rem 0;
  }
}

/* Redes Start */
.redes{
  position: fixed;
  top: 220px;
  z-index: 1100;
  left: 0;
}
#facebook a{
  background: #3b5998;
  padding: 10px 25px;
  color: #fff;
  text-decoration: none;
  width: 55px;
  transition: all .4s ease;
}
#facebook a:hover{
  background: black;
  padding: 10px 50px;
}
#youtube a{
  background: #bb0000;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  width: 55px;
  transition: all .4s ease;
}
#youtube a:hover{
  background: black;
  padding: 10px 50px;
}
#twitter a{
  background: #55acee;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  width: 55px;
  transition: all .4s ease;
}
#twitter a:hover{
  background: black;
  padding: 10px 50px;
}
#instagram a{
  background: #f054bc;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  width: 55px;
  transition: all .4s ease;
}
#instagram a:hover{
  background: black;
  padding: 10px 50px;
}
#correo a{
  background: #e95950;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  width: 55px;
  transition: all .4s ease;
}
#correo a:hover{
  background: black;
  padding: 10px 50px;
}
/* Redes End */

/* Galeria Start */
.content-all{
  width:160px;
  margin: auto;
  perspective: 800px;
  position: relative;
  margin-top: 50px;
  margin-bottom: 130px;
  }
  .content-carrousel{
  width:100%;
  position:absolute;
  animation: rotar 30s infinite linear;
  transform-style: preserve-3d;
  }
  .content-carrousel:hover{
  animation-play-state: paused;
  cursor: pointer;
  }
  
  .content-carrousel figure{
  width:120%;
  height:135px;
  overflow: hidden;
  position:absolute;
  box-shadow: 0px 0px 20px 0px black;
  transition: all 300ms;
  }
  
  .content-carrousel figure:hover .cuadro-texto{
    box-shadow: 0px 0px 0px 0px black;
    transition: all 300ms;
  }


  /* Mostrar el cuadro de texto al hacer hover sobre el contenedor */
  .content-carrousel figure:hover .cuadro-texto {
    display: block;
  }
  .content-carrousel figure:nth-child(1){transform:rotateY(30deg) translateZ(360px);}
  .content-carrousel figure:nth-child(2){transform:rotateY(60deg) translateZ(360px);}
  .content-carrousel figure:nth-child(3){transform:rotateY(90deg) translateZ(360px);}
  .content-carrousel figure:nth-child(4){transform:rotateY(120deg) translateZ(360px);}
  .content-carrousel figure:nth-child(5){transform:rotateY(150deg) translateZ(360px);}
  .content-carrousel figure:nth-child(6){transform:rotateY(180deg) translateZ(360px);}
  .content-carrousel figure:nth-child(7){transform:rotateY(210deg) translateZ(360px);}
  .content-carrousel figure:nth-child(8){transform:rotateY(240deg) translateZ(360px);}
  .content-carrousel figure:nth-child(9){transform:rotateY(270deg) translateZ(360px);}
  .content-carrousel figure:nth-child(10){transform:rotateY(300deg) translateZ(360px);}
  .content-carrousel figure:nth-child(11){transform:rotateY(330deg) translateZ(360px);}
  .content-carrousel figure:nth-child(12){transform:rotateY(360deg) translateZ(360px);}
  
  .content-carrousel img{
  width:110%;
  transition: all 300ms;
  }
  
  .content-carrousel img:hover{
  transform: scale(1.2);
  transition: all 300ms;
  }
  
  @keyframes rotar{
    from{
      transform: rotateY(0deg);
    }to{
      transform: rotateY(360deg);
    }
  }
  /* Galeria End */
  
