.galeriapr {
  margin: 0 auto;
  max-width: 1100px;
  padding: 0;
}
.galeriapr nav {
  display: flex;
  justify-content: center;
}
.galeriapr .fots {
  display: flex;
  max-width: 1000px;
  width: 100%;
  justify-content: space-between;
}
.fots span {
  padding: 5px 25px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #393939;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: "Font-Content", "sans-serif";
  letter-spacing: 1.1px;
}
.fots span.active,
.fots span:hover {
  color: #fff;
  background: #ff0417;
  padding: 10px;
}

.filtro {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.filtro .image {
  width: calc(100% / 4);
  padding: 7px;
}
.filtro .image span {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.filtro .image img {
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.filtro .image:hover img {
  transform: scale(1.1);
}
.filtro .image.hide {
  display: none;
}
.filtro .image.show {
  animation: animate 0.4s ease;
}
@keyframes animate {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}

.preview-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  max-width: 700px;
  width: 100%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  border-radius: 3px;
  padding: 0 5px 5px 5px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}
.preview-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.preview-box .details {
  padding: 13px 15px 13px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.details .title {
  display: flex;
  font-size: 18px;
  font-weight: 400;
}
.details .title p {
  font-weight: 500;
  margin-left: 5px;
}
.details .icon {
  color: #f60000;
  font-style: 22px;
  cursor: pointer;
}
.preview-box .image-box {
  width: 100%;
  display: flex;
}
.image-box img {
  width: 100%;
  border-radius: 0 0 3px 3px;
}
.shadow {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: rgba(0, 0, 0, 0.4);
}
.shadow.show {
  display: block;
}

@media (max-width: 1000px) {
  .filtro .image {
    width: calc(100% / 3);
  }
}
@media (max-width: 800px) {
  .filtro .image {
    width: calc(100% / 2);
  }
}
@media (max-width: 700px) {
  .galeriapr nav .fots {
    max-width: 600px;
  }
  nav .fots span {
    padding: 7px 15px;
  }
}
@media (max-width: 600px) {
  .galeriapr {
    margin: 30px auto;
  }
  .galeriapr nav .fots {
    flex-wrap: wrap;
    justify-content: center;
  }
  nav .fots span {
    margin: 5px;
  }
  .filtro .image {
    width: 100%;
  }
}
#face,
#inst,
#yout,
#whats {
  position: fixed;
  left: 1.5vh;
  z-index: 5;
}
#face {
  bottom: 50vh;
}
#inst {
  bottom: 40vh;
}
#yout {
  bottom: 30vh;
}
#whats {
  bottom: 20vh;
}
#face:hover {
  filter: hue-rotate(190deg);
}
#inst:hover {
  filter: hue-rotate(285deg);
}
#yout:hover {
  filter: hue-rotate(25deg);
}
#whats:hover {
  filter: hue-rotate(245deg);
}

@import url("https://fonts.googleapis.com/css2?family=Exo&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@200;400&display=swap");
.previa {
  color: white;
  padding: 2rem;
  height: auto;
}
.previass {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-gap: 0.1rem;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
#imgprevia {
  width: 100%;
  height: auto;
}

#imgprevia:hover {
  filter: grayscale(50%);
}

/*CODIGO NUEVO IMPOR*/

main {
  width: 100%;
}
aside {
  max-width: 1200px;
  margin: 4vh auto;
  padding: 0 1px;
}
aside .carta {
  text-align: center;
  margin: 0;
  line-height: 250px;
  font-size: 90px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 5%;
}
aside .carta img {
  border-radius: 10px;
}
.carta-5:active {
  background: url(images/apiladores/Norma.webp) no-repeat;
}
.owl-dots {
  position: relative;
  visibility: hidden;
}
.owl-dot {
  height: 15px;
  width: 45px;
  margin: 0 5px;
  outline: none;
  border-radius: 14px;
  border: 2px solid red !important;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.owl-dot.active,
.owl-dot:hover {
  background: red !important;
}

.mama,
.mama .owl-item {
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mama {
  display: none;
  width: 100%;
  z-index: 1;
}
.mama .owl-stage {
  position: relative;
  -ms-touch-action: pan-Y;
  touch-action: manipulation;
  -moz-backface-visibility: hidden;
}
.mama .owl-stage:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
.mama .owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}
.mama .owl-item,
.mama .owl-wrapper {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
}
.mama .owl-item {
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-touch-callout: none;
}
.mama .owl-item img {
  display: block;
  width: 100%;
}
.mama .owl-dots.disabled,
.mama .owl-nav.disabled {
  display: none;
}
.no-js .mama,
.mama.owl-loaded {
  display: block;
}
.mama .owl-dot,
.mama .owl-nav .owl-next,
.mama .owl-nav .owl-prev {
  cursor: pointer;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.mama .owl-nav button.owl-next,
.mama .owl-nav button.owl-prev,
.mama button.owl-dot {
  background: 0 0;
  color: inherit;
  border: none;
  padding: 0 !important;
  font: inherit;
}
.mama.owl-loading {
  opacity: 0;
  display: block;
}
.mama.owl-hidden {
  opacity: 0;
}
.mama.owl-refresh .owl-item {
  visibility: hidden;
}
.mama.owl-drag .owl-item {
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.mama.owl-grab {
  cursor: move;
  cursor: grab;
}
.mama.owl-rtl {
  direction: rtl;
}
.mama.owl-rtl .owl-item {
  float: right;
}
.mama .animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
.mama .owl-animated-in {
  z-index: 0;
}
.mama .owl-animated-out {
  z-index: 1;
}
.mama .fadeOut {
  animation-name: fadeOut;
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.owl-height {
  transition: height 0.5s ease-in-out;
}
.mama .owl-item .owl-lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mama .owl-item .owl-lazy:not([src]),
.mama .owl-item .owl-lazy[src^=""] {
  max-height: 0;
}
.mama .owl-item img.owl-lazy {
  transform-style: preserve-3d;
}
.mama .owl-video-wrapper {
  position: relative;
  height: 100%;
  background: #000;
}
.mama .owl-video-play-icon {
  position: absolute;
  height: 80px;
  width: 80px;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -40px;
  background: url(owl.video.play.png) no-repeat;
  cursor: pointer;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  transition: transform 0.1s ease;
}
.mama .owl-video-play-icon:hover {
  -ms-transform: scale(1.3, 1.3);
  transform: scale(1.3, 1.3);
}
.mama .owl-video-playing .owl-video-play-icon,
.mama .owl-video-playing .owl-video-tn {
  display: none;
}
.mama .owl-video-tn {
  opacity: 0;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.4s ease;
}
.mama .owl-video-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
}

/*CARRUSEL NUEVO ZOOM*/

.zoomimg {
  position: fixed;
  top: 0%;
  left: -8px; /* Ok, let's hide the small gap on left side */
  width: 100%;
  background: rgba(0, 0, 0, 0.88);
  width: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out;
  overflow: hidden;
  z-index: 100000;
}
.zoomimg img {
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 0%;
  max-width: 0%;
  border: 3px solid #fff;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

a.cerrarbtn {
  display: block;
  width: 50px;
  height: 50px;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  text-decoration: none;
  position: absolute;
  top: -80px;
  right: 0; /* designate the close button side */
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}
a.cerrarbtn:before {
  content: "";
  display: block;
  height: 30px;
  width: 1px;
  background: #fff;
  position: absolute;
  left: 26px;
  top: 10px;
  -webkit-transform: rotate(45deg);
}
a.cerrarbtn:after {
  content: "";
  display: block;
  height: 30px;
  width: 1px;
  background: #fff;
  position: absolute;
  left: 26px;
  top: 10px;
  -webkit-transform: rotate(-45deg);
}

a#despues1:after,
a#antes1:after {
  display: block;
  position: absolute;
  color: white;
  background-color: red;
  padding: 12px;
  margin: 45vh 74vw;
}

a#despues1:after {
  content: "DESPUÉS";
}

a#antes1:after {
  content: "ANTES";
  margin: 45vh 20vw;
}

a.cerrarbtn:hover {
  background: red;
}
.zoomimg:target {
  opacity: 1;
  top: 0;
  bottom: 0;
}
.zoomimg:target img {
  max-height: 100%;
  max-width: 100%;
}

.zoomimg:target a.cerrarbtn {
  position: relative;
  display: grid;
  margin: 0.5vh 73vw;
  top: 0vh;
}

@media (min-width: 300px) and (max-width: 799px) {
  .zoomimg img {
    width: 98%;
    margin: 7vh auto;
  }
  .zoomimg:target a.cerrarbtn {
    margin: 2.1vh auto;
  }
  #whats,
  #face,
  #inst,
  #yout {
    display: none;
  }
}

@media (min-width: 800px) and (max-width: 900px) {
  .zoomimg img {
    width: 61%;
    margin: 7vh auto;
  }
  .zoomimg:target a.cerrarbtn {
    margin: 0.2vh auto;
  }
  #whats,
  #face,
  #inst,
  #yout {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .zoomimg img {
    width: 70%;
    margin: 7vh auto;
  }
  .zoomimg:target a.cerrarbtn {
    margin: 1vh auto;
  }
}

@media (min-width: 1201px) and (max-width: 1366px) {
  .zoomimg img {
    width: 47%;
    margin: 6vh auto;
  }
  .zoomimg:target a.cerrarbtn {
    margin: 0.5vh auto;
  }
}

@media (min-width: 1367px) and (max-width: 1920px) {
  .zoomimg img {
    width: 48%;
    margin: 7vh auto;
  }
  .zoomimg:target a.cerrarbtn {
    margin: 1vh auto;
  }
}
