/**
 * css/noticias.css — Estilos para la sección de noticias
 *
 * Cubre:
 *  - noticias/index.php  (listado + toolbar + filtros)
 *  - noticia.php     (artículo individual — .ns-topbar, .top-news, etc.)
 *
 * Paleta / tokens:
 *  --green  : #649733
 *  --ac     : #EEFB87
 *  --primary: #1F242F
 *  --bg     : #f5f2ee
 *
 * Breakpoints (mobile-first):
 *  sm  : 480 px
 *  md  : 768 px (tablet)
 *  lg  : 1024 px (desktop)
 *  xl  : 1440 px (wide)
 */

/* Garantía: el atributo hidden siempre oculta aunque haya display:flex en la clase */
[hidden] { display: none !important; }

/* ─── Variables locales ──────────────────────────────────────── */
:root {
  --ns-green   : #649733;
  --ns-ac      : #EEFB87;
  --ns-primary : #1F242F;
  --ns-bg      : #f5f2ee;
  --ns-bg-card : #fff;
  --ns-border  : #e4e1dc;
  --ns-muted   : #6b7280;
  --ns-radius  : 12px;
}

/* ═══════════════════════════════════════════════════════════════
   1. CONTENEDOR DE PÁGINA
═══════════════════════════════════════════════════════════════ */

.ns-news-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 16px 64px;   /* mobile: debajo de navbar fija */
  box-sizing: border-box;
  min-height: 100vh;
  font-family: 'Messina Sans', sans-serif;
  color: var(--ns-primary);
}

@media (min-width: 480px)  { .ns-news-page { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 768px)  { .ns-news-page { padding: 96px 40px 80px; } }
@media (min-width: 1024px) { .ns-news-page { padding: 96px clamp(40px, 5vw, 80px) 80px; } }

/* ═══════════════════════════════════════════════════════════════
   2. CABECERA EDITORIAL DE PÁGINA
═══════════════════════════════════════════════════════════════ */

.news-page-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ns-border);
}

.news-page-label {
  display: block;
  font-size: clamp(.87rem, 2vw, 1rem);
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ns-green);
  font-family: 'DM Mono', monospace;
  margin-bottom: 12px;
}

.news-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ns-primary);
  margin: 0 0 16px;
}
.news-page-title em {
  font-style: italic;
  color: var(--ns-green);
}

.news-page-sub {
  font-size: clamp(.85rem, 2vw, 1rem);
  color: var(--ns-muted);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .news-page-header { margin-bottom: 48px; padding-bottom: 40px; }
}

/* ═══════════════════════════════════════════════════════════════
   3. TOOLBAR
═══════════════════════════════════════════════════════════════ */

.ns-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--ns-bg-card);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  position: sticky;
  top: 62px;           /* debajo de la navbar */
  z-index: 80;
}

/* ── Título + contador ────────────── */
.ns-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ns-toolbar-title {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ns-green);
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
}

.ns-toolbar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--ns-ac);
  color: var(--ns-primary);
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0;
  font-family: 'DM Mono', monospace;
}

/* ── Grupo de filtros ─────────────── */
.ns-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Búsqueda inline ─────────────── */
.ns-toolbar-search {
  flex: 1;
  min-width: 140px;
  max-width: 280px;
}

/* ── Botón volver ────────────────── */
.ns-toolbar-back {
  margin-left: auto;   /* empuja a la derecha */
  flex-shrink: 0;
}

/* Mobile: búsqueda ocupa fila completa */
@media (max-width: 600px) {
  .ns-toolbar { padding: 10px 12px; gap: 8px; top: 56px; }
  .ns-toolbar-search { max-width: 100%; flex: 1 0 100%; order: 10; }
  .ns-toolbar-back   { display: none; } /* espacio limitado */
}

/* Tablet+ */
@media (min-width: 768px) {
  .ns-toolbar { padding: 14px 20px; gap: 12px; top: 66px; }
  .ns-toolbar-title { font-size: .78rem; }
}

/* Landscape móvil */
@media (orientation: landscape) and (max-height: 500px) {
  .ns-toolbar { position: relative; top: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   4. DROPDOWNS DE FILTRO
═══════════════════════════════════════════════════════════════ */

.ns-filter-dropdown {
  position: relative;
}

.ns-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--ns-border);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ns-primary);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: border-color .18s, background .18s;
  min-height: 36px;
}
.ns-filter-btn:hover,
.ns-filter-dropdown.open .ns-filter-btn {
  border-color: var(--ns-green);
  background: rgba(100,151,51,.06);
}

.ns-filter-btn-label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-filter-chevron {
  flex-shrink: 0;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  color: var(--ns-muted);
}
.ns-filter-dropdown.open .ns-filter-chevron {
  transform: rotate(180deg);
}

/* Panel desplegable */
.ns-filter-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: var(--ns-bg-card);
  border: 1px solid var(--ns-border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  padding: 6px;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.ns-filter-dropdown.open .ns-filter-menu {
  display: block;
  animation: ddFadeIn .18s ease;
}

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ns-filter-opt {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: .82rem;
  font-family: inherit;
  color: var(--ns-primary);
  cursor: pointer;
  text-align: left;
  transition: background .14s, color .14s;
  white-space: nowrap;
  min-height: 36px;
}
.ns-filter-opt:hover {
  background: rgba(100,151,51,.08);
  color: var(--ns-green);
}
.ns-filter-opt.active {
  background: var(--ns-ac);
  color: var(--ns-primary);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   5. CHIPS DE FILTROS ACTIVOS
═══════════════════════════════════════════════════════════════ */

.ns-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .78rem;
}

.ns-active-filters-label {
  color: var(--ns-muted);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ns-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ns-ac);
  color: var(--ns-primary);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.ns-chip button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  color: var(--ns-primary);
  padding: 0;
  opacity: .6;
  transition: opacity .15s;
}
.ns-chip button:hover { opacity: 1; }

.ns-clear-all {
  background: none;
  border: 1px solid var(--ns-border);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: .72rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--ns-muted);
  transition: border-color .15s, color .15s;
}
.ns-clear-all:hover { border-color: var(--ns-green); color: var(--ns-green); }

/* ═══════════════════════════════════════════════════════════════
   6. GRID DE CARDS
═══════════════════════════════════════════════════════════════ */

.ns-news-grid {
  display: grid;
  grid-template-columns: 1fr;                          /* mobile: 1 col */
  gap: 20px;
}

/* ≥ 480px: 2 columnas */
@media (min-width: 480px) {
  .ns-news-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Landscape móvil (ancho ≥ 568px, alto ≤ 500px): 3 columnas compactas */
@media (orientation: landscape) and (max-height: 500px) {
  .ns-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* ≥ 768px (tablet): 2 columnas más anchas */
@media (min-width: 768px) {
  .ns-news-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ≥ 1024px (desktop): 3 columnas */
@media (min-width: 1024px) {
  .ns-news-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* ≥ 1440px (wide): 4 columnas */
@media (min-width: 1440px) {
  .ns-news-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Cards de noticias ───────────── */
.ns-news-card {
  /* Hereda de .p2-card — aquí solo se sobreescriben diferencias */
  flex-direction: column;
  height: auto;
  min-height: 320px;
  text-decoration: none !important;
}

.ns-news-card .p2-card-img {
  height: 190px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--ns-radius) var(--ns-radius) 0 0;
}

.ns-news-card .p2-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.ns-news-card:hover .p2-card-img img {
  transform: scale(1.04);
}

.ns-news-card .p2-card-body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Corta la herencia de color verde del <a> padre */
  color: var(--ns-primary);
}

.ns-news-card .p2-card-cat {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ns-green);
  font-family: 'DM Mono', monospace;
  margin-bottom: 2px;
}

.ns-news-card .p2-card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--ns-primary);
  margin: 0;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ns-news-card .p2-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: .68rem;
  color: #9ca3af;
  margin-top: 2px;
}
.ns-news-card .p2-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ns-news-card .p2-card-excerpt {
  font-size: .81rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ns-news-card .p2-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ns-green);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ns-border);
  transition: gap .2s, color .2s;
  font-family: 'DM Mono', monospace;
}
.ns-news-card:hover .p2-card-link { gap: 8px; color: #4a6e24; }

/* Landscape móvil: cards más compactas */
@media (orientation: landscape) and (max-height: 500px) {
  .ns-news-card               { min-height: unset; }
  .ns-news-card .p2-card-img  { height: 130px; }
  .ns-news-card .p2-card-body { padding: 10px 12px; gap: 4px; }
  .ns-news-card .p2-card-excerpt { -webkit-line-clamp: 2; }
}

/* ═══════════════════════════════════════════════════════════════
   7. ESTADO VACÍO
═══════════════════════════════════════════════════════════════ */

.ns-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px;
  text-align: center;
  color: var(--ns-muted);
}
.ns-empty-state p {
  font-size: 1rem;
  margin: 0;
}
.ns-empty-state button {
  padding: 10px 24px;
  background: var(--ns-ac);
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ns-primary);
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.ns-empty-state button:hover { background: #ddf060; }

/* ═══════════════════════════════════════════════════════════════
   8. ARTÍCULO INDIVIDUAL — noticia.php
   (conserva los estilos anteriores + mejoras)
═══════════════════════════════════════════════════════════════ */

/* ── Layout principal ── */
.news-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 16px 64px;
  color: var(--ns-primary);
  font-family: 'Messina Sans', sans-serif;
  box-sizing: border-box;
}

@media (min-width: 480px)  { .news-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 768px)  { .news-container { padding-top: 96px; padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .news-container { padding-top: 96px; } }

/* ── Topbar (artículo individual) ── */
.ns-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  flex-wrap: wrap;
}

.ns-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ns-topbar-title {
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ns-green);
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
}

@media (max-width: 600px) {
  .ns-topbar        { padding: 10px 12px; }
  .ns-topbar-right  { flex: 1 0 100%; flex-wrap: wrap; margin-left: 0; }
  .ns-topbar-right .ns-search { flex: 1 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  .ns-topbar  { padding: 14px 20px; }
}

/* ── Buscador (compartido) ── */
.ns-search {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 300px;
  min-width: 0;
}
.ns-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid var(--ns-border);
  border-radius: 8px;
  font-size: .88rem;
  background: var(--ns-bg);
  outline: none;
  color: var(--ns-primary);
  transition: border-color .18s;
  font-family: inherit;
}
.ns-search input:focus     { border-color: var(--ns-green); background: #fff; }
.ns-search input::placeholder { color: #bbb; }
.ns-search button {
  padding: 8px 14px;
  background: var(--ns-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .18s;
  flex-shrink: 0;
  min-height: 36px;
}
.ns-search button:hover { background: #4f7828; }

/* ── Botón volver (compartido) ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--ns-border);
  color: var(--ns-muted);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s, color .18s;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
}
.back-btn:hover   { border-color: var(--ns-green); color: var(--ns-green); }
.back-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
}

/* ── Toggle top-news ── */
.ns-topbar-toggle-area {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background .18s;
  user-select: none;
}
.ns-topbar-toggle-area:hover { background: rgba(100,151,51,.08); }

.ns-toggle-btn {
  background: none; border: none;
  cursor: pointer; color: #aaa;
  display: flex; align-items: center;
  padding: 0;
  transition: color .18s, background .18s, border-color .18s, padding .18s, border-radius .18s;
  min-height: 28px;
}
.ns-toggle-btn:hover { color: var(--ns-green); }
.ns-toggle-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.ns-toggle-btn.collapsed svg { transform: rotate(180deg); }

/* Cuando está contraído: el botón parece un pill invitador */
.ns-toggle-btn.collapsed {
  color: var(--ns-green);
  background: rgba(100,151,51,.12);
  border: 1px solid rgba(100,151,51,.25);
  border-radius: 20px;
  padding: 3px 10px 3px 8px;
  gap: 5px;
}
.ns-toggle-btn.collapsed:hover {
  background: rgba(100,151,51,.22);
  border-color: rgba(100,151,51,.45);
}
.ns-toggle-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  display: none;
}
.ns-toggle-btn.collapsed .ns-toggle-label { display: inline; }

/* ── Cards top noticias ── */
.top-news-wrap {
  overflow: hidden;
  max-height: 500px;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
  margin-bottom: 8px;
  position: relative;
}
.top-news-wrap.collapsed { max-height: 0; }

.top-news {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}
.top-news a {
  text-decoration: none;
  flex: 1 1 160px;
  max-width: 220px;
}
.top-news .p2-card { height: auto; min-height: unset; }

@media (max-width: 600px) {
  .top-news a { flex: 1 1 140px; max-width: 180px; }
}

/* ── Resultados de búsqueda ── */
.ns-results {
  background: #fff;
  border: 1px solid #e8f5d0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.ns-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ns-primary);
  text-decoration: none;
  font-size: .9rem;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color .14s;
}
.ns-results a:last-child  { border-bottom: none; }
.ns-results a:hover       { color: var(--ns-green); }
.ns-results a span        { color: #bbb; font-size: .8rem; }

/* ── Artículo ── */
.news-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ns-primary);
  margin-bottom: 12px;
  overflow-wrap: break-word;
}
.news-meta {
  color: #aaa;
  font-size: .85rem;
  margin-bottom: 28px;
}
.news-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 28px;
  display: block;
}
@media (min-width: 768px) {
  .news-image { width: 65%; margin-left: auto; margin-right: auto; }
}
.news-content { line-height: 1.8; font-size: 1rem; overflow-wrap: break-word; }
.news-content p { margin: 0 0 1.2em; }

.news-content a {
  color: var(--ns-green);
  text-decoration: underline;
  text-decoration-color: rgba(100,151,51,.35);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color .18s, text-decoration-color .18s;
}
.news-content a:hover {
  color: #4f7828;
  text-decoration-color: #4f7828;
}

/* Breadcrumb */
.news-breadcrumb {
  font-size: .78rem; color: #aaa;
  margin-bottom: 20px;
  display: flex; gap: 6px; align-items: center;
}
.news-breadcrumb a { color: var(--ns-green); text-decoration: none; }
.news-breadcrumb a:hover { text-decoration: underline; }

/* ── Relacionadas ── */
.news-relacionadas {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ns-border);
}
.news-relacionadas h2 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ns-green);
  margin-bottom: 20px;
  font-family: 'DM Mono', monospace;
}
.news-rel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .news-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .news-rel-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-rel-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--ns-primary);
  align-items: flex-start;
  transition: color .18s;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color .18s;
}
.news-rel-card:hover {
  color: var(--ns-green);
  border-color: var(--ns-border);
}
.news-rel-card img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.news-rel-date {
  font-size: .72rem;
  color: #aaa;
  display: block;
  margin-bottom: 4px;
}
.news-rel-card p {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════
   9. FAVORITOS — noticias/index.php + noticia.php
═══════════════════════════════════════════════════════════════ */

/* ── Wrapper de card con botón favorito (listado) ── */
.ns-news-card-wrap {
  position: relative;
}

.ns-news-fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(245,242,238,.92);
  border: 1px solid rgba(0,0,0,.08);
  color: #ccc;
  opacity: 0;
  transform: scale(.85);
  cursor: pointer;
  transition: opacity .18s, transform .18s, color .18s, background .18s, border-color .18s;
  backdrop-filter: blur(4px);
}
.ns-news-card-wrap:hover .ns-news-fav-btn,
.ns-news-fav-btn:focus-visible,
.ns-news-fav-btn.active {
  opacity: 1;
  transform: scale(1);
}
.ns-news-fav-btn:hover { color: #e05a5a; border-color: rgba(224,90,90,.3); }
.ns-news-fav-btn.active {
  color: #e05a5a;
  background: rgba(255,235,235,.95);
  border-color: rgba(224,90,90,.35);
}
.ns-news-fav-btn.active svg { fill: #e05a5a; }
/* Sin hover (táctil): siempre visible */
@media (hover: none) {
  .ns-news-fav-btn { opacity: .55; transform: scale(1); }
}

/* ── Botón guardar en el artículo individual ── */
.news-fav-row {
  margin: -16px 0 24px;
}

.news-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px 6px 10px;
  font-size: .75rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: .1em;
  color: #aaa;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.news-fav-btn:hover {
  border-color: rgba(224,90,90,.4);
  color: #e05a5a;
}
.news-fav-btn.active {
  border-color: rgba(224,90,90,.4);
  background: rgba(255,235,235,.6);
  color: #e05a5a;
}
.news-fav-btn.active svg { fill: #e05a5a; stroke: #e05a5a; }

.sup-cta-comunidad {
  margin: 28px 0 8px;
  padding: 14px 18px;
  border-left: 3px solid #d4a853;
  background: rgba(212,168,83,.07);
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: #8a7e6e;
  line-height: 1.55;
}
.sup-cta-comunidad a {
  color: #d4a853;
  text-decoration: none;
  font-weight: 600;
}
.sup-cta-comunidad a:hover { text-decoration: underline; }