@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
:root {
  --azul-principal: #004171;
  --azul-secundario1: #0d5575;
  --azul-secundario2: #297ba2;
  --azul-secundario3: #389eb0;
  --color-destacado: #FF9154;
  --gris-fondo: #f9f9f9;
}
/*NOTICIAS*/
.contenedor-archivo-noticias {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.contenedor-archivo-noticias h1 {
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 700;
  color: var(--azul-principal);
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--azul-secundario1);
  padding-bottom: 0.5rem;
  letter-spacing: 1px;
}

.contenedor-archivo-noticias .thumb {
  width: 100%;
  height: 160px; 
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.contenedor-archivo-noticias .thumb img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.listado-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.noticia-resumen {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-left: 5px solid #003366;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.noticia-resumen:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.noticia-resumen a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1.5rem;
}

.noticia-resumen .thumb {
  width: 100%;
  overflow: hidden;
}

.noticia-resumen .thumb img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.noticia-resumen h2 {
  font-size: 1.25rem;
  color: #003366;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.noticia-resumen .fecha {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 1rem;
}

.noticia-resumen p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

.paginacion {
  text-align: center;
  margin-top: 2rem;
}

.paginacion .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.paginacion .current {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.paginacion .page-numbers:hover {
  background-color: #eee;
}

.contenedor-noticia {
  max-width: 1200px; 
  margin: 3rem auto;
  padding: 2rem;
  background-color: #fff;
}

.noticia-individual {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 18px; 
  line-height: 1.7;
  background-color: #fafafa;
}

.noticia-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.noticia-titulo {
  font-size: 2.4rem;
  color: var(--azul-principal);
  margin-bottom: 0.3rem;
}

.noticia-fecha {
  font-size: 1rem;
  color: #888;
}

.noticia-contenido {
  color: #333;
  margin-top: 1.5rem;
  text-align: justify;
}

.noticia-contenido img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.noticia-imagen {
  margin: 2rem 0;
  text-align: center;
  width: 100%;
}

.noticia-imagen img {
  width: 300px;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.enlace-volver {
  margin-top: 2.5rem;
  text-align: left;
}

.enlace-volver a {
  color: var(--gris-fondo);
  text-decoration: none;
  font-weight: 600;
}

.enlace-volver a:hover {
  color: var(--gris-fondo);
}

.noticia-contenido .swiper {
    margin: 40px 0;
    padding-bottom: 40px;
}

/*
.noticia-contenido .swiper-slide {
    display:flex;
    justify-content:center;
    align-items:center;
}*/

.noticia-contenido .swiper-slide img {
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
    transition:transform .25s ease;
    width:auto;
}

.noticia-contenido .swiper-slide img:hover{
    transform:scale(1.04);
}

.noticia-contenido .swiper-button-next,
.noticia-contenido .swiper-button-prev{
    color: var(--azul-principal);
}

.noticia-contenido .swiper-pagination-bullet-active{
    background: var(--azul-principal);
}

.noticia-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    opacity:0;
    pointer-events:none;
    transition:.25s ease;
    z-index:9999;
}

.noticia-lightbox.activo{
    opacity:1;
    pointer-events:auto;
}

.lightbox-img{
    max-width:90%;
    max-height:80vh;
    border-radius:10px;
    box-shadow:0 20px 60px rgba(0,0,0,.6);
}

.lightbox-caption{
    color:#fff;
    margin-top:15px;
    font-size:15px;
    text-align:center;
    max-width:800px;
}

.lightbox-cerrar{
    position:absolute;
    top:20px;
    right:30px;
    font-size:40px;
    color:#fff;
    cursor:pointer;
}

.swiper-button-next::after,
.swiper-button-prev::after{
    display:none;
}

.noticia-individual .swiper{
    position:relative;
}

/*
.noticia-individual .swiper-slide{
    display:flex;
    justify-content:center;
    align-items:flex-start;
}*/

.noticia-individual .swiper-slide figure{
    display:flex;
    flex-direction:column;
    align-items:center;
    max-width:900px;
    width:100%;
}

.noticia-individual .swiper-slide .wp-caption-text .gallery-caption{
    margin-top:12px;
    padding:10px 14px;
    font-size:14px;
    line-height:1.5;
    color:#555;
    background:#f3f5f7;
    border-radius:10px;
    width:20px;
    box-sizing:border-box;
}

.noticia-individual .swiper-button-next,
.noticia-individual .swiper-button-prev{
    width:46px;
    height:46px;
    border-radius:50%;
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(6px);
    box-shadow:0 6px 18px rgba(0,0,0,.25);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .25s ease;
    top:50% !important;
    transform:translateY(-50%);
}

.noticia-individual .swiper-button-next i,
.noticia-individual .swiper-button-prev i{
    color:var(--azul-principal);
    font-size:18px;
}

.noticia-individual .swiper-button-next:hover,
.noticia-individual .swiper-button-prev:hover{
    background:var(--azul-principal);
    transform:translateY(-50%) scale(1.08);
}

.noticia-individual .swiper-button-next:hover i,
.noticia-individual .swiper-button-prev:hover i{
    color:white;
}

.noticia-individual .swiper-button-prev{
    left:12px;
}

.noticia-individual .swiper-button-next{
    right:12px;
}

.noticia-individual .swiper-slide{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
}

.noticia-individual .gallery-icon{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.noticia-individual .gallery-icon img{
    height:100%;
    width:auto;
    max-width:100%;
    object-fit:contain;
}

.noticia-individual figure.gallery-item{
    width:100%;
    max-width:900px;
    margin:0;
    display:flex;
    flex-direction:column;
}

.noticia-individual .wp-caption-text{
    overflow:auto;          
    padding:12px 16px;
    background:#f1f3f5;
    border-radius:10px;
    font-size:14px;
    line-height:1.45;
    font-weight: bold;
    margin: 0;
}

/* MOBILE */
@media (min-width: 768px) and (max-width: 1024px)  {
    .listado-noticias {
    grid-template-columns: 2fr;
  }

  .contenedor-archivo-noticias h1 {
    font-size: 3rem;
  }

  .noticia-titulo {
    font-size: 3rem;
  }

  .noticia-resumen h2 {
    font-size: 2rem;
  }

  .noticia-resumen p {
    font-size: 2rem;
  }
  
  .noticia-individual {
    font-size: 2rem; 
  }
  
  .noticia-fecha {
    font-size: 2rem; 
  }

  .noticia-resumen .fecha{
    font-size: 2rem;
  }

  .badge-sede{
    font-size: 2rem; 
  }

  .noticia-imagen img{
    width: 500px;
  }

  .paginacion .page-numbers.current {
    font-size: 1.8rem;
  }

  .paginacion .page-numbers{
    font-size: 2rem;
  }

  .noticia-contenido p{
    font-size: 2.5rem;
  }
  
}