/* Publicidad editorial CDM — discreta, alineada al tema */

.cdm-promo {
  position: relative;
  clear: both;
}

.cdm-promo__label {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a87c;
  background: rgba(201, 168, 124, 0.12);
  border: 1px solid rgba(201, 168, 124, 0.22);
}

/* Banner en pilares */
.cdm-promo--banner {
  max-width: 1200px;
  margin: 0 auto 1.75rem;
  padding: 0 20px;
}

.cdm-promo-banner__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  background: linear-gradient(135deg, rgba(0, 78, 137, 0.16) 0%, rgba(12, 12, 14, 0.92) 55%, rgba(139, 0, 0, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cdm-promo-banner__link:hover {
  border-color: rgba(0, 78, 137, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.cdm-promo-banner__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 148px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.cdm-promo-banner__media img {
  display: block;
  width: auto;
  max-width: 128px;
  max-height: 34px;
  object-fit: contain;
}

.cdm-promo-banner__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.cdm-promo-banner__title {
  font-size: 1rem;
  line-height: 1.3;
  color: #f2ece2;
}

.cdm-promo-banner__text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #a39a8d;
}

.cdm-promo-banner__cta {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #004e89 0%, #003a66 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Tarjeta en grid de pilares */
.cdm-promo--card {
  border-color: rgba(0, 78, 137, 0.28) !important;
}

.cdm-promo--card .cdm-post-thumbnail img {
  filter: none;
}

.cdm-promo--card .cdm-post-category {
  color: #7eb8e8;
}

.cdm-promo-card__cta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.cdm-promo-card__cta a {
  color: #7eb8e8 !important;
  text-decoration: none !important;
}

.cdm-promo-card__cta a:hover {
  color: #a8d4f5 !important;
}

/* Bloque en artículos */
.cdm-promo--inline {
  max-width: 640px;
  margin: 1.75rem auto;
  padding: 0 12px;
}

.cdm-promo-inline__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cdm-promo-inline__link:hover {
  border-color: rgba(0, 78, 137, 0.4);
  background: linear-gradient(180deg, rgba(0, 78, 137, 0.1), rgba(0, 0, 0, 0.24));
}

.cdm-promo-inline__media {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.cdm-promo-inline__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdm-promo-inline__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cdm-promo-inline__title {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #f2ece2;
}

.cdm-promo-inline__text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #a39a8d;
}

.cdm-promo-inline__cta {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7eb8e8;
}

@media (max-width: 768px) {
  .cdm-promo-banner__link {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .cdm-promo-banner__media {
    width: 120px;
  }

  .cdm-promo-banner__cta {
    width: 100%;
    text-align: center;
  }

  .cdm-promo-inline__media {
    width: 60px;
    height: 60px;
  }
}
