/* ============================================================
   Nofinancieros — estilos del blog (se suman al CSS de la portada)
   ============================================================ */
.nf-blog-body { margin: 0; }
.nf-main { padding-top: 72px; min-height: 60vh; }
.nf-wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.nf-wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
nav a.nf-active { color: var(--orange); }
a.logo { text-decoration: none; }

/* enlaces-tarjeta en la portada */
a.nf-link, a.nf-link:hover { text-decoration: none; color: inherit; display: block; }
a.nf-link { transition: transform .2s, box-shadow .2s; }
a.nf-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26,20,16,.08); }

/* ---------- Hero / encabezado del índice ---------- */
.nf-blog-hero { padding: 64px 0 28px; border-bottom: 1px solid var(--border2); background: var(--bg2); }
.nf-h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--dark); margin: 10px 0 14px;
}
.nf-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.nf-chip {
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--text);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border2); background: var(--card);
  transition: all .2s;
}
.nf-chip:hover { border-color: var(--dark); }
.nf-chip.on { background: var(--dark); color: var(--bg); border-color: var(--dark); }
.nf-chip.trad.on { background: var(--trad); border-color: var(--trad); }
.nf-chip.notrad.on { background: var(--notrad); border-color: var(--notrad); }
.nf-search { margin-left: auto; }
.nf-search input {
  font: inherit; font-size: .88rem; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border2); background: var(--card); color: var(--text); min-width: 230px;
}
.nf-search input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

/* ---------- Grilla de posts ---------- */
.nf-list { padding-top: 48px; padding-bottom: 72px; }
.nf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nf-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--border2); border-radius: 14px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26,20,16,.08); border-color: var(--border); }
.nf-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.nf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nf-card-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.3;
  color: var(--dark); margin: 0; letter-spacing: -0.01em;
}
.nf-card-excerpt { font-size: .9rem; line-height: 1.55; color: var(--muted); margin: 0; flex: 1; }
.nf-card .bc-meta { margin-top: auto; }
.nf-card--featured { grid-column: 1 / -1; flex-direction: row; background: var(--dark); border-color: var(--dark); }
.nf-card--featured .nf-card-img { flex: 1.1; aspect-ratio: auto; min-height: 300px; }
.nf-card--featured .nf-card-body { flex: 1; padding: 40px; justify-content: center; }
.nf-card--featured .nf-card-title { color: var(--bg); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }
.nf-card--featured .nf-card-excerpt { color: rgba(245,242,236,.7); font-size: 1rem; flex: 0; }
.nf-card--featured .bc-meta { color: rgba(245,242,236,.55); margin-top: 6px; }
.bc-cat.base { color: var(--orange); }

.nf-pagination { margin-top: 44px; text-align: center; }
.nf-pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nf-pagination .page-numbers {
  padding: 9px 15px; border-radius: 8px; border: 1px solid var(--border2); background: var(--card);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: .88rem;
}
.nf-pagination .page-numbers.current { background: var(--orange); color: #fff; border-color: var(--orange); }
.nf-pagination .screen-reader-text { position: absolute; left: -9999px; }
.nf-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.nf-empty p { margin-bottom: 20px; font-size: 1.05rem; }

/* ---------- Artículo ---------- */
.nf-article { padding: 48px 0 24px; }
.nf-article-head { margin-bottom: 30px; }
.nf-back { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.nf-back:hover { color: var(--orange); }
.nf-lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.nf-byline { display: flex; flex-wrap: wrap; gap: 8px; font-family: 'DM Mono', monospace; font-size: .78rem; color: var(--muted); }
.nf-hero-img { margin: 0 auto 40px; }
.nf-hero-img img { width: 100%; height: auto; border-radius: 16px; display: block; }

.nf-content { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.nf-content > * { margin: 0 0 1.2em; }
.nf-content h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.65rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--dark); margin: 1.9em 0 .6em; }
.nf-content h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); margin: 1.6em 0 .5em; }
.nf-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.nf-content strong { color: var(--dark); }
.nf-content ul, .nf-content ol { padding-left: 1.3em; }
.nf-content li { margin-bottom: .45em; }
.nf-content li::marker { color: var(--orange); }
.nf-content blockquote {
  border-left: 4px solid var(--orange); background: var(--orange-dim);
  padding: 16px 22px; border-radius: 0 12px 12px 0; margin-left: 0; font-style: normal;
}
.nf-content blockquote p:last-child { margin-bottom: 0; }
.nf-content img, .nf-content figure img { max-width: 100%; height: auto; border-radius: 12px; }
.nf-content figure { margin-left: 0; margin-right: 0; }
.nf-content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.nf-content table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border-radius: 12px; overflow: hidden; }
.nf-content th, .nf-content td { padding: 11px 14px; border-bottom: 1px solid var(--border2); text-align: left; }
.nf-content th { background: var(--dark); color: var(--bg); font-weight: 600; }
.nf-content code { font-family: 'DM Mono', monospace; background: var(--bg2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.nf-content hr { border: 0; border-top: 1px solid var(--border2); margin: 2.4em 0; }
.nf-content .wp-block-embed iframe, .nf-content iframe { max-width: 100%; border-radius: 12px; }

.nf-article-foot { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border2); }
.nf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.nf-tags a { font-size: .82rem; color: var(--muted); text-decoration: none; background: var(--bg2); padding: 5px 12px; border-radius: 999px; }
.nf-tags a:hover { color: var(--orange); }
.nf-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.nf-share a { font-weight: 600; text-decoration: none; color: var(--dark); border: 1px solid var(--border2); padding: 7px 14px; border-radius: 8px; background: var(--card); }
.nf-share a:hover { border-color: var(--orange); color: var(--orange); }
.nf-disclaimer-box { font-size: .82rem; color: var(--muted); background: var(--yellow-dim); padding: 12px 16px; border-radius: 10px; }

.nf-related { padding-top: 40px; padding-bottom: 72px; }
.nf-related .sec-label { margin-bottom: 18px; }

/* ---------- CTA YouTube ---------- */
.nf-cta { background: var(--dark); padding: 56px 0; }
.nf-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nf-cta-title { font-family: 'Bricolage Grotesque', sans-serif; color: var(--bg); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; margin: 8px 0; }
.nf-cta-sub { color: rgba(245,242,236,.65); margin: 0; }
.nf-cta-btn { text-decoration: none; white-space: nowrap; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nf-grid, .nf-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .nf-card--featured { flex-direction: column; }
  .nf-card--featured .nf-card-img { min-height: 220px; }
  .nf-card--featured .nf-card-body { padding: 26px; }
}
@media (max-width: 640px) {
  .nf-wrap { padding: 0 18px; }
  .nf-wrap-narrow { padding: 0 18px; }
  .nf-grid, .nf-grid--3 { grid-template-columns: 1fr; }
  .nf-blog-hero { padding-top: 40px; }
  .nf-search { margin-left: 0; width: 100%; }
  .nf-search input { width: 100%; min-width: 0; box-sizing: border-box; }
  .nf-content { font-size: 1.02rem; }
  .nf-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Fondo de marca y ajuste con la barra de admin de WordPress */
body.nf-blog-body { background: var(--bg) !important; }
body.nf-blog-body nav { display: flex !important; }
body.admin-bar.nf-blog-body nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar.nf-blog-body nav { top: 46px; } }
