

/* =========  IMPRESINDIBLES  ======== */

#modal {
  position: fixed;
  top: 0;
  display: block;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  bottom: 0;
  width: 40%;
  height: 90vh;
  min-width: 300px;
  left: 0;
  right: 0;
  margin: 4vh auto;
  border-radius: 13px;
  transition: all 0.2s;
  z-index: 999;
}

#modal .wrap {
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
  box-shadow: 0 5px 100px 10px rgba(0, 16, 21, 0.5),
    0 50px 100px -50px rgba(0, 0, 0, 0.5) inset;
  border: 1px solid #fff;
  padding: 1em 0.8em;
  border-radius: 13px;
}

#modal.modal-open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

#modal.big {
  width: 80%;
}

#modal:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
    border-radius: 13px;
  top: 0;
  left: 0;
  z-index: -1;
}
#modal h2 {
  font-size: 2em;
  margin-top: -10px;
}
#modal iframe {
  width: 100%;
 height: calc(90vh - 1.5em);
 /* height: 90vh;*/
  /*height: calc(22vw + 12em);*/
}

.hidden {
  display: none;
}
.blur {
  filter: blur(32px);
}


/* =========  BOTONES  ======== */

.abrir {
  position: absolute;
  z-index: 30;
  width: 56px;
  height: 56px;
  border: 1px solid #fff;
  background: transparent;
    right: 15px;
    bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
}
.abrir span {
  display: block;
  position: absolute;
  width: 40px;
  height: 1px;
  background: #fff;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  cursor: pointer;
}
.abrir .lin3 {
  transform-origin: center;
  transform: rotate(0deg);
}
.abrir .lin4 {
  transform-origin: center;
  transform: rotate(90deg);
}
.abrir:hover {
  background: rgba(255, 255, 255, 0.4);
}
.abrir:hover span {
  background: #fff;
}


.close {
  position: absolute;
  z-index: 5000;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  top: 0;
  bottom: 0;
 right: -62px;
  top: -22px; 
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  z-index: 100;
}
.close span {
  display: block;
  position: absolute;
  width: 40px;
  height: 1px;
  background: #fff;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  cursor: pointer;
}
.close .lin1 {
  transform-origin: center;
  transform: rotate(45deg);
}
.close .lin2 {
  transform-origin: center;
  transform: rotate(-45deg);
}
.close:hover {
  background: #fff;
}
.close:hover span {
  background: #000;
}

/* ======= FIN BOTON ================ */

/*  #Mobile (Portrait)                                      < 370
=================================================================== */
@media only screen and (max-width: 1100px) {

#modal {
  top: -54px;
  width: 100vw;
  height: 100vh;
}
#modal .wrap {
  padding:0;
  border-radius: 0px;
}

#modal.big {
  width: 100vw;
   height: 100vh;
}

#modal iframe {
  width: 100vw;
  height: 100vh;
}

.close {
 right: 32px;
  top: 10px; 
  background: rgba(34, 34, 34, 0.7);
  }
.close span {
  color: #888
}
}







/*  #Mobile (Portrait)                                      < 370
=================================================================== */
@media only screen and (max-width: 880px) {

#modal {
  top: -50px;
  width: 100vw;
  height: 100vh;
}
#modal .wrap {
  padding:0;
  border-radius: 0px;
}

#modal.big {
  width: 100vw;
   height: 100vh;
}

#modal iframe {
  width: 100vw;
  height: 100vh;
}

.close {
 right: 32px;
  top: 10px; 
  background: rgba(34, 34, 34, 0.7);
  }
.close span {
  color: #888
}
}





/*  #Mobile (Portrait)                                      < 370
=================================================================== */
@media only screen and (max-width: 480px) {

#modal {
  top: -30px;
  width: 100vw;
  height: 100vh;
}
#modal .wrap {
  padding:0;
  border-radius: 0px;
}

#modal.big {
  width: 100vw;
   height: 100vh;
}

#modal iframe {
  width: 100vw;
  height: 100vh;
}

.close {
 right: 32px;
  top: 10px; 
  background: rgba(34, 34, 34, 0.7);
  }
.close span {
  color: #888
}
}


@media only screen and (max-width: 375px) {
 #modal {
  top: -20px;
} 
.close {
 right: 22px;
  top: 12px; 
  }
}
  