/*
  Hoja específica de Noticias.
  Archivo separado para evitar que la caché del navegador reutilice una versión antigua
  de styles.css al actualizar la web.
*/

.news-page {
  overflow-x: hidden;
}

.news-page .site-nav .is-active {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.news-page .news-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 68px;
  background:
    radial-gradient(circle at 88% 18%, rgba(110, 91, 232, 0.13), transparent 25%),
    radial-gradient(circle at 10% 12%, rgba(22, 184, 197, 0.13), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.news-page .news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.news-page .news-hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(2.65rem, 4.7vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.news-page .news-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.news-page .primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 13px 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(10, 47, 127, 0.18);
}

.news-page .news-highlight {
  padding: 32px;
  border: 1px solid rgba(17, 99, 200, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.news-page .news-highlight-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-page .news-highlight strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.news-page .news-highlight p {
  margin: 15px 0 0;
  color: var(--muted);
}

.news-page .news-note-section {
  padding: 30px 0 0;
}

.news-page .news-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #dfe8f7;
  border-radius: 16px;
  background: #f8fbff;
}

.news-page .news-note > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  font-family: Georgia, serif;
}

.news-page .news-note p {
  margin: 1px 0 0;
  color: var(--muted);
}

.news-page .news-section {
  padding: 72px 0 92px;
}

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

.news-page .community-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 330px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(37, 38, 72, 0.055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-page .community-card:hover {
  transform: translateY(-3px);
  border-color: #d6e0f5;
  box-shadow: 0 18px 48px rgba(37, 38, 72, 0.09);
}

.news-page .featured-community {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  border-color: rgba(22, 184, 197, 0.28);
}

.news-page .community-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.news-page .region-chip,
.news-page .status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.news-page .region-chip {
  color: var(--navy);
  background: #eef4ff;
}

.news-page .status-chip.forecast {
  color: #5543d4;
  background: rgba(110, 91, 232, 0.12);
}

.news-page .status-chip.official {
  color: #0f4ea1;
  background: rgba(17, 99, 200, 0.12);
}

.news-page .status-chip.strong {
  color: #08636b;
  background: rgba(22, 184, 197, 0.16);
}

.news-page .status-chip.future {
  color: #755114;
  background: #fff5dc;
}

.news-page .community-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.27;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.news-page .community-card p {
  margin: 13px 0 21px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.58;
  overflow-wrap: break-word;
}

.news-page .news-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  margin-top: auto;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.news-page .news-link span {
  flex: 0 0 auto;
}

.news-page .news-link:hover,
.news-page .news-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-page .news-cta-section {
  padding: 0 0 72px;
}

.news-page .news-contact-box {
  margin-top: 0;
}

/* Tablet */
@media (max-width: 980px) {
  .news-page .news-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .news-page .community-card {
    min-height: 0;
  }
}

/* Móvil */
@media (max-width: 720px) {
  .news-page .container {
    width: min(100% - 32px, 1120px);
  }

  /* Cabecera: compacta, ordenada y no pegajosa en móvil. */
  .news-page .site-header {
    position: relative;
    top: auto;
    background: #fff;
    backdrop-filter: none;
  }

  .news-page .header-simple {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 12px;
  }

  .news-page .header-brand-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .news-page .brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .news-page .brand img {
    width: 190px !important;
    max-width: 68vw;
    height: auto !important;
  }

  .news-page .header-tagline {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    color: var(--navy);
    font-size: 0.9rem;
    line-height: 1.42;
    font-weight: 700;
    text-align: center;
  }

  .news-page .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .news-page .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 8px 6px;
    border-radius: 10px;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .news-page .site-nav .is-active {
    color: #fff;
    background: var(--navy);
    text-decoration: none;
  }

  .news-page .news-hero {
    padding: 48px 0 40px;
  }

  .news-page .news-hero-grid {
    gap: 24px;
  }

  .news-page .news-hero .eyebrow {
    margin-bottom: 11px;
    font-size: 0.7rem;
  }

  .news-page .news-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10.3vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.042em;
  }

  .news-page .news-lead {
    margin-top: 17px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .news-page .primary-cta {
    width: 100%;
    margin-top: 21px;
  }

  .news-page .news-highlight {
    padding: 22px;
    border-radius: 19px;
  }

  .news-page .news-highlight strong {
    font-size: 1.65rem;
  }

  .news-page .news-note-section {
    padding-top: 20px;
  }

  .news-page .news-note {
    gap: 11px;
    padding: 15px;
    border-radius: 14px;
  }

  .news-page .news-note p {
    font-size: 0.91rem;
    line-height: 1.5;
  }

  .news-page .news-section {
    padding: 56px 0 62px;
  }

  .news-page .news-section .section-heading {
    max-width: none;
    margin: 0 0 28px;
    text-align: left;
  }

  .news-page .news-section .section-heading .eyebrow {
    margin-bottom: 9px;
  }

  .news-page .news-section .section-heading h2 {
    font-size: clamp(1.8rem, 8.2vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .news-page .news-section .section-heading p {
    margin: 13px 0 0;
    font-size: 0.96rem;
    line-height: 1.52;
  }

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

  .news-page .community-card,
  .news-page .featured-community {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 21px 20px 20px;
    border: 1px solid #dfe5f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(37, 38, 72, 0.06);
  }

  .news-page .featured-community {
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    border-color: rgba(22, 184, 197, 0.30);
  }

  .news-page .community-card:hover {
    transform: none;
  }

  .news-page .community-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 15px;
  }

  .news-page .region-chip,
  .news-page .status-chip {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.69rem;
    line-height: 1.15;
  }

  .news-page .community-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.26;
  }

  .news-page .community-card p {
    margin: 11px 0 17px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .news-page .news-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-top: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .news-page .news-cta-section {
    padding: 0 0 52px;
  }

  .news-page .news-contact-box {
    gap: 22px;
    padding: 24px 21px;
    border-radius: 20px;
  }

  .news-page .news-contact-box h2 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .news-page .news-contact-box p {
    font-size: 0.95rem;
    line-height: 1.52;
  }

  .news-page .contact-button {
    width: 100%;
    justify-content: center;
  }

  .news-page .site-footer {
    padding: 24px 0;
  }

  .news-page .footer-wrap {
    gap: 7px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .news-page .container {
    width: min(100% - 24px, 1120px);
  }

  .news-page .brand img {
    width: 172px !important;
  }

  .news-page .header-tagline {
    font-size: 0.84rem;
  }

  .news-page .site-nav {
    gap: 6px;
  }

  .news-page .site-nav a {
    padding-inline: 4px;
    font-size: 0.82rem;
  }

  .news-page .community-card,
  .news-page .featured-community {
    padding: 19px 17px 18px;
  }
}
