/* ═══════════════════════════════════════════════════════════════
   La Zona RP — Noticias / Actualizaciones
═══════════════════════════════════════════════════════════════ */

.news-page {
  --news-accent: #c0392b;
  --news-accent-soft: rgba(192, 57, 43, 0.12);
  --news-warm: var(--accent-warm);
}

.news-hero {
  padding: calc(var(--header-h) + 2.5rem) 1.25rem 2rem;
  text-align: center;
}

.news-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.news-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0.35rem 0 0.75rem;
}

.news-hero__desc {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
}

.news-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.news-filters__btn {
  background: none;
  border: 0;
  padding: 0.35rem 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color var(--transition);
}

.news-filters__btn:hover,
.news-filters__btn.is-active {
  color: var(--text);
}

.news-filters__btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: 2px;
  background: var(--news-warm);
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
  box-shadow: 0 14px 40px rgba(14, 14, 14, 0.12);
}

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

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card-3);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-card__badge--tienda { background: var(--news-accent); }
.news-card__badge--parche { background: #2563eb; }
.news-card__badge--hotfix { background: #7c3aed; }
.news-card__badge--evento { background: var(--news-warm); color: #fff; }
.news-card__badge--anuncio { background: #0f766e; }

.news-card__body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.news-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__date {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.news-empty i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.45;
}

/* Detalle */
.news-detail {
  padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
}

.news-detail__wrap {
  max-width: 860px;
  margin: 0 auto;
}

.news-detail__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.news-detail__badge--tienda { background: var(--news-accent); }
.news-detail__badge--parche { background: #2563eb; }
.news-detail__badge--hotfix { background: #7c3aed; }
.news-detail__badge--evento { background: var(--news-warm); }
.news-detail__badge--anuncio { background: #0f766e; }

.news-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 0.98;
  margin: 0 0 0.5rem;
}

.news-detail__date {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.news-detail__divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--news-warm), rgba(217, 119, 6, 0.15));
  border: 0;
  margin: 0 0 1.75rem;
}

.news-detail__hero {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.news-detail__hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.news-detail__content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.news-detail__content > *:first-child {
  margin-top: 0;
}

.news-detail__content h2,
.news-detail__content h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.news-detail__content p {
  margin: 0 0 1rem;
}

.news-detail__content ul,
.news-detail__content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.news-detail__content a {
  color: var(--news-accent);
  text-decoration: underline;
}

.news-detail__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.news-detail__content th {
  background: var(--news-warm);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.news-detail__content th:first-child { border-radius: 8px 0 0 0; }
.news-detail__content th:last-child { border-radius: 0 8px 0 0; }

.news-detail__content td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}

.news-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.news-detail__back:hover {
  color: var(--text);
}

.news-related {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.news-related__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
  }

  .news-filters__btn {
    white-space: nowrap;
  }
}
