/* =========================================================
   Diseño «revista de ideas» para las páginas interiores
   (blog, categorías, opiniones, legales y 404). Mismo lenguaje
   que la portada: cabecera y pie negros, serif de titular
   (Newsreader), antetítulos en mayúsculas estrechas (Oswald),
   texto de lectura en Libre Baskerville y acento oro.
   Se carga después del <style> propio de cada página.
   ========================================================= */

:root {
  --ed-black: #0B0B0B;
  --ed-gold: #FBC435;
  --ed-gold-text: #A87A1E;
  --ed-cream: #F5EFEA;
  --ed-rule: #E2D9D0;
  --ed-kicker: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --ed-read: 'Libre Baskerville', Georgia, serif;
}

body { background: #FFFFFF; color: #141414; }
::selection { background: var(--ed-gold); color: var(--ed-black); }
:focus-visible { outline: 3px solid var(--ed-gold); outline-offset: 3px; }

/* ----- Cabecera negra, como en la portada ----- */
header {
  background: var(--ed-black) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, .16) !important;
}

header .logo,
header .logo a {
  font-family: var(--ed-kicker) !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  color: #FFFFFF !important;
}

header nav a,
header .back-link {
  font-family: var(--ed-kicker);
  font-size: .86rem !important;
  font-weight: 500;
  letter-spacing: .1em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68) !important;
}

header nav a:hover,
header nav a.active,
header .back-link:hover { color: #FFFFFF !important; }

header nav a.active { box-shadow: inset 0 -2px 0 var(--ed-gold); }

header .menu-toggle span { background: #FFFFFF !important; }

@media (max-width: 600px) {
  header nav { background: var(--ed-black) !important; }
  header nav a { border-color: rgba(255, 255, 255, .16) !important; }
}

/* ----- Antetítulos de sección ----- */
.section-label,
.article-category,
.post-category,
.related-category,
.case-name small,
.author-bio-role {
  font-family: var(--ed-kicker) !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  color: var(--ed-gold-text) !important;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #141414 !important;
}

.section-label::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--ed-gold);
  flex-shrink: 0;
}

/* ----- Titulares ----- */
h1, h2, h3,
.article-title,
.post-card h2,
.related-card h3,
.related-posts h2 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}

h1 em, .blog-hero h1 em, .page-hero h1 em { color: var(--ed-gold-text) !important; font-weight: 400; }

/* ----- Cabeceras de página (blog, categorías, opiniones) ----- */
.blog-hero,
.page-hero {
  background: var(--ed-black);
  color: #FFFFFF;
  border-bottom: 0 !important;
}

.blog-hero h1,
.page-hero h1 { color: #FFFFFF; }

.blog-hero h1 em,
.page-hero h1 em { color: var(--ed-gold) !important; }

.blog-hero p,
.page-hero p,
.blog-hero .breadcrumbs,
.blog-hero .breadcrumbs a { color: rgba(255, 255, 255, .78) !important; }

.blog-hero .section-label,
.page-hero .section-label { color: #FFFFFF !important; }

/* ----- Artículos ----- */
.article-body p,
.article-body li {
  font-family: var(--ed-read);
  font-size: 1.04rem;
  line-height: 1.95;
  color: #2E2B28;
}

.article-body a,
.faq-answer a,
.source-note a,
.verifiable-list dd a,
main a:not(.cta-button):not(.post-card):not(.related-card) {
  color: #141414;
  text-decoration: underline;
  text-decoration-color: var(--ed-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-body strong { color: #141414; }

.article-signature { color: #141414 !important; }

.article-separator { background: var(--ed-gold) !important; }

.author-bio {
  background: var(--ed-cream) !important;
  border: 0 !important;
  border-top: 6px solid var(--ed-black) !important;
}

/* ----- Tarjetas ----- */
.post-card,
.related-card,
.testimonial-card {
  background: var(--ed-cream) !important;
  border-color: var(--ed-rule) !important;
}

.post-card:hover,
.related-card:hover,
.testimonial-card:hover { border-color: var(--ed-black) !important; background: #FFFFFF !important; }

.post-card:hover h2,
.post-card:hover .post-arrow { color: #141414 !important; }

.cat-pill,
.cat-list a {
  font-family: var(--ed-kicker);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-color: #141414 !important;
  color: #141414 !important;
}

.cat-pill:hover,
.cat-list a:hover,
.cat-list a.active {
  background: #141414 !important;
  color: #FFFFFF !important;
}

/* ----- Botones y llamadas a la acción ----- */
.cta-button {
  background: var(--ed-gold) !important;
  color: var(--ed-black) !important;
  border-color: var(--ed-gold) !important;
  font-family: var(--ed-kicker);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cta-button:hover { background: var(--ed-black) !important; color: #FFFFFF !important; border-color: var(--ed-black) !important; }

.blog-cta,
.summary-stats {
  background: var(--ed-black) !important;
  color: #FFFFFF;
}

.blog-cta h2,
.summary-item strong { color: #FFFFFF; }

.summary-item strong { font-family: var(--ed-kicker) !important; color: var(--ed-gold) !important; }

.blog-cta p,
.summary-item span { color: rgba(255, 255, 255, .72) !important; }

/* ----- Pie negro ----- */
footer {
  background: var(--ed-black);
  color: rgba(255, 255, 255, .6) !important;
  border-top: 0 !important;
}

footer a { color: #FFFFFF !important; text-decoration: none !important; }
footer a:hover { color: var(--ed-gold) !important; }

/* ----- 404 ----- */
.error-code { color: var(--ed-gold-text) !important; font-family: var(--ed-kicker) !important; }

/* enlaces dentro de las cabeceras negras */
.page-hero a,
.blog-hero a { color: var(--ed-gold) !important; text-decoration-color: rgba(251, 196, 53, .5); }

/* móvil: logo y menú sin hamburguesa caben en una línea */
@media (max-width: 600px) {
  header .logo, header .logo a { font-size: .95rem !important; letter-spacing: .08em !important; white-space: nowrap; }
  header nav a { font-size: .74rem !important; }
}
