/* Popup promocional de imagen - Infinity Run 2026 */
.ir-promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 8, 24, 0.75);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.ir-promo-overlay.is-open { display: flex; }

.ir-promo-media {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
}

.ir-promo-img {
  display: block;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  /* Techo de diseno CSS: 1774px. NO es resolucion nativa del asset (el webp se exporta a ~3548px, 2x, para pantallas retina/DPR2); nunca se escala por sobre este techo en CSS. */
  max-width: min(90vw, 1774px);
  max-height: min(85vh, 887px);
  width: auto;
  height: auto;
}

/* Escritorio real (no tablet en landscape, que se queda en la regla de arriba
   y no se toca). En pantallas anchas 90vw se pegaba casi al borde y se leia
   como pantalla completa. Bajamos a 65vw para que quede un tamaño prudente
   con aire real a los 4 lados (a 1920px = 1248px de ancho ~ 65%). El techo
   de diseno CSS (1774px, no resolucion nativa del asset) sigue vigente pero aqui no limita porque
   estamos achicando, no agrandando. */
@media (min-width: 1200px) {
  .ir-promo-img {
    max-width: min(65vw, 1774px);
  }
}

.ir-promo-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #1e1432;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.ir-promo-close:hover { background: #f2f0f7; }

@media (max-width: 767.98px) {
  .ir-promo-img {
    /* Techo = resolucion nativa del asset vertical (864px de ancho). Bajado
       de 88vw a 76vw: antes quedaba casi borde a borde (justo pegado al
       padding del overlay); asi se nota que es un popup sobre la pagina. */
    max-width: min(76vw, 864px);
    max-height: min(80vh, 1821px);
    border-radius: 12px;
  }
  .ir-promo-close {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
