/* =====================================================
   CABECERA
===================================================== */

.noticias-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 24px;
}
.noticias-header h1 {
  margin: 0;

  /*color: #263065;*/
  font-size: 24px;
  font-weight: 700;
}

.noticias-header h1 i {
  margin-right: 7px;
}

.noticias-header p {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .noticias-container {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .noticias-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .noticias-header h1 {
    font-size: 21px;
  }
}

/* =====================================================
   LISTADO
===================================================== */

.noticias-lista {
  display: flex;

  flex-direction: column;

  gap: 20px;
}

/* =====================================================
   NOTICIA DEL ÍNDICE
===================================================== */

.noticia {
  padding: 25px 28px;

  border: 1px solid rgba(38, 48, 101, 0.25);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.02);
}

.noticia-fecha {
  margin-bottom: 9px;

  color: #e83c3d;

  font-size: 14px;

  font-weight: 600;
}

.noticia-fecha i {
  margin-right: 5px;
}

.noticia h2 {
  margin: 0 0 12px;

  font-size: 23px;

  font-weight: 500;
}

.noticia > p {
  margin: 0 0 20px;

  line-height: 1.65;
}

/* =====================================================
   ENLACE
===================================================== */

.noticia-enlace {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: #e83c3d;

  font-weight: 600;

  text-decoration: none;
}

.noticia-enlace:hover {
  text-decoration: underline;
}

/* =====================================================
   PÁGINA INDIVIDUAL
===================================================== */

.noticia-page {
  margin: 0 auto;

  padding: 30px 20px 60px;
}

.noticia-completa {
  padding: 30px;

  border: 1px solid rgba(38, 48, 101, 0.25);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.02);
}

.noticia-completa h1 {
  margin: 0 0 30px;

  font-size: 30px;

  font-weight: 500;
}

.noticia-contenido {
  line-height: 1.65;
}

.noticia-contenido h2 {
  margin: 35px 0 14px;

  padding-bottom: 7px;

  border-bottom: 1px solid rgba(38, 48, 101, 0.2);

  font-size: 22px;

  font-weight: 500;
}

.noticia-contenido h3 {
  margin: 28px 0 10px;

  color: #e83c3d;

  font-size: 19px;

  font-weight: 600;
}

.noticia-contenido p {
  margin: 15px 0;
}

.noticia-contenido ul {
  margin: 10px 0 20px;

  padding-left: 25px;
}

.noticia-contenido li {
  margin-bottom: 5px;
}

.noticia-intro {
  margin-bottom: 30px !important;

  font-size: 17px;
}

.noticia-final {
  margin-top: 35px;

  padding-top: 20px;

  border-top: 1px solid rgba(38, 48, 101, 0.2);

  font-weight: 500;
}

/* =====================================================
   VOLVER
===================================================== */

.volver-noticias {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-top: 35px;

  color: #263065;

  font-weight: 600;

  text-decoration: none;
}

.volver-noticias:hover {
  color: #e83c3d;
}

/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {
  .noticias-page {
    padding: 25px 14px 45px;
  }

  .noticias-page .page-header h1 {
    font-size: 26px;
  }

  .noticia {
    padding: 21px 18px;
  }

  .noticia h2 {
    font-size: 20px;
  }

  .noticia-completa {
    padding: 22px 18px;
  }

  .noticia-completa h1 {
    font-size: 26px;
  }

  .noticia-contenido h2 {
    font-size: 20px;
  }

  .noticia-contenido h3 {
    font-size: 18px;
  }
}
/* =====================================================
   TEXTO DE LA NOTICIA
===================================================== */

.noticia-texto {
  margin-top: 25px;

  font-family: "Courier New", Courier, monospace;

  font-size: 15px;

  line-height: 1.65;
}

.noticia-texto p {
  margin: 0;

  white-space: pre-line;
}

/* =====================================================
   IMAGEN DE LA NOTICIA
===================================================== */

.noticia-imagen {
  margin: 35px auto;

  text-align: center;
}

.noticia-imagen img {
  display: block;

  width: 100%;

  max-width: 760px;

  height: auto;

  margin: 0 auto;

  border-radius: 6px;
}

.noticia-imagen figcaption {
  max-width: 760px;

  margin: 10px auto 0;

  color: inherit;

  font-size: 13px;

  line-height: 1.5;

  opacity: 0.65;

  text-align: center;
}

/* =====================================================
   FUENTE
===================================================== */

.noticia-fuente {
  display: flex;

  align-items: center;

  gap: 13px;

  margin-top: 40px;

  padding: 14px 17px;

  border-left: 3px solid #e83c3d;

  background: rgba(38, 48, 101, 0.06);
}

.noticia-fuente > i {
  flex-shrink: 0;

  font-size: 21px;

  color: #fff;
}

.noticia-fuente-texto {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.noticia-fuente-texto > span:first-child {
  flex-shrink: 0;
}

.noticia-fuente-texto a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.noticia-fuente-texto > i {
  flex-shrink: 0;
  font-size: 14px;
}

.noticia-fuente-texto span {
  font-size: 12px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  opacity: 0.6;
}

.noticia-fuente-texto a {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  color: #e83c3d;

  font-weight: 600;

  text-decoration: none;
}

.noticia-fuente-texto a:hover {
  color: #e83c3d;
}

.noticia-fuente-texto a i {
  font-size: 12px;
}
/* =====================================================
   ENLACE DE LA NOTICIA
===================================================== */

.noticia-enlace-contenedor {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.noticia-enlace {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 16px;

  background-color: #263065;
  color: #fff;

  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;

  border-radius: 4px;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.noticia-enlace:hover {
  background-color: #e83c3d;
  color: #fff;
}

.noticia-enlace i {
  font-size: 1rem;
}
.volver-noticias > i:last-child {
  transition: transform 0.2s ease;
}
.noticia-enlace:hover > i:last-child {
  transform: translateX(3px);
}

/* =====================================================
   VOLVER A NOTICIAS
===================================================== */

.volver-noticias {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  width: fit-content;

  margin: 38px auto 0;

  padding: 10px 17px;

  border: 1px solid rgba(38, 48, 101, 0.25);

  border-radius: 6px;

  color: #e83c3d;
  background-color: #ccc;

  font-size: 14px;

  font-weight: 600;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.volver-noticias:hover {
  background-color: #fff;

  border-color: rgba(38, 48, 101, 0.45);

  color: #e83c3d;
}

.volver-noticias > i:last-child {
  font-size: 13px;

  transition: transform 0.2s ease;
}

.volver-noticias:hover > i:last-child {
  transform: translateX(-3px);
}
@media (max-width: 600px) {
  .noticia-texto {
    font-size: 14px;

    line-height: 1.6;
  }

  .noticia-imagen {
    margin: 28px auto;
  }

  .noticia-imagen figcaption {
    font-size: 12px;
  }

  .noticia-fuente {
    margin-top: 30px;

    padding: 12px 14px;
  }

  .volver-noticias {
    width: 100%;

    box-sizing: border-box;
  }
}

/* =========================================
   FUENTES
========================================= */

.fuentes {
  max-width: 610px;
  margin: 18px auto 12px;
  text-align: center;
  font-size: 0.78rem;
  margin-bottom: 45px;
}

.fuentes-toggle {
  background: none;
  border: none;
  padding: 4px 8px;
  color: #999;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.25s ease;
}

.fuentes-toggle:hover {
  color: #ccc;
}

.fuentes-text {
  max-width: 760px;
  margin: 8px auto 0;
  padding: 12px 18px;
  color: #888;
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: left;

  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid rgba(255, 255, 255, 0.15);

  display: none;
}

.fuentes-text p {
  margin: 0 0 8px;
  font-size: 0.75rem;
}

.fuentes-text p:last-child {
  margin-bottom: 0;
}
.fuentes-toggle i {
  margin-right: 4px;
}
.fuentes button {
  text-transform: uppercase;
  font-size: 0.8em;
}
/* =========================================================
   FOTOGRAFÍAS DE LA NOTICIA
   Compatible con el sistema de fotografías de artículos
   ========================================================= */

.noticia-texto figure.imagen-articulo {
  width: 330px;

  margin-top: 8px;
  margin-bottom: 18px;

  background: #fff;
}

.noticia-texto figure.imagen-articulo.imagen-grande {
  width: 50%;
}

.noticia-texto figure.imagen-articulo.imagen-pequena {
  width: 220px;
}

.noticia-texto figure.imagen-articulo.imagen-maspequena {
  width: 150px;
}

.noticia-texto figure.imagen-articulo.float-izquierda {
  float: left;

  margin-right: 30px;
  margin-left: 0;
}

.noticia-texto figure.imagen-articulo.float-derecha {
  float: right;

  margin-left: 30px;
  margin-right: 0;
}

.noticia-texto figure.imagen-articulo.imagen-destacada {
  float: none;

  width: 100%;

  margin: 35px 0;
}

.noticia-texto figure.imagen-articulo img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 2px;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.noticia-texto figure.imagen-articulo a {
  display: block;
}

.noticia-texto figure.imagen-articulo a:hover img {
  transform: translateY(-2px);

  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}

.noticia-texto figure.imagen-articulo figcaption {
  margin-top: 8px;

  color: #777;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 0.72rem;
  line-height: 1.4;
  font-style: italic;
}

.noticia-texto figure.imagen-articulo figcaption::before {
  content: "";

  display: inline-block;

  width: 18px;
  height: 2px;

  margin-right: 7px;

  vertical-align: middle;

  background: #e83c3d;
}
@media (max-width: 768px) {
  .noticia-texto figure.imagen-articulo,
  .noticia-texto figure.imagen-articulo.float-izquierda,
  .noticia-texto figure.imagen-articulo.float-derecha {
    float: none;

    width: 100%;

    margin: 28px 0;
  }
}
/* =========================================================
   FILTROS DE NOTICIAS
========================================================= */

.noticias-filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;

  margin: 0 auto 30px;
}

.noticias-filtro {
  padding: 8px 16px;

  border: 1px solid #263065;
  border-radius: 4px;

  background: transparent;
  color: #263065;

  font-size: 0.95rem;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.noticias-filtro:hover,
.noticias-filtro.activo {
  background-color: #263065;
  color: #fff;
}

/* =====================================================
   ENTRADILLA DE LA NOTICIA
===================================================== */

.noticia-entradilla {
  margin: 0 0 30px;

  padding-bottom: 20px;

  border-bottom: 1px solid rgba(38, 48, 101, 0.2);

  font-size: 17px;

  line-height: 1.65;

  font-weight: 500;
}

/* =====================================================
   FUENTE DE LA NOTICIA
===================================================== */

.noticia-fuente {
  display: flex;

  gap: 13px;

  margin-top: 40px;

  padding: 14px 17px;

  border-left: 3px solid #e83c3d;

  background: rgba(38, 48, 101, 0.06);
}

.noticia-fuente > i {
  flex-shrink: 0;

  margin-top: 1px;

  font-size: 21px;

  color: #fff;
}

@media (max-width: 600px) {
  .noticia-entradilla {
    margin-bottom: 25px;

    padding-bottom: 17px;

    font-size: 16px;
  }

  .noticia-fuente {
    margin-top: 30px;

    padding: 12px 14px;
  }
}
