/* LabAncestral · noticias.css
   Estilos exclusivos de la página Noticias. */

.nt-page {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #F6EFE1;
  color: #152514;
  font-family: 'IBM Plex Sans', sans-serif;
}

.nt-page *,
.nt-page *::before,
.nt-page *::after {
  min-width: 0;
}

.nt-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Encabezado */
.nt-hero {
  width: 100%;
  padding: 90px 44px 70px;
  background: #0E3D22;
  color: #fff;
}

.nt-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: #7fae89;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nt-eyebrow > span {
  display: block;
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  background: #3a6b4b;
}

.nt-title {
  margin: 0 0 16px;
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.nt-intro {
  max-width: 620px;
  margin: 0;
  color: #bcd2c4;
  font-size: 18px;
  line-height: 1.6;
}

/* Contenido */
.nt-content {
  padding: 64px 44px 90px;
}

/* Noticia destacada */
.nt-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  margin-bottom: 64px;
  color: inherit;
  text-decoration: none;
}

.nt-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(
      120% 80% at 74% 14%,
      #F6CE7E 0%,
      #E59A2C 18%,
      transparent 50%
    ),
    linear-gradient(
      180deg,
      #c89a55 0%,
      #9e7038 26%,
      #5e8f33 27%,
      #3c7a2c 56%,
      #1d6a35 80%,
      #124a27 100%
    );
  box-shadow: 0 30px 60px -30px rgba(14, 61, 34, .5);
}

.nt-featured__image,
.nt-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nt-featured__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #EE9A1C;
  color: #0E3D22;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
}

.nt-meta {
  margin-bottom: 14px;
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
}

.nt-featured__title {
  margin: 0 0 16px;
  color: #1a2417;
  font-family: 'Spectral', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.01em;
}

.nt-featured__summary {
  margin: 0 0 22px;
  color: #54503f;
  font-size: 16px;
  line-height: 1.65;
}

.nt-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid #EE9A1C;
  color: #16331c;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
}

.nt-read-more > span {
  font-size: 17px;
}

/* Grilla y tarjetas */
.nt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 30px;
}

.nt-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #ece1c9;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px -24px rgba(14, 61, 34, .4);
  transition: transform .22s ease, box-shadow .22s ease;
}

.nt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -26px rgba(14, 61, 34, .5);
}

.nt-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #4a9433, #1d6a35);
}

.nt-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0E3D22;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.nt-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px;
}

.nt-card__body .nt-meta {
  margin-bottom: 11px;
  font-size: 11px;
}

.nt-card__title {
  margin: 0 0 10px;
  color: #1a2417;
  font-family: 'Spectral', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.nt-card__summary {
  margin: 0;
  color: #6b6657;
  font-size: 14px;
  line-height: 1.6;
}

/* Estado vacío */
.nt-empty {
  padding: 80px 20px;
  color: #9a957f;
  text-align: center;
}

.nt-empty__title {
  margin-bottom: 8px;
  color: #54503f;
  font-family: 'Spectral', serif;
  font-size: 24px;
}

.nt-empty p {
  margin: 0;
  font-size: 15px;
}

/* Tablet */
@media (max-width: 820px) {
  .nt-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .nt-featured__content {
    max-width: 680px;
  }
}

/* Móvil */
@media (max-width: 700px) {
  .nt-hero {
    padding: 60px 20px 50px;
  }

  .nt-title {
    font-size: clamp(38px, 11vw, 48px);
  }

  .nt-intro {
    font-size: 16px;
  }

  .nt-content {
    padding: 48px 20px 66px;
  }

  .nt-featured {
    gap: 24px;
    margin-bottom: 48px;
  }

  .nt-featured__media {
    border-radius: 15px;
  }

  .nt-featured__title {
    font-size: clamp(27px, 8vw, 34px);
  }

  .nt-featured__summary {
    font-size: 15px;
  }

  .nt-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .nt-card__body {
    padding: 20px;
  }

  .nt-empty {
    padding: 60px 0;
  }
}

/* Teléfonos estrechos */
@media (max-width: 430px) {
  .nt-hero {
    padding: 52px 16px 44px;
  }

  .nt-content {
    padding: 42px 16px 60px;
  }

  .nt-featured__badge {
    top: 12px;
    left: 12px;
  }

  .nt-card__category {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nt-page *,
  .nt-page *::before,
  .nt-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}