﻿/* Estilos modales 
.popup-suscribete {
  display: none;
  background-color: #fff;
  background-image: url(../Style\ Library/imagenes/popup_bg.jpeg);
  background-position: center;
  background-size: cover;
  font-family: var(--primary-font-family);
  text-align: center;
  border-radius: 10px;
  padding: 1em;
  position: fixed;
  max-width: 450px;
  width: 100%;
  height: auto;
  z-index: 999;
  left: calc(50% - 225px);
  top: calc(40% - 250px);
  -webkit-box-shadow: 0px 0px 57px -10px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 57px -10px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 57px -10px rgba(0,0,0,0.75);
  transition: top 0.2s ease-in 0s;
}
.popup-suscribete.active {
  display: block;
  top: calc(50% - 180px);
}

.popup-suscribete .popup-header,
.popup-suscribete .popup-body,
.popup-suscribete .popup-footer{
  position: relative;
  padding: .5rem 1rem;
}
#popupSuscribeteLogin.popup-suscribete .popup-body,
.login-container .login-body {
  border-bottom: 1px solid #cdcdcd;
}
#popupSuscribete.popup-suscribete .popup-header {
  border-bottom: 1px solid #cdcdcd;
}
.popup-suscribete .popup-row {
  width: 100%;
}

.popup-suscribete .cerrar-popup {
  position: absolute;
  top: 0px;
  right: 0;
  border: 0;
  width: 39px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  border-radius: 5px;
}
.popup-suscribete .cerrar-popup:hover,
.popup-suscribete .cerrar-popup:focus {
  background-color: var(--color-primary);
}
.popup-suscribete .cerrar-popup:hover::after,
.popup-suscribete .cerrar-popup:focus::after {
  border-top: 3px solid  var(--color-white);
}
.popup-suscribete .cerrar-popup:hover::before,
.popup-suscribete .cerrar-popup:focus::before {
  border-left: 3px solid var(--color-white);
}
.popup-suscribete .cerrar-popup::after {
  content: "";
  border-top: 3px solid  var(--color-primary);
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(45deg);
  position: absolute;
  top: calc(50% - 6px);
  right: calc(50% - 6px);
}
.popup-suscribete .cerrar-popup::before {
  content: "";
  border-left: 3px solid var(--color-primary);
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(45deg);
  position: absolute;
  top: calc(50% - 6px);
  left: calc(50% - 7px);
}
.popup-suscribete h2{
  font-size: 2.5rem;
  margin: 0.5em 0;
  color: var(--color-primary);
}
#popupBaja h2,
#popupRegistro h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0.5em 0;
}
.popup-suscribete .bt-popup{
  margin: 1em;
  padding: .5rem 1rem;
  background-color: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
}
.popup-suscribete .bt-popup:hover,
.popup-suscribete .bt-popup:visited{
  background: var(--color-hoverContrast);
}
.popup-suscribete a {
  color: var(--color-black);
  text-decoration: none;
  border-bottom: 0;
  font-weight: var(--font-weight-regular);
}
.popup-suscribete a:hover {
  border-bottom: 1px solid var(--color-secondary);
}
.popup-suscribete input{
  width: 100%;
  margin-bottom: 1em;
}

@media only screen and (max-width: 500px) {
    .popup-suscribete {
      max-width: none;
      margin: 0 30px;
      width: calc(100% - 60px);
      left: 0; }
      .popup-suscribete .bt-popup {
        width: calc(100% - 2em); 
        max-width: 180px; }
      .popup-suscribete a {
        width: 50%;
        white-space: nowrap;
        margin: 0 auto; }
      .popup-suscribete h2 {
        font-size: 2.5rem;
        margin: 0 auto; }
      #popupBaja h2,
      #popupRegistro h2 {
        font-size: 2rem;
        margin: 0 auto;
        margin-top: 25px; } }

/* Overlay */
#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #000;
  opacity: 0;
  z-index: -1;
  transition: all 0.3s;
}
#overlay.active {
  opacity: 0.4;
  z-index: 998;
}