/*
  DDSYS — Página: Novedades
  Listado público de publicaciones, alimentado por
  js/novedades-dynamic.js desde el endpoint público del panel.
  Layout de artículo/lista simple, mismo criterio que las páginas
  legales (Privacidad/Términos): sin componentes de la landing.
*/

.novedades {
  background-color: var(--surface-page);
  padding-block: var(--space-24);
}

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

.novedades__title {
  font-size: var(--text-h2-mobile);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.novedades__subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.novedades__empty {
  color: var(--text-secondary);
}

.novedades__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.post-item {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--surface-card-border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item__date {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.post-item__title {
  font-size: 1.375rem;
  margin-bottom: var(--space-3);
}

.post-item__image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: var(--space-4);
}

.post-item__content {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: var(--space-4);
}

.post-item__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-brand);
  font-weight: var(--weight-medium);
  font-size: 0.9375rem;
}

@media (min-width: 1024px) {
  .novedades__title {
    font-size: var(--text-h2);
  }
}
