/* ==========================================================================
   Home - seccion Novedades (SPRINT UI-01 Consolidado)
   ========================================================================== */

.home-news {
  position: relative;
  background: var(--home-bg-soft, #f8faf9);
  color: var(--home-text, #172033);
  padding: var(--section-space, clamp(64px, 7vw, 96px) 24px);
  border-top: 1px solid var(--home-border-subtle, rgba(0, 63, 47, 0.08));
}

.home-news .home-news__container {
  width: min(var(--container-max, 1240px), 100%);
  margin: 0 auto;
}

/* --- Encabezado Estandarizado --- */

.home-news .home-news__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.home-news .home-news__eyebrow {
  display: inline-block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-green-500, #28965c);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(40, 150, 92, 0.08);
  border-radius: var(--radius-pill, 999px);
}

.home-news .home-news__header h2 {
  position: relative;
  margin: 0;
  color: var(--home-green-950, #003f2f);
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.home-news .home-news__view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--home-green-700, #0f6b49);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(15, 107, 73, 0.25);
  transition: all var(--transition-fast, 0.2s ease);
  white-space: nowrap;
}

.home-news .home-news__view-all:hover,
.home-news .home-news__view-all:focus-visible {
  color: var(--home-green-950, #003f2f);
  border-bottom-color: var(--home-green-500, #28965c);
}

.home-news a:focus-visible,
.home-news button:focus-visible {
  outline: 3px solid rgba(40, 150, 92, 0.55);
  outline-offset: 3px;
}

/* --- Layout --- */

.home-news .home-news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 30px;
  align-items: stretch;
}

/* --- Noticia principal --- */

.home-news .home-news__featured {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--home-border, #dce7e1);
  border-radius: var(--radius-lg, 16px);
  background: var(--home-surface, #ffffff);
  box-shadow: var(--shadow-primary, 0 12px 32px -6px rgba(0, 39, 29, 0.08));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-news .home-news__featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover, 0 16px 36px -8px rgba(0, 39, 29, 0.12));
  border-color: var(--home-green-500, #28965c);
}

.home-news .home-news__featured-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--home-green-100, #e7f3ec);
  color: inherit;
  text-decoration: none;
}

.home-news .home-news__featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

/* Scrim editorial + marco interior sutil: enmarca cualquier imagen (foto o
   póster) para que el recorte se lea intencional, no roto. */
.home-news .home-news__featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 39, 29, 0) 55%, rgba(0, 39, 29, 0.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 39, 29, 0.06);
}

.home-news .home-news__featured:hover .home-news__featured-media img {
  transform: scale(1.03);
}

.home-news .home-news__featured-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
}

.home-news .home-news__tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--home-muted, #52606d);
  font-size: 0.86rem;
  font-weight: 600;
}

.home-news .home-news__pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 999px);
  background: var(--home-green-100, #e7f3ec);
  color: var(--home-green-700, #0f6b49);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-news .home-news__featured-body h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.home-news .home-news__featured-body h3 a {
  color: var(--home-green-950, #003f2f);
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-news .home-news__featured-body h3 a:hover,
.home-news .home-news__featured-body h3 a:focus-visible {
  color: var(--home-green-500, #28965c);
}

.home-news .home-news__featured-body p {
  display: -webkit-box;
  margin: 0 0 22px;
  overflow: hidden;
  color: var(--home-muted, #52606d);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-news .home-news__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-green-700, #0f6b49);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  border-bottom: 2px solid rgba(15, 107, 73, 0.25);
  transition: all 0.2s ease;
}

.home-news .home-news__cta:hover,
.home-news .home-news__cta:focus-visible {
  color: var(--home-green-950, #003f2f);
  border-bottom-color: var(--home-gold, #c7a33c);
}

/* --- Noticias secundarias: listado editorial tipo periódico --- */

.home-news .home-news__secondary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-border, #dce7e1);
}

.home-news .home-news__row {
  min-width: 0;
  border-bottom: 1px solid var(--home-border, #dce7e1);
}

.home-news .home-news__row-link {
  display: block;
  position: relative;
  padding: 18px 6px 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

/* Filete dorado editorial que se activa al hover (acento discreto) */
.home-news .home-news__row-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--home-gold, #c7a33c);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.home-news .home-news__row-link:hover,
.home-news .home-news__row-link:focus-visible {
  background: rgba(40, 150, 92, 0.04);
  padding-left: 24px;
}

.home-news .home-news__row-link:hover::before,
.home-news .home-news__row-link:focus-visible::before {
  transform: scaleY(1);
}

.home-news .home-news__row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
  color: var(--home-muted, #52606d);
  font-size: 0.78rem;
  font-weight: 600;
}

.home-news .home-news__pill--sm {
  min-height: 20px;
  padding: 2px 9px;
  font-size: 0.62rem;
}

.home-news .home-news__row-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--home-green-950, #003f2f);
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color 0.2s ease;
}

.home-news .home-news__row-link:hover .home-news__row-title,
.home-news .home-news__row-link:focus-visible .home-news__row-title {
  color: var(--home-green-700, #0f6b49);
}

.home-news .home-news__media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, rgba(36, 148, 87, 0.14), rgba(0, 63, 47, 0.06)), var(--home-green-100);
  color: var(--home-green-500);
}

/* --- Responsive --- */

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

@media (max-width: 640px) {
  .home-news {
    padding: clamp(48px, 6vw, 72px) 18px;
  }

  .home-news .home-news__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-news .home-news__view-all {
    width: 100%;
    justify-content: center;
  }

  .home-news .home-news__row-link {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
