/* ============================================================
   CLUSTER-NEW.CSS — Cluster page restyle
   Loaded AFTER styles.css to override legacy rules.
   Targets only: .newsletter-box, .cluster-header h3,
   .sidebar-card/.sidebar-card-title, .destacado-item/.destacado-titulo
   Does NOT touch: narrar/podcast player, sesgo bar, bell, premium lock.
   ============================================================ */

/* ===== 1. BOLETÍN CARD ===== */

.newsletter-box {
  text-align: left;
  margin-top: 24px;
  padding: 24px;
  background: rgba(232, 160, 32, 0.05);
  border: 2px dashed #E8A020;
  border-radius: 14px;
}

.newsletter-box .nl-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E8A020;
  margin-bottom: 6px;
}

.newsletter-box h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  color: #111;
}

.newsletter-box p {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin: 0 0 14px;
}

.newsletter-box input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.newsletter-box input[type="email"]:focus {
  outline: none;
  border-color: #E8A020;
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.18);
}

.newsletter-box button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: #E8A020;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.newsletter-box button:hover {
  background: #d18f12;
}

.newsletter-box .newsletter-msg {
  font-size: 12px;
  margin-top: 6px;
  color: #6b7280;
}

.newsletter-box .nl-unsub {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter-box .nl-unsub:hover {
  color: #111;
}

/* Dark mode — boletín */
body.dark .newsletter-box {
  background: rgba(232, 160, 32, 0.06);
  border-color: #E8A020;
}

body.dark .newsletter-box h4 {
  color: #e5e7eb;
}

body.dark .newsletter-box p {
  color: #9ca3af;
}

body.dark .newsletter-box input[type="email"] {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

body.dark .newsletter-box input[type="email"]:focus {
  border-color: #E8A020;
}

body.dark .newsletter-box .newsletter-msg {
  color: #9ca3af;
}

body.dark .newsletter-box .nl-unsub {
  color: #6b7280;
}


/* ===== 2. CLUSTER TITLE ===== */

.cluster-header h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #111;
  margin: 0;
}

/* Dark mode — title */
body.dark .cluster-header h3 {
  color: #f9fafb;
}


/* ===== 3. SIDEBAR CARDS (Noticias recientes / relacionadas) ===== */

.sidebar-card {
  display: block;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 12px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.sidebar-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-card img {
  width: 100%;
  border-radius: 7px;
  display: block;
  margin-bottom: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sidebar-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: #111827;
  text-decoration: none;
}

/* Dark mode — sidebar cards */
body.dark .sidebar-card {
  background: var(--bg-card, #161a22) !important;
  border-color: var(--border-soft, #2a2f3a) !important;
  box-shadow: none !important;
}

body.dark .sidebar-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

body.dark .sidebar-card-title {
  color: var(--text-main, #e5e7eb) !important;
}


/* ===== 3b. DESTACADOS GRID ===== */

.destacado-item {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.destacado-item:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
}

.destacado-titulo {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.2px !important;
  color: #111827 !important;
}

.destacado-footer {
  font-size: 12px;
  color: #6b7280;
}

/* Dark mode — destacados */
body.dark .destacado-item,
body.dark .cluster-destacados-grid .destacado-item {
  background: var(--bg-card, #161a22) !important;
  border-color: var(--border-soft, #2a2f3a) !important;
}

body.dark .destacado-item:hover,
body.dark .cluster-destacados-grid .destacado-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

body.dark .destacado-titulo,
body.dark .cluster-destacados-grid .destacado-titulo {
  color: var(--text-main, #e5e7eb) !important;
}

body.dark .destacado-footer {
  color: #9ca3af;
}


/* ===== PROMO BANNER (cluster page) =====
   Rules duplicated from home-new.css — cluster-new.css is loaded instead of
   home-new.css on cluster pages, so both files carry the same visual rules.
   On cluster pages the banner sits outside #home-redesign, hence unscoped. */

/* .promo-hidden is also declared in home-new.css; whichever loads, it works. */

.promo-banner{
  background:linear-gradient(135deg,#fdf6e8 0%,#fef9f0 100%);
  border:2px solid #E8A020;
  border-radius:16px;
  padding:32px;
  margin:32px auto;
  max-width:1200px;
}
.promo-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.promo-kicker{
  font-size:11px;font-weight:800;letter-spacing:1px;
  text-transform:uppercase;color:#E8A020;margin:0 0 8px;
}
.promo-headline{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(18px,2.2vw,26px);font-weight:900;
  letter-spacing:-0.4px;line-height:1.15;color:#111;margin:0 0 16px;
}
.promo-features{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;gap:8px 22px;
}
.promo-features li{
  display:flex;align-items:center;gap:7px;
  font-size:14px;font-weight:600;color:#374151;
}
.promo-icon{font-size:17px;flex-shrink:0;}
.promo-ctas{display:flex;flex-direction:column;gap:10px;flex-shrink:0;}
.promo-btn-primary{
  display:inline-block;padding:13px 28px;
  background:#E8A020;color:#111;font-size:15px;font-weight:800;
  border-radius:10px;text-decoration:none;text-align:center;
  letter-spacing:.2px;transition:background .15s;white-space:nowrap;
}
.promo-btn-primary:hover{background:#d18f12;}
.promo-btn-secondary{
  display:inline-block;padding:12px 28px;
  border:2px solid #E8A020;color:#9a6a00;font-size:14px;font-weight:700;
  border-radius:10px;text-decoration:none;text-align:center;
  transition:background .15s,color .15s;white-space:nowrap;
}
.promo-btn-secondary:hover{background:rgba(232,160,32,.08);}

body.dark .promo-banner{
  background:linear-gradient(135deg,rgba(232,160,32,.09) 0%,rgba(232,160,32,.04) 100%);
  border-color:#E8A020;
}
body.dark .promo-headline{color:#f9fafb;}
body.dark .promo-features li{color:#9ca3af;}
body.dark .promo-btn-primary{color:#111;}
body.dark .promo-btn-secondary{color:#E8A020;}

@media(max-width:640px){
  .promo-inner{flex-direction:column;align-items:flex-start;}
  .promo-ctas{flex-direction:row;width:100%;}
  .promo-btn-primary,.promo-btn-secondary{flex:1;text-align:center;}
}
