/* ── El Vigía Pro · Components ──────────────────────── */

/* ══════════════════════════════════════════════════════
   BARRA DE NAVEGACIÓN (fija, clara)
   ══════════════════════════════════════════════════════ */
.np-header {
  position: fixed;
  top: var(--np-lb-h); left: 0; right: 0;   /* bajo el leaderboard fijo, si lo hay */
  z-index: 1000;
  height: var(--hdr-h);
  background: var(--np-hdr-bg);
  border-bottom: 1px solid var(--np-hdr-border);
  box-shadow: var(--sh-sm);
}
/* Filete rojo de prensa arriba de todo */
.np-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--np-accent);
}
.np-header > .np-container { height: 100%; }
.np-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-5);
}

/* ── Marca en la barra (aparece al hacer scroll) ────── */
.np-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--t-med);
}
.np-header.vp-brand-off .np-header__logo { opacity: 0; pointer-events: none; }
.np-header__logo-img { height: 28px; width: auto; display: block; }
.np-header__logo-text {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--np-hdr-text);
  line-height: 1;
}
.np-header__logo-text span { color: var(--np-accent); }

/* ── Nav principal ─────────────────────────────────── */
.np-nav {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.np-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.np-nav__item { display: flex; }
.np-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--np-text-sec);
  text-decoration: none;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.np-nav__link::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px; bottom: 0;
  height: 3px;
  background: var(--np-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-fast);
}
.np-nav__link:hover,
.np-nav__link.current-menu-item {
  color: var(--np-text);
}
.np-nav__link:hover::after,
.np-nav__link.current-menu-item::after {
  transform: scaleX(1);
}

/* ── Desbordamiento del menú: "Más ▾" (priority+) ──── */
.np-nav__more { position: relative; flex-shrink: 0; }
.np-nav__more-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  font-family: inherit;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--np-text-sec);
  background: none;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.np-nav__more-btn:hover,
.np-nav__more.is-open .np-nav__more-btn { color: var(--np-text); }
.np-nav__more-btn svg { transition: transform var(--t-fast); }
.np-nav__more.is-open .np-nav__more-btn svg { transform: rotate(180deg); }
.np-nav__more-panel {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 210px;
  padding: var(--sp-2);
  margin: 0;
  list-style: none;
  background: var(--np-hdr-bg);
  border: 1px solid var(--np-hdr-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  z-index: 1001;
}
.np-nav__more.is-open .np-nav__more-panel { display: block; }
.np-nav__more-panel .np-nav__item { list-style: none; }
.np-nav__more-panel .np-nav__link { padding: 9px 12px; height: auto; }
.np-nav__more-panel .np-nav__link::after { display: none; }
.np-nav__more-panel .np-nav__link:hover,
.np-nav__more-panel .np-nav__link.current-menu-item {
  background: var(--np-hdr-hover);
  color: var(--np-text);
}

/* ── Acciones header ───────────────────────────────── */
.np-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* ── Buscador (icono que expande) ──────────────────── */
.np-header__search form { display: flex; align-items: center; }
.np-header__search-input {
  width: 0;
  opacity: 0;
  padding: 5px 0;
  margin-right: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--np-text);
  font-size: var(--t-sm);
  outline: none;
  transition: width var(--t-med), opacity var(--t-fast), padding var(--t-med), margin var(--t-med);
}
.np-header__search-input::placeholder { color: var(--np-text-muted); }
.np-header__search.is-open .np-header__search-input {
  width: 200px;
  opacity: 1;
  padding: 5px 10px;
  margin-right: 6px;
  background: var(--np-surface-alt);
  border-color: var(--np-border);
}
.np-header__search.is-open .np-header__search-input:focus {
  background: var(--np-surface);
  border-color: var(--np-border-str);
}
.np-header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--np-border);
  border-radius: var(--r-md);
  color: var(--np-text-sec);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast);
}
.np-header__search-btn:hover {
  background: var(--np-surface-alt);
  color: var(--np-text);
}
.np-header__search-btn svg { display: block; }

/* ── Cuenta del lector + Suscríbete (header) ─────────
   Solo icono (como búsqueda y modo claro/oscuro) y con los MISMOS tokens
   adaptativos: el header de este tema es claro en modo claro — nada de
   blancos fijos o el botón desaparece. */
.np-cuenta { position: relative; }
.np-cuenta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--np-border);
  border-radius: var(--r-md);
  color: var(--np-text-sec);
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.np-cuenta__btn:hover,
.np-cuenta.is-open .np-cuenta__btn {
  background: var(--np-surface-alt);
  color: var(--np-text);
}
.np-cuenta__btn svg { display: block; }
.np-cuenta__panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: var(--sp-4);
  background: var(--np-hdr-bg);
  border: 1px solid var(--np-hdr-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  z-index: 1001;
}
.np-cuenta.is-open .np-cuenta__panel { display: block; }
.np-cuenta__hola {
  margin: 0 0 10px;
  color: var(--np-text-sec);
  font-size: var(--t-sm);
}
.np-cuenta__accion {
  display: block;
  text-align: center;
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--t-sm);
  text-decoration: none;
  margin-bottom: 8px;
}
.np-cuenta__accion--primary { background: var(--np-accent); color: #fff; }
.np-cuenta__accion--primary:hover { background: var(--np-accent-dk); color: #fff; }
.np-cuenta__link {
  display: block;
  text-align: center;
  color: var(--np-text-sec);
  font-size: var(--t-sm);
  text-decoration: none;
  padding: 4px 0;
}
.np-cuenta__link:hover { color: var(--np-accent); }
.np-cuenta__salir {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--np-border);
  font-size: var(--t-xs);
  color: var(--np-text-muted);
}

/* Botón Suscríbete (CTA del header) */
.np-sub-cta {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--np-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--r-md);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.np-sub-cta:hover { background: var(--np-accent-dk); color: #fff; }
@media (max-width: 640px) { .np-header__actions .np-sub-cta { display: none; } }

/* Estado por cookie np_sub_on (JS pone .np-lector-on en <html>):
   sin sesión → se ve __anon; con sesión → se ve __in. */
.np-cuenta__in { display: none; }
html.np-lector-on .np-cuenta__in { display: block; }
html.np-lector-on .np-cuenta__anon { display: none; }

/* Cuenta + Suscríbete en el panel móvil */
.np-mobile-nav__cuenta {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 10px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.np-sub-cta--movil { justify-content: center; margin-bottom: 6px; display: flex; }

/* ── Dark mode toggle ──────────────────────────────── */
.np-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--np-border);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--np-text-sec);
  font-size: 15px;
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1;
  flex-shrink: 0;
}
.np-mode-toggle:hover {
  background: var(--np-surface-alt);
  color: var(--np-text);
}
.np-mode-toggle svg { display: block; }
.np-mode-toggle .icon-sun  { display: none; }
.np-mode-toggle .icon-moon { display: block; }
[data-theme="dark"] .np-mode-toggle .icon-sun  { display: block; }
[data-theme="dark"] .np-mode-toggle .icon-moon { display: none; }

/* ── Hamburger (mobile) ────────────────────────────── */
.np-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 32px;
}
.np-header__hamburger span {
  display: block;
  height: 2px;
  background: var(--np-text);
  border-radius: 1px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* ══════════════════════════════════════════════════════
   MASTHEAD (cabecera de diario, bajo la barra)
   ══════════════════════════════════════════════════════ */
.vp-masthead {
  background: var(--np-bg);
  border-bottom: 1px solid var(--np-border);
}
.vp-masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.vp-masthead__fecha {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: capitalize;
  color: var(--np-text-muted);
}
.vp-masthead__logo {
  justify-self: center;
  text-decoration: none;
  text-align: center;
  line-height: 1;
}
.vp-masthead__logo-img { max-height: 52px; width: auto; display: block; margin: 0 auto; }
.vp-masthead__logo-text {
  font-family: var(--f-head);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--np-text);
}
.vp-masthead__logo-text span { color: var(--np-accent); }
.vp-masthead__lema {
  justify-self: end;
  font-size: var(--t-xs);
  font-style: italic;
  color: var(--np-text-muted);
  text-align: right;
}

/* ── Menú móvil ────────────────────────────────────── */
.np-mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--np-lb-h) + var(--hdr-h)); left: 0; right: 0;
  background: var(--np-hdr-bg);
  border-top: 1px solid var(--np-hdr-border);
  border-bottom: 1px solid var(--np-hdr-border);
  padding: var(--sp-2) 0 var(--sp-3);
  z-index: 999;
  max-height: calc(100vh - var(--np-lb-h) - var(--hdr-h));
  overflow-y: auto;
  box-shadow: var(--sh-lg);
}
.np-mobile-nav.is-open { display: block; }
@media (min-width: 769px) {
  .np-mobile-nav { display: none !important; }
}
.np-mobile-nav .np-nav__menu {
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  padding: 0 var(--sp-4);
}
.np-mobile-nav .np-nav__menu a {
  display: block;
  height: auto;
  padding: 12px var(--sp-3);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--np-text-sec);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.np-mobile-nav .np-nav__menu a::after { display: none; }
.np-mobile-nav .np-nav__menu li + li { border-top: 1px solid var(--np-border); }
.np-mobile-nav .np-nav__menu a:hover,
.np-mobile-nav .np-nav__menu a.current-menu-item {
  background: var(--np-hdr-hover);
  color: var(--np-text);
}

/* Barra de admin de WP: desplazar header y panel para no quedar debajo */
.admin-bar .np-header     { top: calc(var(--np-lb-h) + var(--wp-admin--admin-bar--height, 32px)); }
.admin-bar .np-mobile-nav { top: calc(var(--np-lb-h) + var(--hdr-h) + var(--wp-admin--admin-bar--height, 32px)); }
.admin-bar .np-site       { padding-top: calc(var(--hdr-h) + var(--np-lb-h) + var(--wp-admin--admin-bar--height, 32px)); }

/* ══════════════════════════════════════════════════════
   TOPBAR TICKER (opcional — barra de última hora)
   ══════════════════════════════════════════════════════ */
.np-ticker {
  background: var(--np-accent);
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: fixed;
  top: var(--hdr-h); left: 0; right: 0;
  z-index: 998;
}
.np-ticker__label {
  flex-shrink: 0;
  background: rgba(0,0,0,.2);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 var(--sp-4);
  height: 100%;
  display: flex;
  align-items: center;
}
.np-ticker__track {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}
.np-ticker__inner {
  display: inline-flex;
  gap: var(--sp-8);
  animation: npTicker 40s linear infinite;
}
.np-ticker__inner:hover { animation-play-state: paused; }
.np-ticker a {
  font-size: var(--t-xs);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.np-ticker a:hover { text-decoration: underline; }
@keyframes npTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════════════════ */
.np-footer {
  background: var(--np-footer-bg);
  border-top: 1px solid var(--np-footer-border);
  color: rgba(255,255,255,.6);
  margin-top: var(--sp-8);
}

.np-footer__main {
  padding: var(--sp-7) 0 var(--sp-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}

.np-footer__brand {}
.np-footer__brand-logo {
  font-family: var(--f-head);
  font-size: var(--t-xl);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: var(--sp-3);
}
.np-footer__brand-logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
}
.np-footer__brand-desc {
  font-size: var(--t-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  max-width: 280px;
}

.np-footer__col-title {
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--sp-4);
}

.np-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.np-footer__links a {
  font-size: var(--t-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--t-fast);
}
.np-footer__links a:hover { color: #fff; }

/* ── Social icons ──────────────────────────────────── */
.np-footer__social {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.np-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.np-footer__social-link:hover {
  background: var(--np-accent);
  color: #fff;
}

/* ── Footer bottom bar ─────────────────────────────── */
.np-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.np-footer__copy {
  font-size: var(--t-xs);
  color: rgba(255,255,255,.35);
}
.np-footer__legal {
  display: flex;
  gap: var(--sp-4);
}
.np-footer__legal a {
  font-size: var(--t-xs);
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color var(--t-fast);
}
.np-footer__legal a:hover { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════ */
.np-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.np-sidebar-widget {
  background: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.np-sidebar-widget__header {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--np-border);
  background: var(--np-surface-alt);
}
.np-sidebar-widget__title {
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--np-text-sec);
  margin: 0;
}
.np-sidebar-widget__body {
  padding: var(--sp-4);
}

/* Widget: notas más leídas */
.np-sidebar-leidas {}
.np-sidebar-leidas__item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--np-border);
}
.np-sidebar-leidas__item:last-child { border-bottom: none; }
.np-sidebar-leidas__num {
  font-size: var(--t-xl);
  font-weight: 800;
  font-family: var(--f-head);
  color: var(--np-border-str);
  line-height: 1;
  min-width: 24px;
}
.np-sidebar-leidas__text {}
.np-sidebar-leidas__title {
  font-size: var(--t-sm);
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--np-text);
  text-decoration: none;
  line-height: 1.3;
  display: block;
}
.np-sidebar-leidas__title:hover { color: var(--np-accent); }
.np-sidebar-leidas__meta {
  font-size: var(--t-xs);
  color: var(--np-text-muted);
  margin-top: var(--sp-1);
}

/* Widget: notas en lista con miniatura (últimas / más leídas) */
.np-widget-notas {}
.np-widget-notas__item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--np-border);
}
.np-widget-notas__item:first-child { padding-top: 0; }
.np-widget-notas__item:last-child  { border-bottom: none; padding-bottom: 0; }
.np-widget-notas__img {
  flex: 0 0 88px;
}
.np-widget-notas__img img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.np-widget-notas__text { min-width: 0; }
.np-widget-notas__title {
  font-size: var(--t-sm);
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--np-text);
  text-decoration: none;
  line-height: 1.3;
  display: block;
}
.np-widget-notas__title:hover { color: var(--np-accent); }
.np-widget-notas__meta {
  font-size: var(--t-xs);
  color: var(--np-text-muted);
  margin-top: var(--sp-1);
}

/* Widget: calendario de ediciones */
.np-cal-wrap { transition: opacity .15s ease; }
.np-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.np-cal__title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: var(--t-sm);
  color: var(--np-text);
}
.np-cal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--r-md);
  font-size: var(--t-lg);
  line-height: 1;
  text-decoration: none;
  color: var(--np-text);
  background: var(--np-surface-dim);
}
.np-cal__nav:hover { background: var(--np-accent); color: #fff; }
.np-cal__nav.is-off { opacity: .3; pointer-events: none; }
.np-cal__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}
.np-cal__grid th {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--np-text-muted);
  padding: 4px 0;
}
.np-cal__grid td {
  padding: 2px;
  font-size: var(--t-sm);
  height: 30px;
}
.np-cal__day { color: var(--np-text-muted); }
.np-cal__empty { background: transparent; }
.np-cal__day.is-ed a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--np-text);
  text-decoration: none;
  background: var(--np-surface-dim);
  border: 1px solid var(--np-border-str);
}
.np-cal__day.is-ed a:hover { background: var(--np-accent); color: #fff; border-color: var(--np-accent); }
.np-cal__day.is-active a {
  background: var(--np-accent);
  color: #fff;
  border-color: var(--np-accent);
}

/* Calendario en la cabecera de la vista de edición (para cambiar de día) */
.np-edicion-cal {
  max-width: 320px;
  margin: 0 auto var(--sp-6);
  padding: var(--sp-4);
  border: 1px solid var(--np-border);
  border-radius: var(--r-lg);
  background: var(--np-surface);
}
.np-edicion-secciones { transition: opacity .15s ease; }

/* Widget: publicidad sidebar */
.np-sidebar-ad {
  text-align: center;
}
.np-sidebar-ad img {
  margin: 0 auto;
  max-width: 100%;
}

/* ══════════════════════════════════════════════════════
   READING PROGRESS BAR
   ══════════════════════════════════════════════════════ */
.np-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--np-accent);
  z-index: 2000;
  transition: width .1s linear;
}

/* ══════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════ */
.np-pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
}
.np-pagination a,
.np-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--np-border);
  color: var(--np-text-sec);
  transition: all var(--t-fast);
}
.np-pagination a:hover {
  border-color: var(--np-accent);
  color: var(--np-accent);
}
.np-pagination .current,
.np-pagination span.current {
  background: var(--np-accent);
  border-color: var(--np-accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   SEARCH FORM
   ══════════════════════════════════════════════════════ */
.np-search-form {
  display: flex;
  gap: var(--sp-2);
}
.np-search-form input[type="search"] {
  flex: 1;
  padding: 9px var(--sp-4);
  border: 1px solid var(--np-border-str);
  border-radius: var(--r-md);
  font-size: var(--t-base);
  background: var(--np-surface);
  color: var(--np-text);
  outline: none;
  transition: border-color var(--t-fast);
}
.np-search-form input[type="search"]:focus {
  border-color: var(--np-accent);
}
.np-search-form button {
  padding: 9px var(--sp-4);
  background: var(--np-accent);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast);
}
.np-search-form button:hover { background: var(--np-accent-dk); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .np-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
}

@media (max-width: 768px) {
  .np-nav { display: none; }
  .np-header__search { display: none; }
  .np-header__hamburger { display: flex; }

  .np-footer__main {
    grid-template-columns: 1fr;
    padding: var(--sp-6) 0 var(--sp-5);
  }
  .np-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
}

/* ══════════════════════════════════════════════════════
   GRIDS DE CARDS — reutilizables en portada, secciones,
   páginas de autor, etc.
   ══════════════════════════════════════════════════════ */
.np-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.np-grid-3 .np-card__img {
  aspect-ratio: 3/2;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
}
.np-grid-3 .np-card__title {
  font-size: var(--t-md);
}

.np-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.np-grid-4 .np-card__img {
  aspect-ratio: 3/2;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
}
.np-grid-4 .np-card__title {
  font-size: clamp(13px, 1.2vw, 16px);
}

@media (max-width: 1100px) {
  .np-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .np-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .np-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .np-grid-3,
  .np-grid-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   EL VIGÍA PRO · REFINAMIENTOS (capa final)
   ══════════════════════════════════════════════════════ */

/* Separador editorial estilo prensa: etiqueta negra + filete */
.np-section-sep { gap: 0; align-items: stretch; border-bottom: 2px solid var(--np-text); margin-bottom: var(--sp-4); }
.np-section-sep__line { display: none; }
.np-section-sep__title {
  font-size: var(--t-sm);
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--np-text);
  padding: 0 0 6px;
  position: relative;
}
.np-section-sep__title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 44px;
  height: 2px;
  background: var(--np-accent);
}
.np-section-sep--accent .np-section-sep__title { color: var(--np-text); }

/* Tarjetas: titulares sans compactos, kicker rojo */
.np-card__title { font-weight: 800; letter-spacing: -.01em; line-height: 1.28; }
.np-card__meta  { font-size: var(--t-xs); }

/* Widgets del sidebar: cabecera con filete rojo, sin caja gris */
.np-sidebar-widget { border-radius: var(--r-md); }
.np-sidebar-widget__header {
  background: var(--np-surface);
  border-bottom: 2px solid var(--np-text);
  position: relative;
}
.np-sidebar-widget__header::after {
  content: '';
  position: absolute;
  left: var(--sp-4); bottom: -2px;
  width: 36px; height: 2px;
  background: var(--np-accent);
}
.np-sidebar-widget__title { color: var(--np-text); font-weight: 900; }

/* Footer: filete rojo superior */
.np-footer { border-top: 4px solid var(--np-accent); }

/* Grids algo más compactos (más notas por pantalla) */
.np-grid-3 { gap: var(--sp-4) var(--sp-5); }
.np-grid-4 { gap: var(--sp-4); }


/* ══════════════════════════════════════════════════════
   BOTÓN "VOLVER ARRIBA"
   ══════════════════════════════════════════════════════ */
.np-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--np-accent);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast), background var(--t-fast);
}
.np-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.np-top-btn:hover { background: var(--np-accent-dk); }
.np-top-btn svg { display: block; }
@media (max-width: 768px) { .np-top-btn { right: 14px; bottom: 14px; width: 40px; height: 40px; } }


/* ══════════════════════════════════════════════════════
   PÁGINA ESTÁTICA (page.php) — políticas, aviso legal, etc.
   ══════════════════════════════════════════════════════ */
.np-page {
  max-width: var(--content-max, 700px);
  margin: 0 auto;
  padding: var(--sp-7) 0 var(--sp-8);
}
.np-page__title {
  font-family: var(--f-head, var(--f-serif));
  font-size: clamp(var(--t-2xl), 4vw, var(--t-3xl));
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 3px solid var(--np-accent);
}
.np-page__content {
  font-family: var(--f-serif);
  font-size: var(--t-read, 17px);
  line-height: var(--lh-read, 1.75);
  color: var(--np-text);
}
.np-page__content p { margin-bottom: var(--sp-5); }
.np-page__content h2 { font-family: var(--f-head, var(--f-serif)); font-size: var(--t-xl); margin: var(--sp-7) 0 var(--sp-3); }
.np-page__content h3 { font-family: var(--f-head, var(--f-serif)); font-size: var(--t-lg); margin: var(--sp-6) 0 var(--sp-2); }
.np-page__content ul, .np-page__content ol { margin: 0 0 var(--sp-5) var(--sp-5); }
.np-page__content li { margin-bottom: var(--sp-2); }
.np-page__content a { color: var(--np-accent); text-decoration: underline; text-underline-offset: 2px; }
.np-page__content a:hover { color: var(--np-accent-dk); }
.np-page__content img { border-radius: var(--r-md); margin: var(--sp-4) 0; }
.np-page__content blockquote { border-left: 4px solid var(--np-accent); padding: var(--sp-3) var(--sp-5); margin: var(--sp-5) 0; background: var(--np-surface-alt); }
