/* ============================================================
   TRIBU ANIMAL — news.css
   Exclusivo de noticias.html
   Depende de common.css para variables, nav, footer, cards base
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.news-hero {
  background: var(--c-cream);
  padding: 32px 0 48px;
  border-bottom: 0.5px solid var(--c-cream-border);
  position: relative;
  overflow: hidden;
}

/* Grain texture */
.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
}

/* Número decorativo de fondo */
.news-hero::after {
  content: '✦';
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(120px, 14vw, 200px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(61,92,58,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.news-hero .container { position: relative; }

/* Animaciones entrada */
.news-hero .section-eyebrow {
  opacity: 0;
  transform: translateY(12px);
  animation: newsUp 0.5s ease forwards 0s;
}

.news-hero-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.15;
  margin: 14px 0 18px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: newsUp 0.55s ease forwards 0.1s;
}

.news-hero-title em {
  font-style: italic;
  color: var(--c-moss);
}

.news-hero-desc {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--c-ink-mid);
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(12px);
  animation: newsUp 0.55s ease forwards 0.2s;
}

@keyframes newsUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── FILTROS ────────────────────────────────────────────── */
.news-filters-wrap {
  background: var(--c-white);
  border-bottom: 0.5px solid var(--c-cream-border);
  padding: 16px 0;
  position: sticky;
  top: 60px;
  z-index: 50;
}

.news-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.news-filters::-webkit-scrollbar { display: none; }

.news-filter-pill {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-ink-mid);
  background: transparent;
  border: 0.5px solid var(--c-cream-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.news-filter-pill:hover {
  border-color: var(--c-moss);
  color: var(--c-moss);
}

.news-filter-pill.active {
  background: var(--c-moss);
  border-color: var(--c-moss);
  color: #fff;
  font-weight: 500;
}

/* ── ARTÍCULO DESTACADO ─────────────────────────────────── */
.news-featured-section {
  background: var(--c-white);
  padding: 56px 0 0;
}

.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--c-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.5px solid var(--c-cream-border);
}

.news-featured-img-wrap {
  display: block;
  align-self: stretch;
  overflow: hidden;
}

.news-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-featured:hover .news-featured-img-wrap img {
  transform: scale(1.03);
}

.news-featured-body {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-featured-tag {
  align-self: flex-start;
  margin-bottom: 14px;
}

.news-featured-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--c-ink-soft);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.news-featured-title a {
  color: inherit;
  transition: color var(--transition);
}

.news-featured-title a:hover { color: var(--c-moss); }

.news-featured-excerpt {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-ink-mid);
  line-height: 1.8;
  margin-bottom: 24px;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.news-meta-author {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink-soft);
}

.news-meta-detail {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--c-ink-light);
  margin-top: 1px;
}

.news-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-moss);
  transition: gap var(--transition);
  align-self: flex-start;
}

.news-featured-cta:hover { gap: 10px; }

/* Tags de categoría en cards — colores de texto */
.tag-tendencias-text  { color: var(--c-slate);  }
.tag-salud-text       { color: var(--c-moss);   }
.tag-nutricion-text   { color: var(--c-moss);   }
.tag-comportamiento-text { color: var(--c-ochre); }

/* Tags visuales para el featured */
.tag-tendencias {
  background: var(--c-slate-light);
  color: var(--c-slate);
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* ── GRID DE ARTÍCULOS ──────────────────────────────────── */
.news-grid-section {
  background: var(--c-white);
  padding: 40px 0 64px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Las news-card base están en common.css.
   Aquí solo ajustamos el eyebrow dentro de la card */
.news-card-body .eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

/* Reveal al scroll */
.news-card.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Transición suave en filtrado */
.news-card {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-card.news-hidden {
  display: none;
}

/* Estado vacío */
.news-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--c-ink-light);
  font-family: var(--f-body);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── CTA ────────────────────────────────────────────────── */
.news-cta-section {
  background: var(--c-moss-light);
  padding: 64px 0;
}

.news-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.news-cta-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-ink);
  margin: 10px 0 8px;
  line-height: 1.3;
}

.news-cta-desc {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--c-ink-mid);
  max-width: 480px;
  line-height: 1.75;
}

.news-cta-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* TABLET */
@media (max-width: 1023px) {
  .news-hero-title { font-size: 32px; }
  .news-hero::after { display: none; }

  .news-featured {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .news-featured-body { padding: 32px 32px 32px 0; }

  .news-grid { grid-template-columns: repeat(2, 1fr); }

  .news-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* MOBILE */
@media (max-width: 767px) {
  .news-hero { padding: 28px 0 32px; }
  .news-hero-title { font-size: 24px; }

  .news-featured {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-featured-img-wrap { aspect-ratio: 16 / 9; }

  .news-featured-body {
    padding: 24px;
  }

  .news-featured-title { font-size: 18px; }

  .news-grid { grid-template-columns: 1fr; gap: 16px; }

  .news-cta-section { padding: 40px 0; }
  .news-cta-title { font-size: 18px; }
}
