.apertura,
.apertura * {
  box-sizing: border-box;
}

#apertura {
  height: auto;
}

.apertura_contenedor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  text-align: center;
}

.apertura_imagen {
  background: #000;
  position: relative;
  order: 1;
  width: 100%;
  min-height: 200px;
}

.apertura_imagen img,
.apertura_imagen video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.apertura_imagen video.escritorio {
    display: none
}

.apertura_imagen span {
  position: absolute;
  top: calc(100% + 10px);
  left: 10px;
  color: #878787;
  font-size: 12px;
  line-height: 1;
  font-family: MarcinAntB;
  font-weight: normal;
  z-index: 1;
}

.apertura_texto h1 {
  font-family: MajritBn;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  font-size: 35px;
  letter-spacing: -0.5px;
  color: black;
  margin: 25px auto 0;
  opacity: 0;
  visibility: hidden;
  animation: opacidad 0.5s forwards;
  animation-delay: 0.5s;
}

.apertura_texto h2:after {
  content: '';
  display: block;
  width: 33px;
  height: 1px;
  background: black;
  margin: 25px auto;
}

.apertura_texto {
  margin: 50px auto;
  padding: 0px 20px;
}

.apertura_texto h2 {
  font-family: MajritBn;
  font-style: normal;
  font-weight: 300;
  line-height: 1.5;
  font-size: 26px;
  letter-spacing: -0.30px;
  color: black;
  max-width: 310px;
  margin: 0 auto 25px;
  opacity: 0;
  visibility: hidden;
  animation: opacidad 0.5s forwards;
  animation-delay: 0.15s;
}

.apertura_play {
  display: block;
  width: 90px;
  margin: 0 auto 50px;
}

.apertura_play span {
  display: block;
  width: 88px;
  margin: 0 auto;
}

.apertura_play svg polygon {
  opacity: 0;
  animation: opacidad 0.5s forwards;
  animation-delay: 2s;
}

.apertura_play svg circle {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: linea 0.75s linear forwards;
  animation-delay: 1.5s;
}

.apertura_play strong {
  font-family: MarcinAntB;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  color: black;
  display: block;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  animation: opacidad 0.5s forwards;
  animation-delay: 2s;
  width: 220px;
  transform: translateX(-50%);
  position: relative;
  left: 50%;
}

.apertura .bajar {
  display: none;
  text-align: left;
  margin: 20px auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: visible;
  animation: bajar 3s infinite 2s, opacidad 1s forwards 2s;
}

.apertura .bajar span {
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  width: 15px;
  height: 15px;
  border-top: 1px solid black;
  border-right: 1px solid black;
  transform: rotate(135deg);
}

.apertura_video {
  background: black;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s;
  overflow: hidden;
  padding-top: 50px;
  box-sizing: border-box;
}

.apertura_video.activo {
  opacity: 1;
  visibility: visible;
  z-index: 110;
  position: fixed;
}

.apertura_video_cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  color: white;
  cursor: pointer;
  text-indent: -6666rem;
  overflow: hidden;
  z-index: 9;
}

.apertura_video_cerrar:after,
.apertura_video_cerrar:before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.apertura_video_cerrar:before {
  transform: translateX(-50%) rotate(135deg);
}

.apertura_video_contenido {
  display: block;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.apertura_video_iframe {
  height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 980px;
  margin: auto;
}

.a .a_k,
.a .a_t {
  display: none;
}

.a .a_e {
  background: black;
  color: white;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 25px 25px 10px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.a .a_e .a_st {
  color: white;
  line-height: 1.4;
  max-width: 450px;
}

/*
  SWIPER
*/
.swiper {
  position: relative;
  overflow: hidden;
  list-style: none;
  z-index: 1;
  width: 100%;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-android .swiper-slide,
.swiper-wrapper {
  transform: translate3d(0px,0,0);
}

.swiper-pointer-events {
  touch-action: pan-y;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  padding-top: 0;
}

.swiper-slide-invisible-blank {
  visibility: hidden;
}

.swiper-css-mode>.swiper-wrapper {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.swiper-horizontal.swiper-css-mode>.swiper-wrapper {
  scroll-snap-type: x mandatory;
}

.swiper-button-lock {
  display: none;
}

.swiper-pagination.swiper-pagination-hidden {
  opacity: 0;
}

.swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.swiper-pagination-bullet {
  cursor: pointer;
  width: 20px;
  height: 20px;
  margin: 0 2px;
  display: block;
  position: relative;
}

.swiper-pagination-bullet:before {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4a4a4a;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  transition: all 0.15s;
}

.swiper-pagination-bullet-active:before {
  width: 7px;
  height: 7px;
  background: #00b1ff;
}

.swiper-button-next,
.swiper-button-prev {
  width: 42px;
  height: 42px;
  z-index: 10;
  cursor: pointer;
  display: block;
  align-items: center;
  justify-content: center;
  text-indent: -9999px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  top: 38%;
  display: none;
  opacity: 0.75;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  display: none;
  cursor: auto;
  pointer-events: none;
}

.swiper-button-next {
  background-image: url('../img/next.svg?v2');
  right: 10px;
}

.swiper-button-prev {
  background-image: url('../img/prev.svg?v2');  
  left: 10px;
}

.galeria_imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.galeria_imagen.vertical img {
  width: 48.25%;
  margin-left: auto;
  margin-right: auto;
}

.galeria_pie {
  padding-top: 10px;
}

.galeria_pie p {
  margin: 0;
  color: #111;
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

.galeria_pie p strong {
  display: block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}


@media (min-width: 768px){
  .apertura_contenedor {
    min-height: calc(100vh - 53px);
    max-height: calc(100vh - 53px);
    flex-direction: row;
    align-items: normal;
  }

  .apertura_texto h2,
  .apertura_texto h1 {
    margin: 0px auto;
  }

  .apertura_imagen {
    order: 0;
    width: 50%;
    position: relative;
  }

  .apertura_imagen:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    animation: width 1s 1s forwards;
  }

  .apertura_imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .apertura_imagen video.escritorio {
        display:block
  }

  .apertura_imagen video.movil {
        display: none
  }

  .apertura_texto {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .a .a_e {
    padding-top: 40px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: block;
  }
    
}

@media (min-width: 1001px){
  .apertura_imagen img {
    max-height: calc(100vh - 53px);
  }

  .apertura_texto {
    position: relative;
  }

  .apertura_texto h1 {
    font-size: 53px;
    letter-spacing: -0.7px;
    margin-top: auto;
    max-width: 480px;
  }

  .apertura_texto h2 {
    font-size: 28px;
    letter-spacing: -0.31px;
  }

  .apertura_play {
    margin-bottom: auto;
  }

  .apertura .bajar {
    display: block;
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: -11px;
  }

  .apertura .bajar span {
    width: 22px;
    height: 22px;
  }

  .a .a_e {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .a .a_e .a_st {
    max-width: 800px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    top: 41.5%;
  }

  .galeria_pie p {
    font-size: 14px;
    line-height: 18px;
  }

  .galeria_pie p strong {
    font-size: 12px;
  }

}

@media (min-width: 1199px){
  .apertura_video_iframe {
    width: calc(100vw - 100px);
    max-width: 1280px;
  }  
}

@media (min-width:  1440px) {
  .apertura_texto h1 {
    font-size: 60px;
    max-width: 570px;
  }
}

/* ANIMACIONES */
@keyframes bajar {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-2.5px);
  } 
}

@keyframes opacidad {
  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes width {
  100% {
    width: 0;
  }
}

@keyframes linea {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}