/* Página Noticias: estructura inspirada en la referencia visual suministrada. */
.noticias-pagina {
  min-height: 760px;
  color: #f5f8fc;
  background: #0d182c;
}

.noticias-shell {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: var(--layout-grid-gap);
  width: auto;
  max-width: none;
  margin-left: var(--layout-shell-inset-left);
  margin-right: var(--layout-shell-inset);
}

.noticias-contenido {
  min-width: 0;
  width: 100%;
  padding: 14px 0 92px;
}

.noticias-publicidad {
  align-self: start;
  padding-top: 58px;
}

.noticias-publicidad-slot {
  width: 100%;
}

.noticias-migas {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  color: #91a3bb;
  font-size: 13px;
}

.noticias-migas a {
  color: #82aee5;
  text-decoration: none;
}

.noticias-migas a:hover,
.noticias-migas a:focus-visible,
.noticias-migas [aria-current="page"] {
  color: #4fc3f7;
}

.noticias-hero {
  display: flex;
  align-items: center;
  min-height: 116px;
  margin-top: 6px;
  padding: 22px 30px;
  background: #071945;
  border: 1px solid #102963;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
}

.noticias-hero > div {
  max-width: 900px;
}

.noticias-hero-etiqueta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: #4fc3f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.noticias-hero-etiqueta svg,
.noticias-vacio-icono svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.noticias-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.noticias-hero > div > p:last-child {
  margin: 7px 0 0;
  color: #a9c8eb;
  font-size: 14px;
  line-height: 1.45;
}

.noticias-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.noticias-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.noticias-filtro {
  min-height: 38px;
  padding: 0 17px;
  color: #fff;
  background: transparent;
  border: 1px solid #3a4d69;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.noticias-filtro:hover,
.noticias-filtro:focus-visible {
  border-color: #4fc3f7;
  color: #4fc3f7;
}

.noticias-filtro:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.noticias-filtro.activo {
  color: #fff;
  background: #334761;
  border-color: #4b607e;
}

.noticias-filtro:active {
  transform: translateY(1px);
}

.noticias-contador {
  flex: 0 0 auto;
  margin: 0;
  color: #9fb6d3;
  font-size: 13px;
}

.noticias-contador strong {
  color: #fff;
}

.noticias-listado {
  margin-top: 36px;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: var(--layout-grid-gap);
}

.noticia-tarjeta {
  display: grid;
  grid-template-columns: minmax(180px, 36%) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  color: #f8fbff;
  background: #1b2a40;
  border: 1px solid #354861;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
}

.noticia-imagen {
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  background: #132238;
}

.noticia-imagen img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  object-position: center;
  background: #132238;
}

.noticia-imagen-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  color: #5b7697;
  background:
    linear-gradient(135deg, rgb(79 195 247 / 6%), transparent 55%),
    #122138;
}

.noticia-imagen-placeholder svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.noticia-cuerpo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  padding: 18px 18px 14px;
}

.noticia-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #8fa9c7;
  font-size: 12px;
}

.noticia-categoria {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  color: #06233b;
  background: #dff6ff;
  border-radius: 999px;
  font-weight: 800;
}

.noticia-fecha-top {
  margin-left: auto;
  white-space: nowrap;
}

.noticia-titulo,
.noticia-titulo-enlace {
  margin: 0;
  color: #f7f9fc;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.36;
}

.noticia-titulo {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.noticia-titulo-enlace {
  text-decoration: none;
}

.noticia-titulo-enlace:hover,
.noticia-titulo-enlace:focus-visible {
  color: #4fc3f7;
}

.noticia-resumen {
  display: -webkit-box;
  margin: 10px 0 16px;
  overflow: hidden;
  color: #c4cfdd;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.noticia-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  color: #8fb0d1;
  border-top: 1px solid #34465d;
  font-size: 12px;
}

.noticia-fuente-etiqueta {
  color: #7f95af;
}

.noticia-fuente {
  overflow: hidden;
  color: #66c8f2;
  font-weight: 800;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.noticia-fuente:hover,
.noticia-fuente:focus-visible {
  color: #9ce2ff;
  text-decoration: underline;
}

.noticias-vacio {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 52px 24px;
  color: #a9bad0;
  text-align: center;
  border-top: 1px solid #25364d;
  border-bottom: 1px solid #25364d;
}

.noticias-vacio[hidden] {
  display: none;
}

.noticias-vacio-icono {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 15px;
  color: #4fc3f7;
  background: rgb(79 195 247 / 8%);
  border: 1px solid rgb(79 195 247 / 24%);
  border-radius: 50%;
}

.noticias-vacio-icono svg {
  width: 32px;
  height: 32px;
}

.noticias-vacio h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.noticias-vacio p {
  max-width: 560px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.noticias-paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 82px;
  padding-top: 44px;
  border-top: 1px solid #2a3b51;
}

.noticias-paginacion[hidden] {
  display: none;
}

.noticias-pagina-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #f4f7fb;
  background: #18283e;
  border: 1px solid #41546f;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.noticias-pagina-btn:hover:not(:disabled),
.noticias-pagina-btn:focus-visible:not(:disabled) {
  color: #4fc3f7;
  border-color: #4fc3f7;
}

.noticias-pagina-btn[aria-current="page"] {
  color: #0b1728;
  background: #f1f5fb;
  border-color: #f1f5fb;
}

.noticias-pagina-btn:disabled {
  color: #58708f;
  background: #122136;
  border-color: transparent;
  cursor: default;
}

.noticias-pagina-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 1199px) {
  .noticias-shell {
    grid-template-columns: minmax(0, 1fr);
    margin-left: var(--layout-gutter);
    margin-right: var(--layout-gutter);
  }

  .noticias-publicidad {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .noticias-grid {
    grid-template-columns: 1fr;
  }

  .noticias-controles {
    align-items: flex-start;
    flex-direction: column;
  }

  .noticias-paginacion {
    margin-top: 54px;
    padding-top: 32px;
  }
}

@media (max-width: 600px) {
  .noticias-shell {
    margin-left: var(--layout-gutter);
    margin-right: var(--layout-gutter);
  }

  .noticias-contenido {
    padding: 10px 0 64px;
  }

  .noticias-migas {
    min-height: 36px;
  }

  .noticias-hero {
    min-height: 0;
    padding: 20px 18px;
    border-radius: 13px;
  }

  .noticias-hero > div > p:last-child {
    font-size: 13px;
  }

  .noticias-filtros {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .noticias-filtro {
    flex: 0 0 auto;
  }

  .noticias-listado {
    margin-top: 26px;
  }

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

  .noticia-tarjeta {
    grid-template-columns: 1fr;
  }

  .noticia-imagen,
  .noticia-imagen img,
  .noticia-imagen-placeholder {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .noticia-cuerpo {
    min-height: 0;
  }

  .noticia-topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .noticia-fecha-top {
    margin-left: 0;
  }

  .noticias-paginacion {
    gap: 3px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 2px;
  }

  .noticias-pagina-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }
}


/* Detalle de noticia */
.noticia-detalle-pagina {
  min-height: 760px;
  padding: 18px 0 96px;
  color: #f7f9fc;
  background: #0d182c;
}

.noticia-detalle-shell {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: var(--layout-grid-gap);
  width: auto;
  max-width: none;
  margin-left: var(--layout-shell-inset-left);
  margin-right: var(--layout-shell-inset);
}

.noticia-detalle-wrap {
  min-width: 0;
  width: 100%;
}

.noticia-detalle-publicidad {
  align-self: start;
  padding-top: 60px;
}

.noticia-detalle-publicidad-slot {
  width: 100%;
}

.noticia-volver {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 18px;
  color: #9db7d5;
  font-weight: 700;
  text-decoration: none;
}

.noticia-volver:hover,
.noticia-volver:focus-visible {
  color: #4fc3f7;
}

.noticia-detalle {
  overflow: hidden;
  background: #1b2a40;
  border: 1px solid #7890ad;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgb(0 0 0 / 18%);
}

.noticia-detalle-header {
  display: block;
  width: 100%;
  padding: clamp(30px, 5vw, 54px) clamp(24px, 4vw, 52px) 26px;
}

.noticia-detalle-categoria {
  justify-self: auto;
}

.noticia-detalle-categoria {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  color: #06324d;
  background: #e4f8ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.noticia-detalle-header h1 {
  width: 100%;
  max-width: none;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1.08;
}

.noticia-detalle-resumen {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #a9bfd8;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  line-height: 1.6;
}

.noticia-detalle-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
  color: #9bb0c8;
  font-size: 13px;
}

.noticia-detalle-meta a {
  color: #72d0f5;
  font-weight: 800;
  text-decoration: none;
}

.noticia-detalle-meta a:hover,
.noticia-detalle-meta a:focus-visible {
  text-decoration: underline;
}

.noticia-detalle-imagen {
  width: min(calc(100% - (2 * clamp(24px, 4vw, 52px))), 1400px);
  margin: 8px auto 0;
}

.noticia-detalle-imagen img {
  display: block;
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  object-position: center;
  background: #132238;
  border-radius: 14px;
}

.noticia-detalle-imagen figcaption {
  margin-top: 8px;
  color: #8097b4;
  font-size: 12px;
}

.noticia-detalle-imagen figcaption a {
  color: #84d4f5;
}

.noticia-detalle-contenido {
  padding: 34px clamp(24px, 4vw, 52px) 42px;
  color: #eef3f8;
  font-size: 17px;
  line-height: 1.82;
}

.noticia-detalle-contenido > :is(p, ul, ol, blockquote, h2, h3, h4, table, figure, div) {
  width: 100%;
  max-width: none;
}

.noticia-detalle-contenido > *:first-child {
  margin-top: 0;
}

.noticia-detalle-contenido p,
.noticia-detalle-contenido ul,
.noticia-detalle-contenido ol,
.noticia-detalle-contenido blockquote {
  margin: 0 0 1.45em;
}

.noticia-detalle-contenido h2,
.noticia-detalle-contenido h3,
.noticia-detalle-contenido h4 {
  color: #fff;
  line-height: 1.25;
}

.noticia-detalle-contenido h2 {
  margin: 1.8em 0 .7em;
}

.noticia-detalle-contenido h3 {
  margin: 1.5em 0 .65em;
}

.noticia-detalle-contenido img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 12px;
}

.noticia-detalle-contenido a {
  color: #66c8f2;
}

.noticia-detalle-contenido blockquote {
  padding: 18px 20px;
  background: #14243a;
  border-left: 4px solid #4fc3f7;
  border-radius: 0 10px 10px 0;
}

.noticia-fuente-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px clamp(24px, 4vw, 52px);
  background: #152338;
  border-top: 1px solid #34465d;
}

.noticia-fuente-box h2 {
  margin: 4px 0 7px;
  color: #fff;
  font-size: 20px;
}

.noticia-fuente-box p {
  margin: 0;
  color: #a8bad0;
  line-height: 1.55;
}

.noticia-fuente-box .boton-primario {
  white-space: nowrap;
}

.noticia-fuente-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  color: #08251d;
  background: linear-gradient(135deg, #33d6aa 0%, #20c997 55%, #18b789 100%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgb(0 0 0 / 18%);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.noticia-fuente-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.noticia-fuente-cta:hover,
.noticia-fuente-cta:focus-visible {
  color: #061f18;
  background: linear-gradient(135deg, #49e1ba 0%, #2fd2a4 55%, #20c997 100%);
  box-shadow: 0 13px 28px rgb(0 0 0 / 24%);
  transform: translateY(-1px);
}

.noticia-fuente-cta:focus-visible {
  outline: 3px solid rgb(79 195 247 / 45%);
  outline-offset: 3px;
}

.noticia-detalle-error {
  padding: 70px 24px;
  text-align: center;
}

.noticia-detalle-error a {
  color: #4fc3f7;
}

@media (max-width: 1199px) {
  .noticia-detalle-shell {
    grid-template-columns: minmax(0, 1fr);
    margin-left: var(--layout-gutter);
    margin-right: var(--layout-gutter);
  }

  .noticia-detalle-publicidad {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .noticia-detalle-shell {
    margin-left: 12px;
    margin-right: 12px;
  }

  .noticia-detalle {
    border-radius: 16px;
  }

  .noticia-detalle-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .noticia-fuente-box {
    grid-template-columns: 1fr;
  }

  .noticia-fuente-box .boton-primario {
    justify-self: start;
  }

  .noticia-detalle-contenido {
    font-size: 16px;
    line-height: 1.72;
  }
}
