/* Popup de bienvenida */
body.promo-open {
  overflow: hidden;
}

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.promo-popup.is-open {
  display: flex;
}

.promo-popup__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(2, 23, 56, .72);
}

.promo-popup__dialog {
  position: relative;
  width: min(100%, 1000px, calc((100vh - 84px) * 1.777));
  width: min(100%, 1000px, calc((100dvh - 84px) * 1.777));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: visible;
  background-color: transparent;
  animation: promoPopIn .45s ease both;
}

@keyframes promoPopIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.promo-popup__media {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background-color: #ffffff;
  box-shadow: 0 30px 70px rgba(2, 23, 56, .28);
}

.promo-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 84px);
  max-height: calc(100dvh - 84px);
  object-fit: contain;
}

.promo-popup__actions {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.promo-popup__close {
  position: static;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background-color: var(--bg-white, #ffffff);
  color: var(--title-color, #021738);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(2, 23, 56, .18);
  transition: all .3s ease;
}

.promo-popup__close:hover {
  background-color: var(--brand-color, #F94D1C);
  color: var(--bg-white, #ffffff);
}

[data-bs-theme="dark"] .promo-popup__close {
  background-color: #1E1D1D;
  color: #ffffff;
}

@media (max-width: 767px) {
  .promo-popup__media {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-popup__dialog {
    animation: none;
  }

  .promo-popup__close {
    transition: none;
  }
}
