/* ══════════════════════════════════════════════
   HiperDiario Ads Optimizer — Estilos
══════════════════════════════════════════════ */

/* ── Contenedor general ── */
.hda-ad-unit {
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
}

/* Etiqueta "Publicidad" discreta (requerida por políticas AdSense) */
.hda-ad-unit::before {
  content: 'Publicidad';
  display: block;
  font-size: 10px;
  color: #999;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: system-ui, sans-serif;
}

/* ── Banner Header ── */
.hda-header-wrap {
  width: 100%;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .hda-header-wrap {
    background: #111;
    border-bottom-color: #222;
  }
}

.hda-ad--header {
  max-width: 970px;
  margin: 0 auto;
}

/* ── In-Article ── */
.hda-ad--in-article {
  margin: 28px auto;
  padding: 0;
  max-width: 100%;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}

@media (prefers-color-scheme: dark) {
  .hda-ad--in-article {
    border-color: #2a2a2a;
  }
}

/* ── Sidebar ── */
.hda-ad--sidebar {
  margin: 0 auto 16px;
}

/* ── Sticky Footer ── */
.hda-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);

  /* Solo visible en móvil por defecto */
  display: none;
}

@media (prefers-color-scheme: dark) {
  .hda-sticky-footer {
    background: rgba(10,10,15,.96);
    border-top-color: #2a2a2a;
  }
}

/* Mostrar en móvil */
@media (max-width: 768px) {
  .hda-sticky-footer {
    display: block;
  }
}

.hda-sticky-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.hda-sticky-close:hover {
  color: #333;
  background: rgba(0,0,0,.08);
}

/* ── Shortcode ── */
.hda-ad--shortcode {
  margin: 20px auto;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hda-ad--header { display: none; } /* Ocultar header banner en móvil muy pequeño */
}
