/* ==========================================================================
   Noticias — índice y página de artículo
   Generado por tools/build-noticias.mjs. Estilos propios de esta sección.
   ========================================================================== */

:root {
  --azul: #0055b8;
  --azul-oscuro: #003d85;
  --azul-suave: #eaf2fb;
  --texto: #2b3038;
  --texto-tenue: #626b78;
  --linea: #e3e8ef;
  --radio: 12px;
}

/* --------------------------------------------------------------------------
   Índice de noticias
   -------------------------------------------------------------------------- */

.noticias-indice {
  padding: 60px 0 80px;
}

.noticias-cabecera {
  text-align: center;
  margin-bottom: 50px;
}

.noticias-cabecera h1 {
  margin-bottom: 10px;
}

.noticias-cabecera p {
  color: var(--texto-tenue);
  font-size: 1.05rem;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.noticia-tarjeta {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noticia-tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 85, 184, 0.12);
}

.noticia-tarjeta a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.noticia-tarjeta-imagen {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--azul-suave);
}

.noticia-tarjeta-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.noticia-tarjeta-texto {
  padding: 22px 24px 26px;
}

.noticia-tarjeta-texto time {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-tenue);
  margin-bottom: 10px;
}

.noticia-tarjeta-texto h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--azul);
  text-align: left;
  margin: 0 0 12px;
  font-weight: 600;
}

.noticia-tarjeta-texto p {
  font-size: 0.94rem;
  color: var(--texto-tenue);
  margin-bottom: 16px;
}

.noticia-tarjeta-mas {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul);
}

.noticia-tarjeta-mas::after {
  content: " →";
}

/* --------------------------------------------------------------------------
   Artículo
   -------------------------------------------------------------------------- */

.noticia {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.migas {
  font-size: 0.85rem;
  color: var(--texto-tenue);
  margin-bottom: 30px;
}

.migas a {
  color: var(--texto-tenue);
  text-decoration: none;
}

.migas a:hover {
  color: var(--azul);
  text-decoration: underline;
}

.migas span {
  margin: 0 8px;
}

.noticia-cabecera {
  margin-bottom: 34px;
}

.noticia-fecha {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--texto-tenue);
  margin-bottom: 14px;
}

/* Las reglas globales centran los títulos; en un artículo estorban. */
.noticia h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  text-align: left;
  margin-bottom: 18px;
}

.noticia-entradilla {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--texto-tenue);
}

.noticia-imagen {
  margin: 0 0 38px;
  border-radius: var(--radio);
  overflow: hidden;
}

.noticia-imagen img {
  width: 100%;
  height: auto;
  display: block;
}

.noticia-cuerpo {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--texto);
}

.noticia-cuerpo p {
  margin-bottom: 1.3em;
}

.noticia-cuerpo h2,
.noticia-cuerpo h3 {
  text-align: left;
  color: var(--azul);
  margin: 2em 0 0.7em;
}

.noticia-cuerpo h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.noticia-cuerpo h3 {
  font-size: 1.2rem;
  padding: 0;
}

.noticia-cuerpo ul,
.noticia-cuerpo ol {
  margin: 0 0 1.3em 1.3em;
}

.noticia-cuerpo li {
  margin-bottom: 0.5em;
}

.noticia-cuerpo a {
  color: var(--azul);
}

.noticia-cuerpo strong {
  color: #1b2028;
  font-weight: 600;
}

.noticia-cuerpo blockquote {
  border-left: 4px solid var(--azul);
  background: var(--azul-suave);
  padding: 18px 22px;
  margin: 0 0 1.4em;
  border-radius: 0 var(--radio) var(--radio) 0;
}

.noticia-cuerpo blockquote p {
  margin: 0;
  font-style: italic;
}

.noticia-cuerpo img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radio);
  margin: 1em 0;
}

/* --------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */

.noticia-faq {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--linea);
}

.noticia-faq h2 {
  text-align: left;
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.noticia-faq details {
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  margin-bottom: 12px;
  background: #fff;
}

.noticia-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--azul);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.noticia-faq summary::-webkit-details-marker {
  display: none;
}

.noticia-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--texto-tenue);
  flex-shrink: 0;
  line-height: 1;
}

.noticia-faq details[open] summary::after {
  content: "−";
}

.noticia-faq details p {
  padding: 0 20px 18px;
  color: var(--texto);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Llamada a la acción y noticias relacionadas
   -------------------------------------------------------------------------- */

.noticia-cta {
  margin-top: 56px;
  padding: 34px 30px;
  background: var(--azul);
  border-radius: var(--radio);
  text-align: center;
  color: #fff;
}

.noticia-cta h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.noticia-cta p {
  margin-bottom: 22px;
  opacity: 0.92;
}

.noticia-cta-botones {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primario,
.btn-secundario {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primario {
  background: #fff;
  color: var(--azul);
}

.btn-primario:hover {
  background: var(--azul-suave);
}

.btn-secundario {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.14);
}

.noticia-relacionadas {
  max-width: 1200px;
  margin: 70px auto 0;
  padding: 0 20px;
}

.noticia-relacionadas h2 {
  text-align: left;
  font-size: 1.45rem;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Móvil
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .noticias-indice {
    padding: 40px 0 60px;
  }

  .noticias-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .noticia {
    padding: 26px 18px 60px;
  }

  .noticia-cuerpo {
    font-size: 1rem;
  }

  .noticia-cta {
    padding: 28px 20px;
  }

  .noticia-cta-botones {
    flex-direction: column;
  }
}
