/* Dengue.com.py — Banners CSS (Fase 17) */

.dengue-banner {
  text-align: center;
  margin: 1rem 0;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.dengue-banner img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.dengue-banner-label {
  display: block;
  font-size: 10px;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  margin-top: 0;
}

/* HEADER_TOP - debajo del navbar */
.dengue-banner-header_top {
  margin: 0.5rem 0 1rem;
  padding: 8px 0;
  background: #f8f9fa;
  border-radius: 4px;
}

/* SIDEBAR - sticky en desktop */
.dengue-banner-sidebar_top,
.dengue-banner-sidebar_bottom {
  margin: 0 0 1rem;
}

/* IN_CONTENT - destacar levemente */
.dengue-banner-in_content {
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

/* ARTICLE - margin generoso */
.dengue-banner-article_top,
.dengue-banner-article_body,
.dengue-banner-article_end {
  margin: 1.5rem 0;
}

/* FOOTER_TOP */
.dengue-banner-footer_top {
  margin: 1.5rem 0 0.5rem;
  padding: 8px 0;
  background: #f8f9fa;
  border-radius: 4px;
}

/* MOBILE_STICKY - solo mobile, fixed bottom */
.dengue-banner-mobile_sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  z-index: 1040;
  padding: 4px;
  margin: 0;
  text-align: center;
}

.dengue-banner-mobile_sticky .dengue-banner-label {
  font-size: 9px;
}

/* Botón cerrar para sticky */
.dengue-banner-mobile_sticky::before {
  content: '×';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 20px;
  line-height: 20px;
  color: #6c757d;
  cursor: pointer;
  width: 24px;
  height: 24px;
  text-align: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  z-index: 2;
}

/* Cuando el sticky está cerrado */
.dengue-banner-mobile_sticky.closed {
  display: none;
}

/* En desktop, MOBILE_STICKY no se muestra nunca */
@media (min-width: 768px) {
  .dengue-banner-mobile_sticky {
    display: none !important;
  }
}

/* En mobile, agregar padding-bottom al body para no tapar contenido */
@media (max-width: 767px) {
  body.has-mobile-sticky {
    padding-bottom: 60px;
  }
}

/* INTERSTITIAL - modal full-screen */
.dengue-banner-interstitial {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
}

.dengue-banner-interstitial img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

.dengue-banner-interstitial::before {
  content: '×';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}

.dengue-banner-interstitial.closed {
  display: none !important;
}
