/* Scoped to bf.html. The designer's unmodified poster is 1040 × 1300. */
#promoModal {
  box-sizing: border-box;
  padding: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  align-items: center;
  justify-content: center;
}
/* Bootstrap 3's .show sets display:block !important. */
#promoModal.show { display: flex !important; }
#promoModal .promo-card {
  width: min(520px, 100%, calc((100vh - 48px) * .8));
  width: min(520px, 100%, calc((100dvh - 48px) * .8));
  max-width: 100%;
  max-height: none;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  animation: none;
  container-type: inline-size;
}
#promoModal .promo-hero { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: 4 / 5; overflow: visible; border-radius: 0; background: #1a0302; }
#promoModal .promo-hero img { width: 100%; height: 100%; object-fit: contain; }
#promoModal .promo-hero::after { display: none; }
/* Free artwork area: below y=978 and above the legal line at y=1205. */
#promoModal .promo-content {
  position: absolute; top: 75.3%; left: 10%; right: 10%;
  padding: 0; background: transparent;
  font-size: clamp(10px, 2.6cqw, 14px); line-height: 1.15;
}
#promoModal .promo-countdown-block { margin: 0 0 1cqw; }
#promoModal .promo-countdown-caption { display: block; margin: 0 0 1cqw; font-size: inherit; color: #fff; }
#promoModal .promo-countdown { display: flex; justify-content: center; gap: 2cqw; margin: 0; }
#promoModal .promo-unit { display: flex; flex-direction: row; align-items: center; gap: .5cqw; }
#promoModal .promo-clock-box { min-width: 7cqw; height: 6cqw; padding: 0 1cqw; font-size: 4cqw; border-radius: 1cqw; }
#promoModal .promo-unit-label { font-size: max(9px, 2cqw); line-height: 1; color: #fff; }
#promoModal .promo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; margin: 0; align-items: stretch; }
#promoModal .promo-main-cta, #promoModal .promo-second-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: none; height: auto; min-height: 32px; padding: 1cqw; margin: 0;
  font-size: max(11px, 2.8cqw); line-height: 1.15;
  border-radius: 1.5cqw; animation: none; letter-spacing: 0;
}

/* Botón de inscripción - Negro */
#promoModal .promo-main-cta {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #333333;
  box-shadow: none;
}

#promoModal .promo-main-cta:hover {
  background: #292929 !important;
  color: #ffffff !important;
}

/* Botón de WhatsApp - Verde */
#promoModal .promo-second-cta {
  background: #25D366 !important;
  color: #092E16 !important;
  border: 1px solid #25D366;
  box-shadow: none;
}

#promoModal .promo-second-cta:hover {
  background: #1EBE5D !important;
  color: #092E16 !important;
}
#promoModal .promo-close { top: 4px; right: 4px; width: 32px; height: 32px; background: #240806; color: #fff; }
/* Top bar stays in document flow above the institutional navigation. */
.info-bar { position: relative; z-index: 10; }
#sticker:not(.stick) { position: relative; top: auto; margin-top: 0; background-color: #171717; }
.info-bar + header { min-height: 70px; }
.info-bar-inner { gap: 12px; padding: 10px 20px; }
.info-bar-contact, .info-bar-social, .info-bar-promo { align-items: center; }
.info-bar-contact { gap: 12px; font-size: 12px; }
.info-bar-promo { gap: 12px; }
.info-bar .promo-lava { font-family: inherit; cursor: pointer; }
.info-bar .promo-timer { display: inline-flex; }
.info-bar .promo-cta { justify-content: center; min-height: 32px; }
.info-bar-promo[hidden] { display: none; }
.info-bar .promo-lava:focus-visible, #promoModal a:focus-visible, #promoModal button:focus-visible { outline: 3px solid #ffc24d; outline-offset: 2px; }
@media (min-width: 768px) and (max-width: 1199px) {
  .info-bar-inner { justify-content: space-between; }
  .info-bar-contact { flex-wrap: wrap; gap: 4px 12px; }
  .info-bar-promo { margin-left: 0; }
}
@media (max-width: 767px) {
  .info-bar-inner { gap: 10px; padding: 10px 12px; }
  .info-bar-promo { flex: 1 1 100%; justify-content: center; gap: clamp(8px, 3vw, 16px); }
  .info-bar .promo-lava { gap: 4px; padding: 4px 7px; }
  .info-bar .promo-timer { gap: 3px; }
  .info-bar .promo-clock-box { min-width: 26px; height: 26px; padding: 0 4px; font-size: 13px; }
  .info-bar .promo-fire { font-size: 14px; }
  .info-bar .promo-cta { height: 34px; padding: 0 10px; font-size: 12px; }
  .info-bar .promo-clock-sep { font-size: 12px; }
  .info-bar-contact { font-size: 11px; }
  .info-bar-social { gap: 9px; }
}
/* Very short viewports: keep controls readable and reachable using a separate
   accessible controls row instead of shrinking the buttons indefinitely. */
@media (max-height: 480px), (max-width: 319px) {
  #promoModal { overflow: auto; }
  #promoModal.show { display: block !important; }
  #promoModal .promo-card { width: min(100%, 360px); margin: 12px auto; aspect-ratio: auto; }
  #promoModal .promo-hero { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; }
  #promoModal .promo-content { position: relative; top: auto; left: auto; right: auto; padding: 12px; background: #1a0302; }
  #promoModal .promo-actions a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { #promoModal.show { animation: none; } }

/* Estados de campana: hidden prevalece sobre los estilos flex de Bootstrap. */
.info-bar .promo-timer[data-promo-countdown][hidden],
#promoModal .promo-countdown-block[data-promo-countdown][hidden],
[data-promo-open][hidden],
#promoModal .promo-actions a[hidden] { display: none !important; }
.info-bar .promo-lava { flex-wrap: wrap; justify-content: center; max-width: 100%; }
.info-bar .promo-current { font-size: 14px; font-weight: 700; }
.info-bar .promo-timer { flex-wrap: wrap; justify-content: center; }
.info-bar .promo-timer-label { display: block; flex: 1 0 100%; font-size: 12px; letter-spacing: 0; white-space: normal; }
.info-bar-promo { flex-wrap: wrap; }
.promo-slide-status { margin: 0; padding: 10px; background: #240806; color: #fff; text-align: center; font-weight: 700; font-size: 16px; }
#promoModal .promo-card {
  margin-top: 76px;
  width: min(520px, 100%, calc((100vh - 124px) * .8));
  width: min(520px, 100%, calc((100dvh - 124px) * .8));
}
#promoModal .promo-live-status {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max(100%, 260px); max-width: calc(100vw - 24px); padding: 8px;
  background: #240806; color: #fff; border: 1px solid #ff7500; border-radius: 8px;
  font-size: 14px; line-height: 1.3;
}
#promoModal .promo-live-status strong, #promoModal .promo-live-status span { display: block; }
/* En horizontal se distribuyen imagen y controles, sin recortar el cartel ni usar scroll. */
@media (max-height: 480px), (max-width: 319px) {
  #promoModal { overflow: visible; }
  #promoModal.show { display: flex !important; }
  #promoModal .promo-card {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
    width: min(680px, 100%); margin: 0; aspect-ratio: auto; max-height: calc(100dvh - 24px);
    background: #1a0302;
  }
  #promoModal .promo-hero { grid-column: 1; grid-row: 1 / 3; position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: calc(100dvh - 24px); }
  #promoModal .promo-live-status { grid-column: 2; position: static; transform: none; width: auto; max-width: none; margin: 4px; padding: 4px; font-size: 12px; }
  #promoModal .promo-content { grid-column: 2; position: static; padding: 6px; font-size: 12px; }
  #promoModal .promo-actions { grid-template-columns: 1fr; }
  #promoModal .promo-actions a { min-height: 32px; font-size: 12px; }
  #promoModal .promo-close { z-index: 3; }
}
