/* ══════════════════════════════════════════════════════════════════════
   ESTILOS NUEVOS — Black Embassy
   Archivo: ASSETS/css/noticias.css
   ══════════════════════════════════════════════════════════════════════

   ¿QUÉ HAY EN ESTE ARCHIVO?
   -------------------------
   1. Selector de idioma (ES / EN / FR) de la barra superior.
   2. Página pública de noticias (hero, buscador, filtros, tarjetas).
   3. Vista previa de noticias de la portada (index.html).
   4. Modal para leer una noticia con imagen o video.
   5. Estados de carga (skeletons), vacío y avisos.
   6. Ajustes responsive y accesibilidad.

   ¿POR QUÉ UN ARCHIVO APARTE Y NO style.css?
   ------------------------------------------
   Porque style.css ya tiene ~3000 líneas y es más fácil de mantener así.
   Este archivo se carga DESPUÉS de style.css, por lo que puede
   sobrescribir reglas antiguas sin romper nada.

   ¿CÓMO CAMBIO LOS COLORES?
   -------------------------
   Los colores vienen de style.css:
     --gold      dorado principal
     --gold-light dorado claro
     --navy      fondo azul oscuro
     --navy-mid  azul medio
     --accent    azul claro
     --muted     texto secundario
   Si quieres otro color, cambia la variable en style.css y este
   archivo se actualiza solo.
   ══════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════
   1. SELECTOR DE IDIOMA
   ══════════════════════════════════════════════════════════════════════ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border: 1px solid rgba(228, 184, 68, 0.28);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-switch > i {
  color: var(--gold);
  font-size: 0.68rem;
  margin: 0 3px 0 5px;
  opacity: 0.9;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.lang-btn.active {
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 2px 10px rgba(228, 184, 68, 0.35);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* En móviles, el selector se separa un poco para que no quede pegado. */
@media (max-width: 768px) {
  .topbar-inner .lang-switch {
    margin-left: 4px;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   2. HERO DE LA PÁGINA DE NOTICIAS
   ══════════════════════════════════════════════════════════════════════ */

.news-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 90px;
  isolation: isolate;
}

/* Imagen de fondo con un degradado encima para que el texto se lea. */
.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.62) 0%, rgba(6, 13, 24, 0.88) 70%, var(--navy) 100%),
    radial-gradient(ellipse at 75% 25%, rgba(91, 180, 229, 0.18), transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(228, 184, 68, 0.15), transparent 55%);
  z-index: -1;
}

.news-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.news-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.85);
  transform: scale(1.04);
  animation: newsHeroZoom 18s ease-out both;
}

@keyframes newsHeroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}

.news-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  text-align: center;
}

.news-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  background: rgba(228, 184, 68, 0.1);
  border: 1px solid rgba(228, 184, 68, 0.3);
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.news-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--white) 38%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.92;
}

.news-hero-line {
  width: 72px;
  height: 2px;
  margin: 30px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}


/* ══════════════════════════════════════════════════════════════════════
   3. SECCIÓN / PÁGINA DE NOTICIAS
   ══════════════════════════════════════════════════════════════════════ */

.news-page {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(91, 180, 229, 0.06), transparent 45%),
    var(--navy);
  padding: 70px 0 120px;
}

/* Contenedor común de la página y de la portada. */
.news-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Barra de búsqueda + filtros. */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

/* Buscador */
.news-search {
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
}

.news-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
  pointer-events: none;
}

.news-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  color: var(--white);
  background: rgba(6, 13, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.news-search input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.news-search input:focus {
  border-color: rgba(228, 184, 68, 0.55);
  background: rgba(6, 13, 24, 0.75);
  box-shadow: 0 0 0 4px rgba(228, 184, 68, 0.12);
}

/* Filtros por categoría */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.news-filter {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(228, 184, 68, 0.24);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 17px;
  border-radius: 50px;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.news-filter:hover {
  color: var(--white);
  border-color: rgba(228, 184, 68, 0.55);
  background: rgba(228, 184, 68, 0.08);
  transform: translateY(-1px);
}

.news-filter.active {
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(228, 184, 68, 0.3);
}

.news-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Etiqueta con el número de resultados */
.news-count {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-count i { color: var(--gold); font-size: 0.72rem; }

/* Aviso de modo demostración / error de conexión */
.news-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px 18px;
  border: 1px dashed rgba(228, 184, 68, 0.42);
  border-radius: 14px;
  background: rgba(228, 184, 68, 0.07);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
}

.news-notice i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Cuadrícula de tarjetas */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* Tarjeta de noticia */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(228, 184, 68, 0.16);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(228, 184, 68, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

/* Zona de imagen / video */
.news-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91, 180, 229, 0.26), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(228, 184, 68, 0.22), transparent 55%),
    linear-gradient(145deg, var(--navy-light), var(--navy-deep));
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.07);
  filter: brightness(1.05);
}

/* Cuando la noticia no tiene imagen, dibujamos un monograma elegante. */
.news-card-media.is-empty::after {
  content: "BE";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 4.4rem;
  font-weight: 700;
  color: rgba(228, 184, 68, 0.4);
  letter-spacing: 0.06em;
}

/* Etiqueta de categoría sobre la imagen */
.news-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 50px;
  border: 1px solid rgba(228, 184, 68, 0.45);
  background: rgba(6, 13, 24, 0.72);
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Icono que aparece al pasar el ratón (jugar o ampliar) */
.news-media-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 13, 24, 0.72);
  border: 1px solid rgba(228, 184, 68, 0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.news-card:hover .news-media-hint {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Cuerpo de la tarjeta */
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 24px 26px;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-date i { color: var(--gold); font-size: 0.7rem; }

.news-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--white);
  margin: 0;
}

.news-card-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-card-more i {
  font-size: 0.72rem;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-more i { transform: translateX(4px); }

/* Botón invisible que ocupa TODA la tarjeta.
   Es un botón real (no un div) para que funcione con teclado y lectores
   de pantalla; el texto accesible va en aria-label. */
.news-card-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
}

.news-card-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

/* En pantallas táctiles el aviso de "abrir" debe verse siempre. */
@media (hover: none) {
  .news-media-hint {
    opacity: 1;
    transform: none;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   4. ESQUELETOS DE CARGA (mientras Supabase responde)
   ══════════════════════════════════════════════════════════════════════ */

.news-card--skeleton {
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.06);
}

.news-skeleton-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0.04) 60%);
  background-size: 220% 100%;
  animation: newsShimmer 1.5s linear infinite;
}

.news-skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 28px;
}

.news-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 20%, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0.04) 60%);
  background-size: 220% 100%;
  animation: newsShimmer 1.5s linear infinite;
}

.news-skeleton-line.short { width: 32%; }
.news-skeleton-line.medium { width: 62%; }
.news-skeleton-line:not(.short):not(.medium) { width: 100%; }

@keyframes newsShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ══════════════════════════════════════════════════════════════════════
   5. ESTADO VACÍO Y BOTÓN "CARGAR MÁS"
   ══════════════════════════════════════════════════════════════════════ */

.news-empty {
  text-align: center;
  padding: 80px 26px;
  border: 1px dashed rgba(228, 184, 68, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.news-empty i {
  display: block;
  color: var(--gold);
  font-size: 2.6rem;
  margin-bottom: 20px;
  opacity: 0.85;
}

.news-empty h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.news-empty p {
  color: var(--muted);
  font-size: 0.95rem;
}

.news-load-wrap {
  text-align: center;
  margin-top: 52px;
}

/* Un elemento con [hidden] debe desaparecer aunque su clase defina
   display: flex/inline-flex. Sin esto, el botón "Cargar más" y el aviso
   vacío ocupaban espacio al cargar y luego colapsaban (CLS 0.36). */
.news-page [hidden],
.news-load-wrap [hidden] {
  display: none !important;
}

#newsLoadMore i { font-size: 0.8rem; }

/* La vista previa de la portada usa el mismo grid, pero con menos aire. */
.home-news {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(228, 184, 68, 0.08), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(91, 180, 229, 0.07), transparent 50%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
}

.home-news .news-grid { margin-top: 10px; }

.home-news-actions {
  text-align: center;
  margin-top: 48px;
}


/* ══════════════════════════════════════════════════════════════════════
   6. MODAL DE NOTICIA
   ══════════════════════════════════════════════════════════════════════ */

/* Bloquea el scroll del fondo cuando el modal está abierto. */
body.news-modal-open {
  overflow: hidden;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-modal.open {
  opacity: 1;
  visibility: visible;
}

.news-modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(170deg, var(--navy-mid), var(--navy-deep));
  border: 1px solid rgba(228, 184, 68, 0.28);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(26px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.news-modal.open .news-modal-dialog {
  transform: none;
  opacity: 1;
}

/* Botón de cerrar: vive fuera del diálogo desplazable para que siempre
   se vea, incluso cuando la noticia es larga. */
.news-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 13, 24, 0.8);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.news-modal-close:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: transparent;
  transform: rotate(90deg);
}

.news-modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Imagen o video de cabecera del modal */
.news-modal-media {
  background: #000;
}

.news-modal-media > img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.news-modal-media[hidden] { display: none; }

/* Video responsive 16:9 */
.news-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.news-video iframe,
.news-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Texto del modal */
.news-modal-body {
  padding: 34px 40px 42px;
}

.news-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.news-modal-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(228, 184, 68, 0.42);
  background: rgba(228, 184, 68, 0.1);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-modal-date {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.news-modal-body h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 22px;
}

.news-modal-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}

.news-modal-content p { margin: 0 0 18px; }
.news-modal-content p:last-child { margin-bottom: 0; }

.news-modal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.news-modal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Botón de compartir */
.news-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-share {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 50px;
  border: 1px solid rgba(228, 184, 68, 0.4);
  background: rgba(228, 184, 68, 0.08);
  color: var(--gold-light);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-share:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.news-share:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.news-share-status {
  color: var(--accent);
  font-size: 0.8rem;
  min-height: 1.2em;
}

.news-external-video a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ══════════════════════════════════════════════════════════════════════
   7. RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 1024px) {
  .news-hero { padding: 130px 0 80px; }
  .news-hero-inner,
  .news-container { padding: 0 32px; }
  .news-toolbar { padding: 16px; }
}

@media (max-width: 768px) {
  .news-hero {
    min-height: 46vh;
    padding: 110px 0 64px;
  }
  .news-hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .news-hero p { font-size: 0.95rem; }
  .news-hero-inner,
  .news-container { padding: 0 20px; }
  .news-page { padding: 52px 0 84px; }

  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-radius: 16px;
  }

  .news-search { flex-basis: auto; }

  /* En vertical, el contenedor de filtros debe poder encogerse para
     que su propio scroll horizontal funcione. Sin min-width: 0, el
     contenido de los botones (uno al lado del otro) ensancha toda la
     barra y la página se desborda. */
  .news-search,
  .news-filters { min-width: 0; max-width: 100%; }

  .news-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .news-filters::-webkit-scrollbar { display: none; }

  .news-grid { grid-template-columns: 1fr; gap: 20px; }

  .news-card-title { font-size: 1.35rem; }
  .news-card-body { padding: 20px 20px 24px; }

  .news-modal {
    padding: 14px;
    align-items: flex-end;
  }
  .news-modal-dialog {
    max-height: 92vh;
    border-radius: 20px;
  }
  .news-modal-close { top: 24px; right: 24px; }
  .news-modal-body { padding: 26px 22px 32px; }
  .news-modal-media > img { max-height: 280px; }
  .news-modal-actions { margin-top: 26px; }
}

@media (max-width: 480px) {
  .news-hero { padding: 96px 0 56px; }
  .news-hero-eyebrow { font-size: 0.62rem; padding: 8px 14px; letter-spacing: 0.16em; }
  .news-hero-inner,
  .news-container { padding: 0 16px; }
  .news-card-more { font-size: 0.76rem; }
  .news-modal { padding: 10px; }
  .news-modal-close { width: 40px; height: 40px; top: 18px; right: 18px; }
  .news-modal-body { padding: 24px 18px 28px; }
}


/* ══════════════════════════════════════════════════════════════════════
   8. ACCESIBILIDAD
   ══════════════════════════════════════════════════════════════════════ */

/* Texto solo para lectores de pantalla (labels que no queremos ver). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Página activa en el menú de escritorio. */
.nav a.active {
  color: var(--white);
}
.nav a.active::after {
  width: 100%;
}

/* Si el visitante pidió reducir animaciones en su sistema operativo,
   apagamos los efectos más llamativos. */
@media (prefers-reduced-motion: reduce) {
  .news-hero-photo img,
  .news-skeleton-media,
  .news-skeleton-line {
    animation: none !important;
  }

  .news-card,
  .news-card-media img,
  .news-media-hint,
  .news-modal-dialog,
  .news-modal-close,
  .news-card-more i {
    transition: none !important;
  }

  .news-card:hover { transform: none; }
  .news-card:hover .news-card-media img { transform: none; }
}
