@charset "UTF-8";
/* ==========================================================
   ANJUZ - Sección de noticias
   Archivo independiente: no modifica css/estilos.css
   Para cambiar colores, edita las variables de :root
   ========================================================== */
:root {
  --nt-acento: #844098;
  /* color de acento (ajústalo a la paleta del sitio) */
  --nt-texto: #333;
  --nt-texto-suave: #777;
  --nt-borde: #e3e3e3;
  --nt-fondo: #fff;
}

/* colores */
/* ----------- AÑOS ------------ */
.years summary {
  background-color: #844098;
  padding: 10px 1em;
  border-radius: 10px 10px 0 0;
  color: white;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  cursor: pointer;
  list-style: none;
  /* quita el triángulo nativo */
  user-select: none;
}

.years > summary::-webkit-details-marker {
  display: none;
}

.years .--numbers {
  font-family: 'Mukta', sans-serif;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.years > summary::after {
  /* flecha propia */
  content: "";
  margin-left: auto;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid #c1bdc6;
  border-bottom: 2px solid #c1bdc6;
  transform: rotate(45deg);
  transition: transform .2s ease;
  align-self: center;
}

.years > summary:hover {
  background: #d0ced8;
  transition-property: all;
  -moz-transition-property: all;
  /* Firefox 4 */
  -webkit-transition-property: all;
  /* Safari and Chrome */
  -o-transition-property: all;
  /* Opera */
  transition-duration: 0.600s;
  -webkit-transition-duration: 0.600s;
}

.years > summary:hover .--numbers {
  color: #844098;
}

.years > summary:hover ::after {
  transition-property: all;
  -moz-transition-property: all;
  /* Firefox 4 */
  -webkit-transition-property: all;
  /* Safari and Chrome */
  -o-transition-property: all;
  /* Opera */
  transition-duration: 0.600s;
  -webkit-transition-duration: 0.600s;
  background-color: #844098;
  border-right: 2px solid #844098;
  border-bottom: 2px solid #844098;
}

.years > summary:focus-visible {
  outline: 3px solid var(--nt-acento);
  outline-offset: -3px;
}

.years .--cuenta {
  font-size: .85rem;
  color: var(--nt-texto-suave);
}

.years .year-contenido {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.25rem;
  border-top: 1px solid var(--nt-borde);
}

.years[open] > summary::after {
  transform: rotate(-135deg);
}

/* ---------- Acordeón por año ---------- */
/* ---------- Lista y tarjeta de noticia ---------- */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.noticia {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--nt-borde);
  border-left: 5px solid var(--nt-acento);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1em;
}

.noticia .--encabezado {
  background: none;
  padding: 0 0 10px 0;
}

.noticia .--fecha {
  display: block;
  font-size: 0.7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nt-texto-suave);
  margin-bottom: .25rem;
  font-family: 'Nunito Sans', sans-serif;
}

.noticia .--titulo {
  margin: 10px 0 0.5em;
  color: var(--nt-acento);
  font-size: 1.5rem;
  font-weight: 600;
}

.noticia .--texto {
  width: 90%;
  margin: 0 auto;
}

.noticia .--texto p {
  margin: 0 0 1rem;
  line-height: 1.4em;
  color: var(--nt-texto);
  font-size: 1rem;
}

/* ---------- Mini galería ---------- */
.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* centers the thumbnails, including a partial last row */
  gap: .6rem;
  margin-top: 1.25rem;
}

.galeria a {
  display: block;
  width: 150px;
  /* fixed thumbnail width; adjust to taste */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}

.galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, opacity .25s ease;
}

.galeria a:hover img,
.galeria a:focus-visible img {
  transform: scale(1.06);
  opacity: .9;
}

.galeria a:focus-visible {
  outline: 3px solid var(--nt-acento);
  outline-offset: 2px;
}

/* ---------- Modal (lightbox) ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 3rem 3.5rem;
}

.lb.lb-abierto {
  display: flex;
  animation: lb-entrada .2s ease;
}

@keyframes lb-entrada {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lb-figura {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lb-pie {
  color: #eee;
  font-size: .9rem;
  text-align: center;
  margin-top: .75rem;
}

.lb-contador {
  display: block;
  opacity: .65;
  font-size: .8rem;
  margin-top: .2rem;
}

.lb button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}

.lb button:hover,
.lb button:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.lb-cerrar {
  top: 1rem;
  right: 1rem;
}

.lb-prev {
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Evita que la página de fondo se desplace con el modal abierto */
body.lb-activo {
  overflow: hidden;
}

/* ---------- Móvil ---------- */
@media (max-width: 600px) {
  .noticia {
    padding: 1.1rem 1rem;
  }
  .lb {
    padding: 3.5rem .5rem 3rem;
  }
  .lb-prev {
    left: .25rem;
  }
  .lb-next {
    right: .25rem;
  }
  .galeria a {
    width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb.lb-abierto {
    animation: none;
  }
  .galeria img {
    transition: none;
  }
}

/*# sourceMappingURL=noticias.css.map */
