/* Publicidad y suscripciones - AIRES NUEVOS NQN */

/* Bloques limpios: sin líneas punteadas ni marcos de prueba */
.advertising-block-link,
.advertising-block-link-large,
.advertising-block-vertical,
.advertising-block-large,
.single-post-ad,
.anqn-ad-placeholder,
.anqn-inarticle-ad,
.anqn-inarticle-campaign,
.podcast-ad,
.podcast-ad-slot,
.podcast-ad-slot .advertising-block-large,
.podcast-ad-slot .advertising-block-link-large {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.anqn-ad-placeholder {
  background: #f4f5f7 !important;
  border-radius: 12px;
}

.advertising-block-link img,
.advertising-block-link-large img,
.advertising-block-vertical img,
.advertising-block-large img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Multimedia / Podcast: avisos compactos y legibles */
.podcast-ad-slot {
  width: 100%;
  margin: 14px auto;
  overflow: visible !important;
}

.podcast-ad-slot .advertising-block-link-large {
  display: block;
  width: min(100%, 760px) !important;
  margin: 0 auto !important;
  text-decoration: none;
}

.podcast-ad-slot .advertising-block-large,
.podcast-ad-slot .single-post-ad {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: auto !important;
  min-height: 88px !important;
  max-height: none !important;
  padding: 14px !important;
  overflow: visible !important;
  background: #f4f5f7 !important;
}

.podcast-ad-slot picture,
.podcast-ad-slot img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 150px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.podcast-ad-slot .typewriter-text,
.podcast-ad-slot .anqn-house-ad__panel,
.podcast-ad-slot .anqn-house-ad__panel * {
  position: static !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

/* Aviso cuadrado incorporado en secciones */
.anqn-section-cutral-ad {
  display: block;
  align-self: stretch;
  padding: 12px;
  border-radius: 16px;
  background: #f4f5f7;
  color: #111;
  text-decoration: none;
  overflow: hidden;
}

.anqn-section-cutral-ad span,
.anqn-latest-ad-card__label {
  display: block;
  margin-bottom: 8px;
  font: 800 10px/1 Inter, sans-serif;
  letter-spacing: .14em;
  color: #626974;
}

.anqn-section-cutral-ad img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

/* Publicidad intercalada en Últimas Noticias */
.anqn-latest-ad-card {
  display: grid;
  grid-template-columns: minmax(150px, 260px) 1fr;
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
  padding: 18px;
  border-radius: 18px;
  background: #f1f3f6;
  color: #111;
  text-decoration: none;
  overflow: hidden;
}

.anqn-latest-ad-card__media {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.anqn-latest-ad-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
}

.anqn-latest-ad-card h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  line-height: 1.05;
}

.anqn-latest-ad-card p {
  margin: 0;
  color: #59606b;
  line-height: 1.45;
}

/* Invitación de suscripción dentro de las notas */
.anqn-subscribe-prompt[hidden] { display: none !important; }
.anqn-subscribe-prompt {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 12, .68);
  backdrop-filter: blur(5px);
}

.anqn-subscribe-prompt__panel {
  position: relative;
  width: min(92vw, 620px);
  padding: clamp(24px, 5vw, 46px);
  border-radius: 24px;
  background: #fff;
  color: #111;
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.anqn-subscribe-prompt__eyebrow {
  margin: 0 0 10px;
  font: 800 11px/1 Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #59606b;
}

.anqn-subscribe-prompt h2 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: .98;
}

.anqn-subscribe-prompt p {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #515864;
}

.anqn-subscribe-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anqn-subscribe-prompt__actions a,
.anqn-subscribe-prompt__continue {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  font: 800 12px/44px Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.anqn-subscribe-prompt__actions a { background: #111; color: #fff; }
.anqn-subscribe-prompt__continue { background: #eceff3; color: #111; }
.anqn-subscribe-prompt__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .podcast-ad-slot { margin: 10px auto; }
  .podcast-ad-slot .advertising-block-link-large { width: min(94vw, 430px) !important; }
  .podcast-ad-slot .advertising-block-large,
  .podcast-ad-slot .single-post-ad {
    min-height: 74px !important;
    padding: 10px !important;
  }
  .podcast-ad-slot picture,
  .podcast-ad-slot img { max-height: 118px !important; }
  .podcast-ad-slot .anqn-house-ad__panel strong { font-size: 1.05rem !important; }
  .podcast-ad-slot .anqn-house-ad__panel span,
  .podcast-ad-slot .anqn-house-ad__panel small { font-size: .78rem !important; }

  .anqn-section-cutral-ad {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .anqn-latest-ad-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .anqn-latest-ad-card__media {
    min-height: 0;
    width: min(100%, 320px);
    margin: 0 auto;
  }
  .anqn-latest-ad-card img {
    width: auto;
    max-width: 100%;
    max-height: 260px;
    margin: 0 auto;
  }

  .anqn-subscribe-prompt__panel { padding: 34px 20px 22px; border-radius: 18px; }
  .anqn-subscribe-prompt__actions { display: grid; }
  .anqn-subscribe-prompt__actions a,
  .anqn-subscribe-prompt__continue { width: 100%; text-align: center; }
}

/* Corrección global: elimina únicamente líneas, bordes y contornos de los avisos. */
.single-post-page .advertising-block-vertical,
.single-post-page .advertising-block-link,
.single-post-page .advertising-block-link-large,
.single-post-page .advertising-block-large,
.single-post-page .single-post-ad,
.single-post-page [class*="advertising-block"],
.single-post-page [class*="ad-slot"],
.single-post-page [class*="ad-container"],
.single-post-page [class*="sidebar-ad"],
.category-page .advertising-block-vertical,
.category-page .advertising-block-link,
.category-page .advertising-block-link-large,
.category-page .advertising-block-large,
.category-page [class*="advertising-block"],
.category-page [class*="ad-slot"],
.category-page [class*="ad-container"],
.category-page [class*="sidebar-ad"] {
  border: 0 !important;
  border-style: none !important;
  outline: 0 !important;
}

.single-post-page .advertising-block-vertical::before,
.single-post-page .advertising-block-vertical::after,
.single-post-page [class*="advertising-block"]::before,
.single-post-page [class*="advertising-block"]::after,
.single-post-page [class*="ad-slot"]::before,
.single-post-page [class*="ad-slot"]::after,
.single-post-page [class*="ad-container"]::before,
.single-post-page [class*="ad-container"]::after,
.category-page .advertising-block-vertical::before,
.category-page .advertising-block-vertical::after,
.category-page [class*="advertising-block"]::before,
.category-page [class*="advertising-block"]::after,
.category-page [class*="ad-slot"]::before,
.category-page [class*="ad-slot"]::after,
.category-page [class*="ad-container"]::before,
.category-page [class*="ad-container"]::after {
  border: 0 !important;
  outline: 0 !important;
}
