/* ═══════════════════════════════════════════════════════════════
   Noticias EHS — Minimal Premium v6
   ═══════════════════════════════════════════════════════════════ */

:root {
  --min-bg: #000000;
  --min-surface: #0a0a0a;
  --min-elevated: #111111;
  --min-text: #ffffff;
  --min-muted: #a1a1aa;
  --min-muted-dark: #52525b;
  --min-border: rgba(255, 255, 255, 0.08);
  --min-border-hover: rgba(255, 255, 255, 0.18);
  --min-accent: #55ccff;
  --min-accent-hover: #7dd9ff;
  --min-nav-h: 64px;
  --nav-glass-bg: rgba(12, 12, 12, 0.78);
  --nav-glass-blur: blur(12px) saturate(1.2);
  --nav-glass-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --min-font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --text-4xl: 2.25rem;
  --text-4xl--line-height: 1.11;
  --text-8xl: 6rem;
  --text-8xl--line-height: 1;
  --tracking-tight: -0.025em;
  --font-weight-semibold: 600;
  --min-stps: #3b8fff;
  --min-env: #34d399;
  --min-profepa: #fbbf24;
  --min-max-w: 1200px;
  --bento-bg: #0d0d0d;
  --bento-card: #141414;
  --bento-border: rgba(255, 255, 255, 0.1);
  --bento-muted: #9ca3af;
  --bento-title: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--min-bg);
  min-height: 100%;
}
  
body {
  font-family: var(--min-font);
  /* Inter se carga con eje opsz solo para la marca del footer;
     el resto conserva el corte de texto de siempre (opsz 14). */
  font-optical-sizing: none;
  background: var(--min-bg);
  color: var(--min-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100%;
}

/* Red de seguridad: nada puede ensanchar la pagina en movil (si algo se
   desborda, iOS permite alejar el zoom y aparece una franja negra).
   clip no crea contenedor de scroll, asi que no afecta sticky ni el scroll. */
.noticias-page {
  overflow-x: clip;
}

/* ── Rayos submarinos permanentes ── */
html.is-intro-pending body {
  overflow: hidden;
}

html.is-intro-pending .noticias-page {
  opacity: 0;
}

html.is-intro-pending .noticias-sun-rays {
  opacity: 0;
}

body.is-intro-active {
  overflow: hidden;
}

.noticias-page {
  position: relative;
  z-index: 2;
  min-height: 100%;
}

.noticias-sun-rays {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  contain: paint;
  /* Soft light without CSS mask (masks + opacity anim = expensive on Windows) */
  background:
    radial-gradient(
      ellipse 85% 70% at 0% 0%,
      rgba(190, 210, 230, 0.07) 0%,
      rgba(160, 185, 210, 0.03) 32%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 45% 55% at 0% 35%,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 58%
    );
  transform-origin: 0% 0%;
}

.noticias-sun-rays.is-visible {
  opacity: 1;
  animation: sunRaysBreath 16s ease-in-out infinite;
}

@keyframes sunRaysBreath {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.04);
  }
}

/* ════════════════════════════════════════════════════════════
   SPLASH DE ENTRADA
   Réplica de la portada del dashboard (.ehs-splash en style-dashboard.css):
   velo sólido, polvo flotante, anillos concéntricos y tipografía sobria.
   Noticias solo vive en oscuro, así que aquí va fija la variante oscura.
   Lo único propio es la estela blanca en la punta de la barra.
   ════════════════════════════════════════════════════════════ */

.noticias-boot {
  --boot-spark: 236, 232, 223;
  --boot-glow: 255, 255, 255;
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #141414;
  color-scheme: dark;
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Disolución final: el conjunto se aleja un punto mientras se desvanece. */
.noticias-boot--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.noticias-boot--out .noticias-boot__mark {
  transform: scale(1.02);
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Campo de polvo ────────────────────────────────── */
.noticias-boot__field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  animation: noticiasBootFade 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

.noticias-boot__particle {
  position: absolute;
  bottom: -6vh;
  border-radius: 50%;
  background: rgb(var(--boot-spark));
  opacity: 0;
  animation-name: noticiasBootDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes noticiasBootDrift {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: var(--boot-dot-opacity, 0.12); }
  85%  { opacity: var(--boot-dot-opacity, 0.12); }
  100% { transform: translate3d(var(--boot-drift, 0px), -112vh, 0); opacity: 0; }
}

@keyframes noticiasBootFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Bloque central ────────────────────────────────── */
.noticias-boot__mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* El anillo más grande llega a 2.4x los 88px del emblema: el texto arranca
     después de ese radio para que no se encimen. */
  gap: 78px;
}

.noticias-boot__emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
}

.noticias-boot__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border: 1px solid rgba(var(--boot-spark), 0.16);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
  animation: noticiasBootRing 3200ms cubic-bezier(0.22, 1, 0.36, 1) 380ms infinite;
}

.noticias-boot__ring:nth-child(2) { animation-delay: 1440ms; }
.noticias-boot__ring:nth-child(3) { animation-delay: 2500ms; }

@keyframes noticiasBootRing {
  0%   { opacity: 0; transform: scale(0.72); }
  22%  { opacity: 1; }
  100% { opacity: 0; transform: scale(2.4); }
}

.noticias-boot__logo {
  position: relative;
  width: 88px;
  height: 88px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.94);
  animation: noticiasBootLogoIn 1400ms cubic-bezier(0.19, 1, 0.22, 1) 380ms both;
}

@keyframes noticiasBootLogoIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Título, barra y estado ──────────────────────────────── */
.noticias-boot__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.noticias-boot__title {
  position: relative;
  margin: 0;
  padding: 0 24px;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  color: #f2efe9;
  opacity: 0;
  transform: translateY(10px);
  animation: noticiasBootRise 1100ms cubic-bezier(0.19, 1, 0.22, 1) 1080ms both;
}

@keyframes noticiasBootRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sin overflow: hidden (a diferencia del dashboard) para que el brillo de la
   estela pueda asomar por encima y por debajo de los 2px del riel. */
.noticias-boot__loader {
  position: relative;
  width: 180px;
  height: 2px;
  border-radius: 2px;
  background: rgba(var(--boot-spark), 0.1);
  opacity: 0;
  animation: noticiasBootFade 600ms cubic-bezier(0.19, 1, 0.22, 1) 1260ms both;
}

.noticias-boot__bar {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: rgba(var(--boot-spark), 0.72);
  transition: width 620ms cubic-bezier(0.33, 0.6, 0.2, 1);
}

/* ── Estela en la punta ──────────────────────────────────
   Una cola que se aclara hacia blanco puro, un halo difuminado y una cabeza
   que respira. Mientras la barra avanza la cola se estira (is-surging) y al
   quedarse quieta se recoge; nunca sobrepasa el tramo ya llenado. */
.noticias-boot__comet {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(64px, 100%);
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--boot-glow), 0) 0%,
    rgba(var(--boot-glow), 0.3) 45%,
    rgba(var(--boot-glow), 0.9) 85%,
    rgb(var(--boot-glow)) 100%
  );
  pointer-events: none;
  /* Oculta hasta el primer avance: si noticias.js tarda, el riel vacío no
     debe mostrar una cabeza brillando en su extremo izquierdo. */
  opacity: 0;
  transition:
    width 620ms cubic-bezier(0.33, 0.6, 0.2, 1),
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.noticias-boot__comet::before {
  content: "";
  position: absolute;
  top: -4px;
  right: -2px;
  bottom: -4px;
  left: 18%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--boot-glow), 0) 0%,
    rgba(var(--boot-glow), 0.16) 55%,
    rgba(var(--boot-glow), 0.55) 100%
  );
  filter: blur(3px);
}

.noticias-boot__comet::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 8px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: rgb(var(--boot-glow));
  box-shadow:
    0 0 4px 1px rgba(var(--boot-glow), 0.95),
    0 0 12px 3px rgba(var(--boot-glow), 0.42),
    0 0 26px 6px rgba(var(--boot-glow), 0.14);
  animation: noticiasBootCometPulse 1800ms ease-in-out infinite;
}

.noticias-boot__loader.is-running .noticias-boot__comet {
  opacity: 1;
}

.noticias-boot__loader.is-surging .noticias-boot__comet {
  width: min(132px, 100%);
}

@keyframes noticiasBootCometPulse {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.3, 1.45); }
}

/* Al llegar al 100% la cabeza destella una vez (el halo se abre, no la
   cabeza) justo antes de la disolución, y la estela se apaga. */
.noticias-boot__loader.is-complete .noticias-boot__comet {
  opacity: 0;
  transition-delay: 0ms, 560ms;
}

.noticias-boot__loader.is-complete .noticias-boot__comet::after {
  animation: noticiasBootCometFlare 640ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

@keyframes noticiasBootCometFlare {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 4px 1px rgba(var(--boot-glow), 0.95),
      0 0 12px 3px rgba(var(--boot-glow), 0.42),
      0 0 26px 6px rgba(var(--boot-glow), 0.14);
  }
  38% {
    opacity: 1;
    transform: scale(1.2, 1.35);
    box-shadow:
      0 0 6px 2px rgb(var(--boot-glow)),
      0 0 20px 7px rgba(var(--boot-glow), 0.55),
      0 0 46px 14px rgba(var(--boot-glow), 0.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
    box-shadow:
      0 0 4px 1px rgba(var(--boot-glow), 0),
      0 0 12px 3px rgba(var(--boot-glow), 0),
      0 0 26px 6px rgba(var(--boot-glow), 0);
  }
}

.noticias-boot__status {
  margin: -8px 0 0;
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: normal;
  text-align: center;
  color: rgba(var(--boot-spark), 0.48);
  min-height: 1.2em;
  opacity: 0;
  animation: noticiasBootRiseSm 700ms cubic-bezier(0.19, 1, 0.22, 1) 1420ms both;
}

@keyframes noticiasBootRiseSm {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .noticias-boot__mark   { gap: 62px; }
  .noticias-boot__title  { font-size: 22px; }
  .noticias-boot__loader { width: 148px; }
}

@media (prefers-reduced-motion: reduce) {
  .noticias-boot__field,
  .noticias-boot__logo,
  .noticias-boot__title,
  .noticias-boot__loader,
  .noticias-boot__status {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .noticias-boot__particle,
  .noticias-boot__ring,
  .noticias-boot__comet::after {
    animation: none !important;
  }

  .noticias-boot__particle,
  .noticias-boot__ring {
    opacity: 0 !important;
  }

  .noticias-boot,
  .noticias-boot__bar,
  .noticias-boot__comet {
    transition: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Buttons ── */
.min-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--min-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.min-btn--primary {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(0, 0, 0, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.min-btn--primary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.min-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ── Navigation ── */
.min-nav {
  --nav-progress: 0;
  --nav-top-end: 14px;
  --nav-height-start: 64px;
  --nav-height-end: 54px;
  --nav-pill-width: min(780px, calc(100% - 32px));
  --nav-pad-end: 44px;
  position: fixed;
  z-index: 100;
  pointer-events: none;
  top: calc(var(--nav-progress) * var(--nav-top-end));
  left: 50%;
  right: auto;
  width: calc(
    (1 - var(--nav-progress)) * 100%
    + var(--nav-progress) * var(--nav-pill-width)
  );
  height: calc(
    var(--nav-height-start)
    - var(--nav-progress) * (var(--nav-height-start) - var(--nav-height-end))
  );
  transform: translate3d(-50%, 0, 0);
  border-radius: calc(var(--nav-progress) * 999px);
  box-shadow: 0 calc(var(--nav-progress) * 16px) calc(var(--nav-progress) * 48px) rgba(0, 0, 0, calc(var(--nav-progress) * 0.45));
  background: transparent;
  overflow: hidden;
  contain: layout style;
}

.min-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--nav-glass-bg);
  /* Lighter frost — 28px backdrop blur over full-bleed content is a major scroll cost */
  backdrop-filter: var(--nav-glass-blur);
  -webkit-backdrop-filter: var(--nav-glass-blur);
  opacity: var(--nav-progress);
  pointer-events: none;
  z-index: 0;
}

.min-nav-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 calc(
    (1 - var(--nav-progress)) * clamp(20px, 4vw, 40px)
    + var(--nav-progress) * var(--nav-pad-end)
  );
  pointer-events: auto;
}

.min-nav-logo {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: calc(15px - var(--nav-progress) * 1px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fafafa;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.min-nav-logo img {
  border-radius: 6px;
  width: calc(24px - var(--nav-progress) * 2px);
  height: calc(24px - var(--nav-progress) * 2px);
}

/* Expandida: links centrados. Contraída: a la derecha con inset (no pegados al borde). */
.min-nav-links {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: calc(24px + var(--nav-progress) * 2px);
  min-width: 0;
  left: calc(
    50% * (1 - var(--nav-progress))
    + (100% - var(--nav-pad-end)) * var(--nav-progress)
  );
  transform: translate(
    calc(-50% * (1 - var(--nav-progress)) - 100% * var(--nav-progress)),
    -50%
  );
  margin-right: 0;
}

.min-nav-links a {
  font-size: calc(14px - var(--nav-progress) * 1px);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 55%, #d4d4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  opacity: 0.92;
}

.min-nav-links a:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 1;
}

.min-nav-actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(16px * (1 - var(--nav-progress)));
  /* Guest: al contraer el CTA desaparece y no reserva ancho (hueco limpio a la derecha) */
  max-width: calc((1 - var(--nav-progress)) * 220px);
  opacity: calc(1 - var(--nav-progress));
  overflow: hidden;
}

/* Sesión iniciada: sin Empezar ahora; CTA = Cerrar sesión */
body.noticias-nav--authed [data-auth-cta] {
  display: none !important;
}

body.noticias-nav--authed .min-nav {
  --nav-pill-width: min(720px, calc(100% - 32px));
  --nav-pad-end: 14px;
  --nav-height-end: 44px;
  /* Panel Alice debajo; el borde rainbow va enmascarado a la pill */
  overflow: visible;
  contain: none;
}

body.noticias-nav--authed .min-nav--contracted {
  --nav-pill-width: min(640px, calc(100% - 32px));
}

body.noticias-nav--authed .min-nav-logo {
  opacity: calc(1 - var(--nav-progress));
  max-width: calc((1 - var(--nav-progress)) * 160px);
  overflow: hidden;
  pointer-events: auto;
  transition: opacity 0.2s ease, max-width 0.25s ease;
}

body.noticias-nav--authed .min-nav-logo span {
  opacity: calc(1 - var(--nav-progress));
}

body.noticias-nav--authed .min-nav-links {
  gap: calc(18px + var(--nav-progress) * 2px);
  margin-right: 0;
  opacity: 1;
}

/* Contraída: Alice + links juntos (sin hueco al centro); sin Cerrar sesión */
body.noticias-nav--authed .min-nav--contracted .min-nav-inner {
  justify-content: flex-start;
  gap: 12px;
  padding-left: 14px;
  padding-right: 16px;
}

body.noticias-nav--authed .min-nav--contracted .min-nav-links {
  position: static;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  margin: 0 0 0 auto;
  gap: 12px;
  z-index: 3;
  flex: 0 0 auto;
}

body.noticias-nav--authed .min-nav--contracted .min-nav-links a {
  font-size: 12.5px;
}

body.noticias-nav--authed .min-nav--contracted [data-auth-logout],
body.noticias-nav--authed .min-nav--contracted .min-nav-logout {
  display: none !important;
}

body.noticias-nav--authed .min-nav-actions {
  max-width: none;
  opacity: 1;
  overflow: visible;
  gap: 10px;
}

body.noticias-nav--authed .min-nav--contracted .min-nav-actions {
  margin-left: 0;
  gap: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Alice: solo authed + navbar contraída */
.min-nav-alice {
  display: none;
}

body.noticias-nav--authed .min-nav-alice:not([hidden]) {
  display: flex;
  position: relative;
  z-index: 3;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(var(--nav-progress) * 460px);
  opacity: var(--nav-progress);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, max-width 0.25s ease;
}

body.noticias-nav--authed .min-nav--contracted .min-nav-alice:not([hidden]) {
  flex: 0 1 auto;
  width: min(280px, 38vw);
  max-width: 280px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  margin-right: 0;
}

body.noticias-nav--authed .min-nav--contracted .min-nav-logo {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  gap: 0;
}

.min-nav-alice__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.min-nav-alice__brand .material-symbols-outlined {
  font-size: 18px;
  color: var(--min-accent);
  font-variation-settings: "FILL" 1;
}

.min-nav-alice__field {
  flex: 1 1 auto;
  min-width: 0;
}

.min-nav-alice__input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.min-nav-alice__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.min-nav-alice__input:focus {
  border-color: rgba(85, 204, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.min-nav-alice__send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.min-nav-alice__send:hover {
  background: rgba(85, 204, 255, 0.22);
}

.min-nav-alice__send .material-symbols-outlined {
  font-size: 18px;
}

/* Panel bajo la pill */
.min-nav-alice-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(520px, calc(100% - 40px));
  max-height: min(420px, 58dvh);
  overflow: auto;
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.min-nav-alice-panel[hidden] {
  display: none !important;
}

.min-nav-alice-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.min-nav-alice-panel__title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.min-nav-alice-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--min-muted);
  cursor: pointer;
}

.min-nav-alice-panel__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.min-nav-alice-panel__hint {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--min-muted-dark);
}

.min-nav-alice-panel__suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.min-nav-alice-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.min-nav-alice-chip:hover {
  border-color: rgba(85, 204, 255, 0.35);
  background: rgba(85, 204, 255, 0.08);
}

.min-nav-alice-panel__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.min-nav-alice-panel__chat[hidden] {
  display: none !important;
}

.alice-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.alice-msg--user {
  align-self: flex-end;
  background: rgba(85, 204, 255, 0.16);
  border: 1px solid rgba(85, 204, 255, 0.28);
  color: #e8f9ff;
}

.alice-msg--assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.alice-msg--error {
  align-self: stretch;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.alice-news-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--min-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}

.alice-news-link:hover {
  color: var(--min-accent-hover);
}

/* Borde Alice Intelligence: anillo fijo en la pill; solo gira el color */
@property --alice-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.min-nav--alice-thinking::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 4;
  padding: 2px;
  background: conic-gradient(
    from var(--alice-angle),
    #ffffff,
    rgba(255, 255, 255, 0.25),
    #ffffff,
    rgba(255, 255, 255, 0.25),
    #ffffff
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aliceIntelligenceSpin 2.2s linear infinite;
  pointer-events: none;
  filter: none;
  opacity: 1;
}

.min-nav--alice-thinking::before {
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.16);
}

@keyframes aliceIntelligenceSpin {
  to {
    --alice-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .min-nav--alice-thinking::after {
    animation: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.min-nav-logout {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--min-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: calc(13px - var(--nav-progress) * 0.5px);
}

/* Guest: nunca mostrar Cerrar sesión (display del btn pisa [hidden]) */
body:not(.noticias-nav--authed) [data-auth-logout],
.min-nav-logout[hidden],
[data-auth-logout][hidden] {
  display: none !important;
}

body.noticias-nav--authed [data-auth-logout]:not([hidden]) {
  display: inline-flex;
}

.min-nav-logout:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

body.noticias-nav--authed .min-mobile-drawer .min-nav-logout {
  margin-top: 12px;
}

.min-nav-cta {
  max-width: calc(220px * (1 - var(--nav-progress)));
  overflow: hidden;
  white-space: nowrap;
  transform: scale(calc(1 - var(--nav-progress) * 0.12)) translateX(calc(var(--nav-progress) * 8px));
  transform-origin: right center;
}

.min-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--min-muted);
  transition: color 0.2s;
}

.min-nav-links .min-nav-locked,
.min-mobile-drawer .min-nav-locked {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: calc(14px - var(--nav-progress, 0) * 1px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--min-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}

.min-nav-links .min-nav-locked:hover,
.min-mobile-drawer .min-nav-locked:hover {
  color: var(--min-text);
}

.min-nav-locked .material-symbols-outlined {
  font-size: 15px;
  opacity: 0.75;
}

.min-nav-locked.is-shaking {
  animation: navLockShake 0.38s ease;
}

@keyframes navLockShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-5px) rotate(-1deg); }
  36% { transform: translateX(5px) rotate(1deg); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
  90% { transform: translateX(-1px); }
}

body.noticias-nav--authed [data-nav-guest] {
  display: none !important;
}

.min-nav-link:hover {
  color: var(--min-text);
}

.min-nav-toggle {
  display: none;
  width: calc(40px - var(--nav-progress) * 4px);
  height: calc(40px - var(--nav-progress) * 4px);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--min-border);
  border-radius: calc(8px + var(--nav-progress) * 991px);
  background: transparent;
  color: var(--min-text);
  cursor: pointer;
  flex-shrink: 0;
}

.min-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.min-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Mismo glass que la navbar pill — sin bordes; opciones flotando */
.min-mobile-drawer {
  --mobile-pill-w: min(300px, calc(100% - 24px));
  position: fixed;
  top: calc(var(--min-nav-h) + 10px);
  left: 50%;
  right: auto;
  z-index: 160;
  width: var(--mobile-pill-w);
  max-height: 0;
  padding: 0 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: var(--nav-glass-bg);
  backdrop-filter: var(--nav-glass-blur);
  -webkit-backdrop-filter: var(--nav-glass-blur);
  border: none;
  border-radius: 22px;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(-50%, -10px, 0);
  pointer-events: none;
  visibility: hidden;
  transition:
    max-height 0.34s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    padding 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.22s ease,
    visibility 0s linear 0.3s;
}

body.noticias-nav--authed .min-mobile-drawer {
  --mobile-pill-w: min(420px, calc(100% - 24px));
}

.min-mobile-drawer.is-open {
  max-height: min(72vh, 380px);
  padding: 14px 10px 14px;
  box-shadow: var(--nav-glass-shadow);
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
  visibility: visible;
  transition:
    max-height 0.34s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    padding 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.22s ease,
    visibility 0s linear 0s;
}

.min-mobile-drawer a:not(.min-btn),
.min-mobile-drawer .min-nav-locked {
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: none;
  transition: background 0.2s, color 0.2s;
  justify-content: center;
  width: 100%;
  text-align: center;
  background: transparent;
}

.min-mobile-drawer a:not(.min-btn):hover,
.min-mobile-drawer .min-nav-locked:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.min-mobile-drawer .min-btn {
  margin-top: 6px;
  margin-inline: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  box-shadow: none;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.min-mobile-drawer .min-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.min-mobile-close {
  display: none;
}

/* ── Hero ── */
.min-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  /* Copy un poco más abajo; planeta libre abajo */
  padding: calc(var(--min-nav-h) + 40px) clamp(20px, 4vw, 40px) 0;
  text-align: center;
  background: #000;
  overflow: visible;
}

.min-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #000;
}
.min-hero-media::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-image: url('assets/hero-poster.jpg?v=1');
  background-size: cover;
  background-position: center 75%;
  background-repeat: no-repeat;
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
/* El póster se congela donde iba y se retira hasta que el video terminó su
   fundido; quitarlo de golpe dejaba ver el fondo negro 560ms. */
.min-hero-media.is-video-ready::before {
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0s linear 560ms;
}

.min-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  border: 0;
  filter: none;
  opacity: 0;
  transition: opacity 560ms ease;
}
.min-hero-video.is-playing { opacity: 1; }

/* Detrás del splash no hace falta fundido: el video entra ya corriendo. */
html.is-intro-pending .min-hero-video,
html.is-intro-pending .min-hero-media::before {
  transition: none;
}

.min-hero-media-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Brillo intacto arriba; desde ~mitad (logo Gemini) funde al fondo de la página */
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 48%,
    rgba(13, 13, 13, 0.22) 62%,
    rgba(13, 13, 13, 0.72) 82%,
    var(--bento-bg) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .min-hero-video {
    display: none;
  }
  .min-hero-media::before {
    animation: none;
    inset: 0;
    transform: none;
  }
  .min-feed-media::before {
    animation: none;
    inset: 0;
    transform: none;
  }

  .min-hero-media-veil {
    background:
      radial-gradient(ellipse 90% 70% at 50% 35%, rgba(20, 20, 24, 0.4), #000 75%),
      #000;
  }
}

/* Fallback estático (reduced-motion): primer frame como still. */
.min-hero-media--static .min-hero-video {
  display: none;
}

.min-hero-media--static {
  background-image: none;
}
.min-hero-media--static::before {
  animation: none;
  inset: 0;
  transform: none;
  opacity: 1;
}

.min-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
}

.min-hero-title {
  --hero-scale: 1;
  --hero-fade: 1;
  --hero-metal: linear-gradient(
    155deg,
    #7a7a82 0%,
    #94949c 18%,
    #b8b8c0 38%,
    #e4e4ea 52%,
    #a8a8b0 72%,
    #8e8e96 88%,
    #a0a0a8 100%
  );
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  font-size: clamp(1.85rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 14px;
  overflow: visible;
  /* Scale + fade only — live filter:blur on scroll is the #1 jank source */
  transform: scale3d(var(--hero-scale), var(--hero-scale), 1);
  opacity: var(--hero-fade);
  transform-origin: center top;
}

.min-hero.is-scrolling .min-hero-title {
  will-change: transform, opacity;
}

.min-hero-line {
  display: inline-block;
  vertical-align: top;
  text-decoration: inherit;
  background-image: var(--hero-metal);
  background-size: 140% 280%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heroMetalShimmer 7s ease-in-out infinite;
}

.min-hero-line--muted {
  background-position: 0% 0%;
}

.min-hero-line--row {
  display: block;
}

.min-hero-title-row {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: visible;
}

.min-hero-title-row-inner {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  gap: 0.32em;
  overflow: visible;
  line-height: 1.2;
  padding-bottom: 0.1em;
  max-width: 100%;
}

.min-hero-line--prefix {
  flex-shrink: 0;
  line-height: 1.2;
}

.min-hero-line--bright {
  display: block;
  background-position: 0% 100%;
  animation-delay: -3.5s;
}

.min-hero-typewriter.min-hero-line--bright {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  text-align: left;
  overflow: visible;
  line-height: 1.2;
}

.min-hero-typewriter-text {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  overflow: visible;
  line-height: 1.2;
  padding-bottom: 0.12em;
  margin-bottom: -0.08em;
}

.min-hero-typewriter-char {
  display: inline-block;
  line-height: 1.2;
  vertical-align: baseline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: var(--hero-metal);
  background-size: 140% 280%;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform: translate3d(0, 0.42em, 0);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.min-hero-typewriter-char.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.min-hero-typewriter-char.is-exiting {
  transform: translate3d(0, -0.2em, 0) scale(0.96);
  opacity: 0;
  transition:
    transform 0.12s cubic-bezier(0.4, 0, 0.72, 0.2),
    opacity 0.12s cubic-bezier(0.4, 0, 0.72, 0.2);
}

.min-hero-typewriter-cursor {
  display: inline-block;
  width: 1px;
  height: 0.72em;
  min-height: 24px;
  margin-left: 2px;
  vertical-align: baseline;
  align-self: baseline;
  background: #d4d4d8;
  animation: heroCursorBlink 1s step-end infinite;
}

@keyframes heroCursorBlink {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

@keyframes heroMetalShimmer {
  0%, 100% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 0% 100%;
  }
}

.min-hero-sub {
  max-width: 520px;
  margin: 0 auto 16px;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.5;
  color: #fff;
  text-wrap: balance;
  opacity: calc(1 - var(--hero-progress, 0) * 0.55);
  transform: translate3d(0, calc(var(--hero-progress, 0) * 8px), 0);
}

.min-hero-actions {
  margin-bottom: 20px;
}

.min-hero-actions,
.min-hero .min-stats {
  opacity: calc(1 - var(--hero-progress, 0));
  transform: translate3d(0, calc(var(--hero-progress, 0) * 18px), 0);
}

/* ── Stats ── */
.min-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-top: 18px;
  border-top: 1px solid var(--min-border);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.min-hero .min-stats {
  margin-bottom: 0;
  max-width: 920px;
  margin-inline: auto;
}

.min-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  min-width: 120px;
}

.min-stat--wide {
  min-width: 180px;
  max-width: 280px;
}

.min-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--min-text);
  font-variant-numeric: tabular-nums;
}

.min-stat-value--text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--min-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.min-stat-value--conn {
  font-size: 0.8125rem;
}

.min-stat-value--conn.is-error {
  color: #f87171;
}

.min-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--min-muted-dark);
}

.min-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--min-border);
  align-self: center;
  flex-shrink: 0;
}

/* ── Bento Grid ── */
.bento-section {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 4vw, 40px);
  background: var(--bento-bg);
  /* Continúa el fundido del hero (sin línea de corte) */
  margin-top: -1px;
  border-top: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: var(--min-max-w);
  margin: 0 auto;
}

.bento-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--bento-border);
  background: var(--bento-card);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px 26px;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 88% 78% at 50% 40%,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.015) 26%,
      transparent 54%
    ),
    radial-gradient(
      ellipse 115% 105% at 50% 50%,
      transparent 16%,
      rgba(0, 0, 0, 0.22) 52%,
      rgba(0, 0, 0, 0.62) 82%,
      rgba(0, 0, 0, 0.9) 100%
    );
  box-shadow:
    inset 0 0 48px 10px rgba(0, 0, 0, 0.5),
    inset 0 0 96px 28px rgba(0, 0, 0, 0.38);
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.bento-card:hover::after {
  background:
    radial-gradient(
      ellipse 88% 78% at 50% 40%,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.018) 26%,
      transparent 54%
    ),
    radial-gradient(
      ellipse 115% 105% at 50% 50%,
      transparent 18%,
      rgba(0, 0, 0, 0.2) 52%,
      rgba(0, 0, 0, 0.58) 82%,
      rgba(0, 0, 0, 0.88) 100%
    );
}

.bento-card--hub {
  grid-column: span 2;
  min-height: 380px;
  padding: 32px 34px 28px;
  justify-content: space-between;
}

.bento-card__copy--top {
  margin-bottom: 16px;
}

.bento-card--hub .bento-card__visual {
  position: relative;
  inset: auto;
  flex: 1;
  min-height: 200px;
  pointer-events: auto;
}

.bento-card--analytics {
  min-height: 380px;
}

.bento-card--ai,
.bento-card--collab,
.bento-card--audience {
  min-height: 320px;
}

.bento-card__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bento-card__copy {
  position: relative;
  z-index: 3;
}

.bento-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--bento-title);
  margin-bottom: 8px;
  line-height: 1.2;
}

.bento-card__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--bento-muted);
  max-width: 42ch;
}

/* Cada descripcion trae una version corta para el mosaico movil 2x2 */
.bento-desc-short {
  display: none;
}

/* Multi-Platform Hub — logo marquee */
.bento-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bento-hub-marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 2;
}

.bento-hub-marquee__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(132px, 18vw, 172px);
  display: flex;
  align-items: center;
  /* Edge fade via ::before/::after only — CSS mask on moving track is costly */
}

.bento-hub-marquee__viewport::before,
.bento-hub-marquee__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.bento-hub-marquee__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bento-card) 0%, transparent 100%);
}

.bento-hub-marquee__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bento-card) 0%, transparent 100%);
}

.bento-hub-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: bentoHubMarquee var(--marquee-duration, 35s) linear infinite;
}

.bento-hub-marquee__viewport:hover .bento-hub-marquee__track {
  animation-play-state: paused;
}

.bento-hub-marquee__set {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-inline: clamp(16px, 3vw, 32px);
  margin: 0;
  list-style: none;
  flex-shrink: 0;
}

.bento-hub-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: clamp(104px, 16vw, 168px);
  height: clamp(56px, 8vw, 72px);
}

.bento-hub-marquee__item img {
  display: block;
  width: auto;
  max-width: clamp(104px, 16vw, 168px);
  height: clamp(52px, 7vw, 68px);
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 200ms ease, transform 200ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.bento-hub-marquee__item img:hover {
  opacity: 1;
  transform: scale(1.04);
}

@keyframes bentoHubMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Analytics */
.bento-analytics {
  overflow: hidden;
}

.bento-orb-glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translateX(-50%);
  border-radius: 50%;
  /* Soft glow baked into gradient — no live filter:blur while scaling */
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(59, 130, 246, 0.1) 35%,
    rgba(59, 130, 246, 0.03) 55%,
    transparent 70%
  );
  opacity: 0.85;
}

.bento-orb-glow--secondary {
  display: none;
}

.bento-analytics-svg {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 65%;
}

.bento-wave-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.bento-wave-tail {
  stroke-linecap: round;
  pointer-events: none;
}

.bento-wave-dot-glow {
  opacity: 0.55;
}

.bento-wave-marker {
  opacity: 0.9;
}

.bento-analytics-badge {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.bento-analytics .bento-cursor {
  position: absolute;
  width: 19px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  transform: translate(3px, 5px);
  filter: drop-shadow(0 0 5px rgba(94, 179, 255, 0.45));
}

/* AI Knowledge Graph */
.bento-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 90px;
}

.bento-graph-svg {
  width: 90%;
  max-width: 280px;
  height: auto;
}

.bento-graph-edge {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: bentoLinePulse 2.5s ease-in-out infinite;
}

.bento-graph-edge:nth-child(2) { animation-delay: 0.3s; }
.bento-graph-edge:nth-child(3) { animation-delay: 0.6s; }
.bento-graph-edge:nth-child(4) { animation-delay: 0.9s; }
.bento-graph-edge:nth-child(5) { animation-delay: 1.2s; }

.bento-graph-node--center {
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.4));
}

.bento-graph-logo {
  pointer-events: none;
}

/* Interest selection waterfall */
.bento-waterfall {
  position: relative;
  padding: 20px 24px 100px;
}

.bento-waterfall-dots {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 8px 6px;
}

.bento-waterfall-line {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  height: calc(100% - 120px);
  width: 40px;
}

.bento-waterfall-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.bento-waterfall-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 220px;
}

.bento-waterfall-item--1 { transform: translateX(-12px); }
.bento-waterfall-item--2 { transform: translateX(8px); }
.bento-waterfall-item--3 { transform: translateX(-6px); }
.bento-waterfall-item--4 { transform: translateX(10px); }
.bento-waterfall-item--5 { transform: translateX(-8px); }

.bento-waterfall-pill {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bento-interest-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.bento-interest-pill.is-hovered {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(59, 130, 246, 0.06);
}

.bento-interest-pill.is-checked {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.bento-interest-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bento-interest-pill.is-checked .bento-interest-check {
  background: #3b82f6;
  border-color: #60a5fa;
  transform: scale(1.05);
}

.bento-interest-pill.is-checked .bento-interest-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bento-interest-label {
  flex: 1;
  text-align: left;
}

.bento-interest-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: auto;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transform-origin: top left;
  will-change: transform, opacity;
}

.bento-waterfall-user {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--bento-muted);
}

.bento-cursor--sm {
  width: 12px;
  height: 14px;
}

/* User Engagement Profile */
.bento-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px 90px;
  overflow: hidden;
}

.bento-profile-calendar {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
  pointer-events: none;
  opacity: 0.24;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
}

.bento-cal-inner {
  width: min(220px, 92%);
  padding: 0 4px 6px;
}

.bento-cal-month {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bento-muted);
  text-align: center;
  margin-bottom: 8px;
}

.bento-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.bento-cal-weekdays span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--bento-muted-dark);
  text-transform: uppercase;
}

.bento-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.bento-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  font-size: 9px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.38);
  border-radius: 5px;
}

.bento-cal-day--empty {
  visibility: hidden;
}

.bento-cal-day--assigned {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.32);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
  animation: bentoCalPulse 3.2s ease-in-out infinite;
}

.bento-cal-plan-dot {
  display: block;
  width: 4px;
  height: 4px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.85);
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
}

.bento-profile-card {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: 6px;
  text-align: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.bento-profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.bento-profile-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(6, 182, 212, 0.4));
  filter: blur(6px);
  opacity: 0.7;
  z-index: 0;
}

.bento-profile-avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bento-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bento-title);
  margin-bottom: 4px;
}

.bento-profile-metric {
  font-size: 11px;
  color: var(--bento-muted);
}

@keyframes bentoCalPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.15);
    background: rgba(139, 92, 246, 0.14);
  }
  50% {
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-cal-day--assigned {
    animation: none;
  }
}

.bento-reveal {
  will-change: transform, opacity;
}

@keyframes bentoOrbBreath {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.12); opacity: 1; }
}

@keyframes bentoLinePulse {
  0%, 100% { stroke-opacity: 0.3; stroke-dashoffset: 120; }
  50% { stroke-opacity: 0.8; stroke-dashoffset: 0; }
}

@keyframes bentoWaveDraw {
  to { stroke-dashoffset: 0; }
}

/* ── Features ── */
.min-features {
  position: relative;
  z-index: 4;
  padding: 80px clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--min-border);
  background: var(--min-bg);
}

.min-features-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--min-max-w);
  margin: 0 auto;
}

.min-feature-card {
  padding: 28px;
  background: var(--min-surface);
  border: 1px solid var(--min-border);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.min-feature-card:hover {
  border-color: var(--min-border-hover);
}

.min-feature-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--min-muted);
  background: var(--min-elevated);
  border-radius: 6px;
}

.min-feature-title {
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.min-feature-desc {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--min-muted);
}

.min-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--min-accent);
  transition: gap 0.2s;
}

.min-feature-link:hover {
  gap: 8px;
}

.min-feature-link .material-symbols-outlined {
  font-size: 16px;
}

/* ── Feed section ── */
.min-feed {
  position: relative;
  z-index: 4;
  padding: 80px clamp(20px, 4vw, 40px) 100px;
  border-top: 1px solid var(--min-border);
  background: var(--min-bg);
}

/* Video de fondo del feed (logueado): mismo video del hero de invitados,
   pero fijo respecto al viewport detrás de todo el feed. */
.min-feed-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #000;
}
.min-feed-media::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-image: url('assets/hero-poster.jpg?v=1');
  background-size: cover;
  background-position: center 75%;
  background-repeat: no-repeat;
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
.min-feed-media.is-video-ready::before {
  animation: none;
  opacity: 0;
}

.min-feed-media[hidden] {
  display: none;
}

.min-feed-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  border: 0;
  opacity: 0;
  transition: opacity 560ms ease;
}
.min-feed-video.is-playing { opacity: 1; }

.min-feed-media-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.75) 45%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* Fallback estático (reduced-motion) */
.min-feed-media--static .min-feed-video {
  display: none;
}

.min-feed-media--static {
  background-image: none;
}
.min-feed-media--static::before {
  animation: none;
  inset: 0;
  transform: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .min-feed-video {
    display: none;
  }

  .min-feed-media::before {
    animation: none;
    inset: 0;
    transform: none;
    opacity: 1;
  }

  .min-feed-media-veil {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.88) 45%,
      rgba(0, 0, 0, 0.96) 100%
    );
  }
}

/* Deja ver el video de fondo fijo a través del feed, y sube el contenido
   por encima de él. */
.noticias-body--feed .min-feed {
  background: transparent;
}

.noticias-body--feed .min-feed-inner,
.min-feed--app .min-feed-inner {
  position: relative;
  z-index: 1;
}

/* Feed-first app shell — only when logged in */
.noticias-body--feed [data-noticias-landing] {
  display: none !important;
}

.noticias-body--feed .noticias-sun-rays {
  display: none !important;
}

.noticias-body--landing .min-feed-stats,
.noticias-body--landing .min-feed-title--app {
  display: none !important;
}

.noticias-body--feed .min-feed-title--guest {
  display: none !important;
}

.noticias-body--feed .min-feed {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(var(--min-nav-h) + 28px) clamp(16px, 3vw, 32px) 72px;
  border-top: none;
}

.noticias-body--feed .noticias-page {
  opacity: 1;
}

.noticias-body--feed .min-feed-inner {
  max-width: min(1320px, 100%);
  gap: clamp(28px, 3vw, 48px);
}

.noticias-body--feed .desk-mosaic,
.noticias-body--feed .feed-sections {
  gap: 16px;
  width: 100%;
}

.min-feed--app {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(var(--min-nav-h) + 28px) clamp(16px, 3vw, 32px) 72px;
  border-top: none;
}

.noticias-body--feed .noticias-page {
  opacity: 1;
}

.min-feed-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  align-items: start;
}

.min-feed--app .min-feed-inner {
  max-width: min(1320px, 100%);
  gap: clamp(28px, 3vw, 48px);
}

.min-feed-head {
  margin-bottom: 22px;
}

.min-feed-head h2,
.min-feed-title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--min-text);
}

.min-feed-head p,
.min-feed-head #deskFeedSub {
  margin: 0;
  font-size: 14px;
  color: var(--min-muted);
}

.min-feed-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.min-feed-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.min-feed-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid var(--min-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.min-feed-stat--wide {
  min-width: min(180px, 100%);
  flex: 1 1 140px;
}

.min-feed-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--min-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.min-feed-stat-value--conn.is-error,
.min-feed-stat-value.min-feed-stat-value--conn.is-error {
  color: #fca5a5;
}

.min-feed-stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--min-muted-dark);
}

.min-feed--app .desk-mosaic,
.min-feed--app .feed-sections {
  gap: 16px;
}

/* Filters */
.desk-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.desk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desk-personalize {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--min-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--min-muted);
  font-family: var(--min-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Con el video de fondo, los chips de stats/filtros también necesitan algo
   más de opacidad para no perder contraste. */
.noticias-body--feed .min-feed-stat,
.noticias-body--feed .desk-personalize {
  background: rgba(10, 10, 10, 0.75);
}

/* Guest: display:inline-flex pisa [hidden] del UA */
.desk-personalize[hidden] {
  display: none !important;
}

.desk-personalize:hover {
  border-color: var(--min-border-hover);
  color: var(--min-text);
  background: rgba(255, 255, 255, 0.07);
}

.desk-personalize .material-symbols-outlined {
  font-size: 18px;
}

.desk-card-for-you {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  vertical-align: middle;
}

.desk-feed-parati-label {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Feed tipo sección de noticias: Destacadas + Más populares + categorías ──
   Fotos en las tarjetas (proxy /api/noticias/imagen) y portada diseñada
   cuando no hay foto. Marcos con aspect-ratio fijo: nada salta al cargar. */
.feed-sections,
.noticias-body--feed .feed-sections,
.min-feed--app .feed-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.5vw, 60px);
  min-width: 0;
}

/* Color por categoría (mismos tokens: --min-stps / --min-env / --min-profepa / --min-accent) */
.feed-cat--seguridad { --cat-rgb: 59, 143, 255; }
.feed-cat--medio_ambiente { --cat-rgb: 52, 211, 153; }
.feed-cat--salud { --cat-rgb: 251, 191, 36; }
.feed-cat--legal { --cat-rgb: 85, 204, 255; }

.feed-section {
  min-width: 0;
}

.feed-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 14px;
}

.feed-section__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--min-text);
  line-height: 1.2;
}

.feed-section__mark {
  flex: none;
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: rgb(var(--cat-rgb, 85, 204, 255));
  box-shadow: 0 0 14px rgba(var(--cat-rgb, 85, 204, 255), 0.55);
}

.feed-section__count {
  flex: none;
  padding: 5px 11px;
  border: 1px solid var(--min-border);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.75);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--min-muted);
}

/* ── Marco de imagen + portada diseñada ── */
.feed-media {
  position: relative;
  overflow: hidden;
  background: #0a0b0e;
  container-type: inline-size;
  isolation: isolate;
}

.feed-media__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.45s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feed-media.is-loaded .feed-media__img {
  opacity: 1;
}

/* Foto en camino: la portada queda como fondo teñido con un brillo, sin logo */
.feed-media--photo .feed-cover > * {
  opacity: 0;
}

.feed-media--photo:not(.is-loaded)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: minSkeleton 1.4s ease-in-out infinite;
}

.feed-media.is-fallback .feed-cover > * {
  animation: feedFadeIn 0.45s ease both;
}

.feed-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(var(--cat-rgb, 85, 204, 255), 0.42) 0%, rgba(var(--cat-rgb, 85, 204, 255), 0) 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(var(--cat-rgb, 85, 204, 255), 0.2) 0%, rgba(var(--cat-rgb, 85, 204, 255), 0) 62%),
    linear-gradient(155deg, #12151b 0%, #07080a 100%);
}

/* Retícula de puntos que se desvanece: textura de "portada", no un hueco */
.feed-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.35) 42%, transparent 72%);
  mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.35) 42%, transparent 72%);
  pointer-events: none;
}

.feed-cover::after {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.05) 50%, transparent 58%);
  pointer-events: none;
}

.feed-cover__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 64%;
  max-height: 38%;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5));
}

.feed-cover__mono {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 44px;
  font-size: clamp(28px, 17cqi, 76px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 30px rgba(var(--cat-rgb, 85, 204, 255), 0.45);
}

.feed-cover__mono small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: none;
  color: rgba(255, 255, 255, 0.62);
}

.feed-cover__label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(var(--cat-rgb, 85, 204, 255), 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.feed-cover__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--cat-rgb, 85, 204, 255));
}

.feed-cover__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
}

.feed-cover__icon.material-symbols-outlined {
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: -12%;
  font-size: 120px;
  font-size: clamp(56px, 40cqi, 260px);
  line-height: 1;
  color: rgba(var(--cat-rgb, 85, 204, 255), 0.16);
  transform: rotate(-12deg);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
  pointer-events: none;
  user-select: none;
}

/* Miniaturas (populares, filas en móvil): solo el ícono de la categoría */
@container (max-width: 200px) {
  .feed-cover__logo,
  .feed-cover__label,
  .feed-cover__badge,
  .feed-cover__mono {
    display: none;
  }

  .feed-cover__icon.material-symbols-outlined {
    position: relative;
    right: auto;
    bottom: auto;
    font-size: 30px;
    font-size: clamp(22px, 38cqi, 44px);
    color: rgba(var(--cat-rgb, 85, 204, 255), 0.95);
    transform: none;
    filter: drop-shadow(0 4px 12px rgba(var(--cat-rgb, 85, 204, 255), 0.45));
  }

  .feed-cover::before {
    background-size: 9px 9px;
  }
}

.feed-media--skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: minSkeleton 1.2s ease-in-out infinite;
}

@keyframes feedFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Tarjetas ── */
.feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  /* Casi opaca: el video de fondo queda como ambiente entre tarjetas */
  background: rgba(10, 10, 10, 0.92);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.25s;
}

.feed-card:focus-visible {
  outline: 2px solid var(--min-accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .feed-card:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(16, 16, 16, 0.96);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  }

  .feed-card:hover .feed-media__img {
    transform: scale(1.045);
  }

  .feed-card:hover .feed-card__title {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}

.feed-card > .feed-media {
  flex: none;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 14px 16px;
}

.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--min-muted);
}

.feed-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--min-muted);
}

.feed-card__cat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--cat-rgb, 161, 161, 170));
  box-shadow: 0 0 8px rgba(var(--cat-rgb, 161, 161, 170), 0.7);
}

.feed-card__for-you {
  padding: 2px 7px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86efac;
}

.feed-card__time {
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--min-muted);
}

.feed-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.36;
  letter-spacing: -0.015em;
  color: var(--min-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: auto;
  padding-top: 2px;
}

.feed-card__source {
  min-width: 0;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--min-muted);
}

.feed-card__source--logo {
  display: inline-flex;
  align-items: center;
}

.feed-card__source-img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 112px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.88;
  transition: opacity 160ms ease;
}

.feed-card:hover .feed-card__source-img {
  opacity: 1;
}

.feed-card__actions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feed-card__comments,
.feed-card__like {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--min-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--min-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.feed-card__comments .material-symbols-outlined,
.feed-card__like .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.feed-card__comments:hover {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
}

.feed-card__like:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.feed-card__like.is-liked {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.1);
}

.feed-card__like.is-liked .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.feed-card__comments:focus-visible,
.feed-card__like:focus-visible {
  outline: 2px solid var(--min-accent);
  outline-offset: 1px;
}

.feed-card__comments:disabled,
.feed-card__like:disabled {
  opacity: 0.6;
  cursor: wait;
}

.feed-card--lead .feed-card__body {
  gap: 12px;
  padding: 18px 20px 16px;
}

.feed-card--lead .feed-card__title {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.26;
  letter-spacing: -0.022em;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.feed-card--mini .feed-card__title {
  font-size: 0.98rem;
}

.feed-card--mini .feed-card__source-img {
  height: 22px;
}

.feed-card--loading {
  pointer-events: none;
  cursor: default;
}

/* "Ver más": entrada escalonada de las que estaban ocultas */
.feed-card--enter {
  animation: feedCardIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) var(--enter-delay, 0ms) both;
}

@keyframes feedCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ── Cuadrícula por categoría: nota principal 2×2 + 4 ── */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feed-grid--lead > .feed-card--lead {
  grid-column: span 2;
  grid-row: span 2;
}

/* La foto absorbe el alto de las dos filas; el texto queda a su medida */
.feed-grid--lead > .feed-card--lead > .feed-media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 240px;
}

.feed-grid--lead > .feed-card--lead > .feed-card__body {
  flex: 0 0 auto;
}

.feed-grid--n1 { grid-template-columns: minmax(0, 1fr); }
.feed-grid--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feed-grid--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feed-section:not(.is-expanded) .feed-card--more {
  display: none;
}

.feed-section__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.82);
  color: var(--min-text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.feed-section__more:hover {
  border-color: rgba(var(--cat-rgb, 85, 204, 255), 0.5);
  background: rgba(20, 20, 20, 0.92);
}

.feed-section__more:focus-visible {
  outline: 2px solid var(--min-accent);
  outline-offset: 2px;
}

.feed-section__more .material-symbols-outlined {
  font-size: 20px;
  color: rgb(var(--cat-rgb, 85, 204, 255));
}

/* ── Destacadas: carrusel + 3 tarjetas, con "Más populares" al lado ── */
.feed-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  min-width: 0;
}

.feed-top__main,
.feed-top__side {
  min-width: 0;
}

.feed-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feed-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #07080a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
}

.feed-hero__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.feed-hero__track {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.feed-hero.is-dragging .feed-hero__track {
  transition: none;
}

.feed-hero.is-dragging {
  cursor: grabbing;
}

.feed-hero.is-instant,
.feed-hero.is-instant * {
  transition: none !important;
}

.feed-hero__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.feed-hero__card {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  cursor: pointer;
  outline: none;
}

.feed-hero__card:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--min-accent);
  pointer-events: none;
}

.feed-media--hero {
  position: absolute;
  inset: 0;
}

/* Acercamiento lento de la foto al entrar la diapositiva */
.feed-hero__slide .feed-media__img {
  transform: scale(1.07);
  transition:
    opacity 0.5s ease,
    transform 9s cubic-bezier(0.16, 0.6, 0.3, 1);
}

.feed-hero__slide.is-active .feed-media__img {
  transform: scale(1);
}

.feed-media--hero .feed-cover__label,
.feed-media--hero .feed-cover__badge {
  display: none;
}

.feed-media--hero .feed-cover__logo {
  max-width: 40%;
  max-height: 28%;
  translate: 0 -38%;
}

.feed-media--hero .feed-cover__mono {
  translate: 0 -46%;
}

.feed-media--hero .feed-cover__icon.material-symbols-outlined {
  top: 6%;
  right: -2%;
  bottom: auto;
  font-size: clamp(120px, 34cqi, 300px);
}

.feed-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 24%, rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0) 74%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 26%);
  pointer-events: none;
}

.feed-hero__tags {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 210px);
}

.feed-hero__cat,
.feed-hero__foryou {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.feed-hero__cat::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--cat-rgb, 85, 204, 255));
  box-shadow: 0 0 10px rgba(var(--cat-rgb, 85, 204, 255), 0.9);
}

.feed-hero__foryou {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.feed-hero__caption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(22px, 3.2vw, 38px);
}

.feed-hero__src {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
}

.feed-hero__logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
}

.feed-hero__dot {
  flex: none;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.feed-hero__src time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feed-hero__title {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover) {
  .feed-hero__card:hover .feed-hero__title {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
  }
}

/* Texto de la diapositiva: entra un poco después que la foto */
.feed-hero__tags,
.feed-hero__caption > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feed-hero__slide.is-active .feed-hero__tags,
.feed-hero__slide.is-active .feed-hero__caption > *,
.feed-hero.is-dragging .feed-hero__tags,
.feed-hero.is-dragging .feed-hero__caption > * {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

.feed-hero__slide.is-active .feed-hero__title {
  transition-delay: 0.28s;
}

.feed-hero__controls {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.58);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  color: #fff;
}

.feed-hero__btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.feed-hero__btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.feed-hero__btn:active {
  transform: scale(0.92);
}

.feed-hero__btn:focus-visible {
  outline: 2px solid var(--min-accent);
  outline-offset: 1px;
}

.feed-hero__btn .material-symbols-outlined {
  font-size: 22px;
}

.feed-hero__btn svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.feed-hero__ico-play,
.feed-hero.is-paused .feed-hero__ico-pause {
  display: none !important;
}

.feed-hero.is-paused .feed-hero__ico-play {
  display: block !important;
}

.feed-hero__count {
  min-width: 46px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.feed-hero__progress {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: opacity 0.3s;
}

.feed-hero.is-paused .feed-hero__progress {
  opacity: 0;
}

.feed-hero__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(85, 204, 255, 0.85), #fff);
  transform: scaleX(0);
  transform-origin: left center;
}

.feed-hero__bar.is-running {
  animation: feedHeroProgress 7s linear forwards;
}

.feed-hero.is-held .feed-hero__bar {
  animation-play-state: paused;
}

@keyframes feedHeroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.feed-hero--loading .feed-hero__sk {
  position: absolute;
  inset: 0;
}

/* ── Más populares ── */
.feed-popular__icon.material-symbols-outlined {
  font-size: 22px;
  color: var(--min-accent);
}

.feed-popular__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.92);
  list-style: none;
}

.feed-popular__li + .feed-popular__li {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.feed-popular__item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.feed-popular__item:focus-visible {
  outline: 2px solid var(--min-accent);
  outline-offset: -2px;
}

.feed-popular__item--loading {
  cursor: default;
}

.feed-popular__thumb {
  position: relative;
  width: 76px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
}

.feed-popular__thumb > .feed-media {
  position: absolute;
  inset: 0;
}

.feed-popular__rank {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 5px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.feed-popular__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.feed-popular__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--min-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-popular__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--min-muted);
}

.feed-popular__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.feed-popular__likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fb7185;
}

.feed-popular__likes .material-symbols-outlined {
  font-size: 13px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

@media (hover: hover) {
  .feed-popular__item:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .feed-popular__item:hover .feed-popular__title {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
  }

  .feed-popular__item:hover .feed-media__img {
    transform: scale(1.06);
  }
}

/* ── Responsive ── */
@media (min-width: 1100px) {
  .feed-top {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 356px);
    align-items: start;
    gap: 28px;
  }

  .feed-top--solo {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-hero {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 1099px) {
  .feed-grid,
  .feed-grid--n3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .feed-grid--lead > .feed-card--lead {
    grid-row: auto;
  }

  .feed-grid--lead > .feed-card--lead > .feed-media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

/* Nota sola (o principal en tablet): foto a la izquierda, texto a la derecha */
@media (min-width: 641px) {
  .feed-grid--n1 > .feed-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .feed-grid--n1 > .feed-card > .feed-media {
    align-self: stretch;
    aspect-ratio: 2 / 1;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (min-width: 641px) and (max-width: 1099px) {
  .feed-grid--n1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-grid--lead > .feed-card--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .feed-grid--lead > .feed-card--lead > .feed-media {
    align-self: stretch;
    aspect-ratio: 4 / 3;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .feed-popular__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 6px;
  }

  .feed-popular__li + .feed-popular__li {
    border-top: 0;
  }
}

@media (max-width: 720px) {
  .feed-section__title {
    font-size: 1.1rem;
  }
}

/* Móvil: nota principal completa y el resto en filas con miniatura */
@media (max-width: 640px) {
  .feed-top {
    gap: 28px;
  }

  .feed-hero {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  /* La foto (16:9) completa arriba, sin recortar los lados; el título va abajo. */
  .feed-hero__slide .feed-media--photo .feed-media__img {
    object-fit: contain;
    object-position: center top;
  }

  .feed-hero__tags {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 170px);
  }

  .feed-hero__cat,
  .feed-hero__foryou {
    padding: 5px 9px;
    font-size: 10px;
  }

  .feed-hero__controls {
    top: 10px;
    right: 10px;
    padding: 3px;
  }

  .feed-hero__btn {
    width: 30px;
    height: 30px;
  }

  .feed-hero__count {
    min-width: 40px;
    font-size: 11.5px;
  }

  .feed-hero__title {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .feed-trio {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
  }

  .feed-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .feed-grid--lead > .feed-card--lead {
    grid-column: auto;
  }

  .feed-card--lead .feed-card__title {
    font-size: 1.15rem;
  }

  .feed-card--tile,
  .feed-card--mini {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-areas: "body media";
    align-items: start;
  }

  .feed-card--tile > .feed-media,
  .feed-card--mini > .feed-media {
    grid-area: media;
    aspect-ratio: 1 / 1;
    margin: 12px 12px 12px 0;
    border: 0;
    border-radius: 10px;
  }

  .feed-card--tile > .feed-card__body,
  .feed-card--mini > .feed-card__body {
    grid-area: body;
    align-self: stretch;
    gap: 8px;
    padding: 12px 4px 12px 14px;
  }

  .feed-card--tile .feed-card__title,
  .feed-card--mini .feed-card__title {
    font-size: 0.95rem;
    line-height: 1.34;
  }

  .feed-card--tile .feed-card__source-img,
  .feed-card--mini .feed-card__source-img {
    height: 20px;
    max-width: 84px;
  }

  .feed-card--tile .feed-card__comments,
  .feed-card--tile .feed-card__like {
    padding: 4px 8px;
  }

  .feed-popular__item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .feed-popular__thumb {
    width: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-hero__track,
  .feed-hero__tags,
  .feed-hero__caption > *,
  .feed-media__img,
  .feed-card {
    transition: none !important;
  }

  .feed-hero__slide .feed-media__img,
  .feed-card:hover .feed-media__img,
  .feed-popular__item:hover .feed-media__img {
    transform: none !important;
  }

  .feed-media--photo:not(.is-loaded)::after,
  .feed-media--skeleton,
  .feed-card--enter,
  .feed-media.is-fallback .feed-cover > * {
    animation: none !important;
  }
}

.desk-filter {
  padding: 8px 16px;
  border: 1px solid var(--min-border);
  border-radius: 999px;
  background: transparent;
  color: var(--min-muted);
  font-family: var(--min-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.desk-filter:hover {
  border-color: var(--min-border-hover);
  color: var(--min-text);
}

.desk-filter.is-active {
  background: var(--min-text);
  border-color: var(--min-text);
  color: var(--min-bg);
}

/* Mosaic — text-only premium */
.desk-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Cards: solo texto, limpio */
.desk-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--min-border);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
  min-height: 0;
}

.desk-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(-2px);
}

.desk-card--feature-solo {
  grid-column: 1 / -1;
}

.desk-card--feature-primary {
  grid-column: 1 / span 8;
}

.desk-card--feature-secondary {
  grid-column: 9 / span 4;
}

.desk-card--story {
  grid-column: span 4;
}

.desk-card--brief {
  grid-column: span 4;
}

.desk-card--loading {
  pointer-events: none;
  opacity: 0.5;
}

.desk-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 22px 24px 24px;
  min-height: 0;
}

.desk-card-body--feature {
  gap: 18px;
  padding: 28px 30px 30px;
  min-height: 220px;
}

.desk-card-body--story {
  gap: 14px;
  padding: 22px 24px 24px;
  min-height: 168px;
}

.desk-card-body--brief {
  gap: 12px;
  padding: 18px 20px 20px;
  min-height: 132px;
}

.desk-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.desk-card-tag {
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: none;
  border-radius: 0;
  color: var(--min-muted);
}

.desk-card-tag--stps { color: var(--min-stps); }
.desk-card-tag--env { color: var(--min-env); }
.desk-card-tag--profepa { color: var(--min-profepa); }

.desk-card-time {
  margin-left: auto;
  color: var(--min-muted-dark);
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.desk-card-headline {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.35;
  color: var(--min-text);
}

.desk-card-headline--feature {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.18;
  font-weight: 700;
  max-width: 22ch;
}

.desk-card--feature-secondary .desk-card-headline--feature,
.desk-card--feature-solo .desk-card-headline--feature {
  max-width: none;
}

.desk-card--feature-secondary .desk-card-headline--feature {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

.desk-card-headline--story {
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desk-card-headline--brief {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desk-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.desk-card-source {
  font-size: 13px;
  color: var(--min-muted-dark);
  letter-spacing: 0.01em;
}

.desk-card-body--brief .desk-card-source {
  font-size: 12px;
}

.desk-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--min-accent);
}

.desk-card-link .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.desk-card:hover .desk-card-link .material-symbols-outlined {
  transform: translateX(3px);
}

/* Skeleton */
.desk-skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: minSkeleton 1.2s ease-in-out infinite;
}

.desk-skeleton--tag { width: 72px; height: 12px; }
.desk-skeleton--title { width: 88%; height: 16px; margin-top: 4px; }
.desk-skeleton--title-lg { width: 70%; height: 28px; margin-top: 8px; }

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

.desk-feed-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  text-align: center;
  color: var(--min-muted);
  border: 1px dashed var(--min-border);
  border-radius: 12px;
  font-size: 14px;
}

.desk-feed-empty .material-symbols-outlined {
  font-size: 32px;
  opacity: 0.4;
}

.desk-feed-empty--error .material-symbols-outlined {
  color: #f87171;
}

/* Guest landing: feed oscuro un poco más suave que negro puro */
.noticias-body--landing .min-feed {
  background: var(--bento-bg);
}

/* Sidebar */
.min-feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--min-nav-h) + 24px);
}

.min-sidebar-block {
  padding: 20px;
  background: var(--min-surface);
  border: 1px solid var(--min-border);
  border-radius: 12px;
}

.min-sidebar-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--min-muted);
}

.desk-alert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.desk-alert-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--min-border);
  font-size: 13px;
}

.desk-alert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.desk-alert-item:first-child {
  padding-top: 0;
}

.desk-alert-tag {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--min-muted-dark);
}

.desk-alert-item a {
  color: var(--min-text);
  line-height: 1.4;
  transition: color 0.2s;
}

.desk-alert-item a:hover {
  color: var(--min-accent);
}

.desk-alert-item time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--min-muted-dark);
}

.desk-alert-item--live .desk-alert-tag::before {
  content: "● ";
  color: #34d399;
}

.min-source-list {
  list-style: none;
}

.min-source-list li {
  border-bottom: 1px solid var(--min-border);
}

.min-source-list li:last-child {
  border-bottom: none;
}

.min-source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  color: var(--min-muted);
  transition: color 0.2s;
}

.min-source-list a:hover {
  color: var(--min-text);
}

.min-source-list .material-symbols-outlined {
  font-size: 14px;
  opacity: 0.4;
}

/* ── CTA band ── */
.min-cta {
  padding: 100px clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--min-border);
  text-align: center;
}

.min-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.min-cta-title {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.min-cta-sub {
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--min-muted);
  text-wrap: balance;
}

/* ── Footer ──
   Copia del footer de la landing de Empresas (style-index.css).
   Solo se añade lo que alli llega por el reset global de esa hoja
   (line-height normal y botones sin borde) para que se vea identico. */
.footer {
  position: relative;
  overflow: hidden;
  /* mismo fondo que el feed de invitado (--bento-bg) y una linea fina que los separa */
  background: var(--bento-bg);
  border-top: 1px solid var(--min-border);
  color: rgba(255,255,255,0.4);
  padding: 56px 40px 0;
  isolation: isolate;
  line-height: normal;
}
.footer [hidden] {
  display: none !important;
}
.footer-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer-bg-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 38%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 38%, transparent 78%);
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding-bottom: 0;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(220px, 1.15fr);
  gap: 40px 32px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 18px;
}
.footer-col a,
.footer-col button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  margin-bottom: 11px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  transition: color 0.2s ease;
}
.footer-col a:hover,
.footer-col button:hover {
  color: #fff;
}
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.footer-cta-note {
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.32);
  max-width: 260px;
}
.footer-mark-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 8px 0 0;
  pointer-events: none;
  user-select: none;
}
.footer-mark {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(96px, 22vw, 280px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.78;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  /* Empresas usa el corte display de Inter (opsz 32) a este tamano */
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 32;
  transform: translateY(22%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 88%);
}
.footer-mark-outline,
.footer-mark-mask {
  display: block;
}
.footer-mark-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.6px rgba(176, 176, 176, 0.72);
}
.footer-mark-mask {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: var(--bento-bg);
  -webkit-text-fill-color: var(--bento-bg);
  -webkit-text-stroke: 0;
}
.footer-brand-stage {
  position: relative;
  z-index: 1;
}
.footer-bottom {
  position: relative;
  z-index: 2;
  bottom: 22px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: 4px 0 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}
.footer-bottom a {
  color: rgba(255,255,255,0.42);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.78); }

@media (max-width: 1024px) {
  .footer-inner { max-width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-cta { grid-column: 1 / -1; max-width: 360px; }
}
@media (max-width: 768px) {
  .footer { padding: 40px 20px 0; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-cta { grid-column: 1 / -1; }
  .footer-mark { font-size: clamp(64px, 22vw, 140px); }
}
@media (max-width: 480px) {
  .footer-links { gap: 30px 20px; }
  .footer-bottom { bottom: auto; padding-top: 26px; }
}

/* ── Responsive ── */
@media (min-width: 48rem) {
  .min-hero-title {
    font-size: clamp(3rem, 6vw, 4.75rem);
    line-height: 1.12;
  }
}

@media (max-width: 1100px) {
  .desk-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .desk-card--feature-solo,
  .desk-card--feature-primary {
    grid-column: 1 / -1;
  }

  .desk-card--feature-secondary {
    grid-column: span 3;
  }

  .desk-card--story,
  .desk-card--brief {
    grid-column: span 3;
  }

  .desk-card-body--feature {
    min-height: 0;
    padding: 24px;
  }

  .desk-card-headline--feature {
    max-width: none;
  }
}

@media (max-width: 960px) {
  .min-features-inner {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--hub {
    grid-column: 1 / -1;
  }

  /* minmax(0, …): con "1fr" la columna crece al ancho de todos los
     carruseles (~8800px) y la pagina entera se desborda en movil. */
  .min-feed-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .min-feed-sidebar {
    position: static;
  }

  .min-feed--app,
  .noticias-body--feed .min-feed {
    padding-top: calc(var(--min-nav-h) + 20px);
  }

  .min-feed-stat--wide {
    flex: 1 1 calc(50% - 10px);
  }

  /* Hamburguesa desde tablet: evita corte de Alice + links */
  .min-nav {
    --nav-top-end: 12px;
    --nav-height-end: 48px;
    --nav-pill-width: min(300px, calc(100% - 24px));
    --nav-pad-end: 18px;
  }

  body.noticias-nav--authed .min-nav,
  body.noticias-nav--authed .min-nav--contracted {
    --nav-pill-width: min(420px, calc(100% - 24px));
  }

  body.noticias-nav--authed .min-nav--contracted .min-nav-alice:not([hidden]) {
    max-width: none;
    width: auto;
    flex: 1 1 auto;
  }

  body.noticias-nav--authed .min-nav-alice__name {
    display: none;
  }

  body.noticias-nav--authed .min-nav--contracted .min-nav-actions {
    width: auto;
    min-width: auto;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    margin-left: auto;
  }

  body.noticias-nav--authed .min-nav--contracted .min-nav-links {
    display: none !important;
  }

  .min-nav-links,
  .min-nav-link,
  .min-nav-actions .min-nav-cta,
  .min-nav-actions .min-nav-logout {
    display: none !important;
  }

  .min-nav-toggle {
    display: flex;
    width: calc(40px - var(--nav-progress) * 4px);
    height: calc(40px - var(--nav-progress) * 4px);
  }

  .min-nav-inner {
    padding: 0 calc(
      (1 - var(--nav-progress)) * 18px + var(--nav-progress) * 14px
    ) 0 calc(
      (1 - var(--nav-progress)) * 18px + var(--nav-progress) * 18px
    );
  }

  .min-nav-links {
    position: static;
    transform: none;
    margin-right: 0;
  }

  .min-nav-actions {
    max-width: none;
    opacity: 1;
    overflow: visible;
    gap: 0;
  }

  .min-mobile-backdrop {
    display: block;
  }
}

@media (max-width: 768px) {
  .bento-section {
    padding-block: clamp(48px, 10vw, 72px);
    padding-inline: clamp(16px, 4vw, 24px);
  }

  /* Mosaico 2x2 como en escritorio: "Fuentes oficiales" a todo lo ancho
     y las otras cuatro en dos columnas, con su contenido reescalado. */
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bento-card--hub {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 22px 20px 12px;
    border-radius: 22px;
  }

  .bento-card--hub .bento-card__visual {
    min-height: 104px;
  }

  .bento-card--hub .bento-card__title {
    font-size: 1.125rem;
  }

  .bento-card--hub .bento-card__desc {
    font-size: 0.8125rem;
  }

  .bento-card--analytics,
  .bento-card--ai,
  .bento-card--collab,
  .bento-card--audience {
    min-height: 272px;
    padding: 16px 14px 16px;
    border-radius: 20px;
  }

  .bento-card--analytics .bento-card__title,
  .bento-card--ai .bento-card__title,
  .bento-card--collab .bento-card__title,
  .bento-card--audience .bento-card__title {
    font-size: 0.9375rem;
    margin-bottom: 5px;
    text-wrap: balance;
  }

  .bento-card--analytics .bento-card__desc,
  .bento-card--ai .bento-card__desc,
  .bento-card--collab .bento-card__desc,
  .bento-card--audience .bento-card__desc {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .bento-card--analytics .bento-desc-full,
  .bento-card--ai .bento-desc-full,
  .bento-card--collab .bento-desc-full,
  .bento-card--audience .bento-desc-full {
    display: none;
  }

  .bento-card--analytics .bento-desc-short,
  .bento-card--ai .bento-desc-short,
  .bento-card--collab .bento-desc-short,
  .bento-card--audience .bento-desc-short {
    display: inline;
  }

  /* Noticias diarias: el SVG conserva su proporcion; cursor y badge los
     coloca bento-grid.js sobre el valle real. */
  .bento-analytics-svg {
    top: 12%;
    height: auto;
    aspect-ratio: 280 / 200;
  }

  .bento-orb-glow {
    top: 6%;
    width: 150px;
    height: 150px;
  }

  .bento-analytics-badge {
    padding: 5px 10px;
    font-size: 10px;
  }

  .bento-analytics .bento-cursor {
    width: 15px;
  }

  /* IA */
  .bento-graph {
    padding-bottom: 104px;
  }

  .bento-graph-svg {
    width: 100%;
  }

  /* Intereses y Cuenta: en escritorio sus visuales van en el flujo y
     empujan la tarjeta; aqui se superponen como los demas para que la
     fila mida lo mismo que la de arriba. */
  .bento-card--collab,
  .bento-card--audience {
    min-height: 312px;
  }

  .bento-waterfall,
  .bento-profile {
    position: absolute;
    inset: 0;
  }

  .bento-waterfall {
    padding: 20px 10px 110px;
  }

  .bento-waterfall-dots {
    top: 10px;
    width: 56px;
  }

  .bento-waterfall-line {
    top: 18px;
  }

  .bento-waterfall-list {
    gap: 5px;
  }

  .bento-waterfall-item {
    max-width: 100%;
  }

  .bento-waterfall-item {
    width: calc(100% - 10px);
  }

  .bento-waterfall-item--1 { transform: translateX(-5px); }
  .bento-waterfall-item--2 { transform: translateX(5px); }
  .bento-waterfall-item--3 { transform: translateX(-3px); }
  .bento-waterfall-item--4 { transform: translateX(5px); }
  .bento-waterfall-item--5 { transform: translateX(-4px); }

  .bento-interest-pill {
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 10px;
    letter-spacing: -0.01em;
  }

  .bento-interest-check {
    width: 13px;
    height: 13px;
    border-radius: 3px;
  }

  .bento-interest-pill.is-checked .bento-interest-check::after {
    left: 3px;
    top: 0;
    width: 3.5px;
    height: 7px;
  }

  .bento-interest-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bento-interest-cursor {
    width: 15px;
  }

  /* Tu propia cuenta: la tarjeta de perfil se monta sobre el calendario */
  .bento-profile {
    padding: 8px 8px 110px;
  }

  .bento-cal-inner {
    width: 100%;
    padding: 0 2px 4px;
  }

  .bento-cal-month {
    font-size: 8.5px;
    margin-bottom: 5px;
  }

  .bento-cal-weekdays span {
    font-size: 7px;
  }

  .bento-cal-grid {
    gap: 2px;
  }

  .bento-cal-day {
    min-height: 16px;
    font-size: 8px;
    border-radius: 4px;
  }

  .bento-cal-plan-dot {
    width: 3px;
    height: 3px;
    margin-top: 1px;
  }

  .bento-profile-card {
    margin-top: -46px;
    padding: 10px 14px;
    border-radius: 13px;
    background: rgba(18, 18, 22, 0.88);
  }

  .bento-profile-avatar-wrap {
    margin-bottom: 6px;
  }

  .bento-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .bento-profile-name {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .bento-profile-metric {
    font-size: 10px;
    white-space: nowrap;
  }

  .bento-hub-marquee__set {
    gap: 24px;
    padding-inline: 12px;
  }

  .bento-hub-marquee__item {
    min-width: 92px;
    height: 56px;
  }

  .bento-hub-marquee__item img {
    max-width: 92px;
    height: 48px;
  }

  .min-stat-sep--hide-mobile,
  .min-stat--hide-mobile {
    display: none;
  }

  .min-stats {
    gap: 16px 0;
  }

  .min-stat {
    width: 50%;
    padding: 0 12px;
  }

  .min-stat-sep {
    display: none;
  }

  .desk-mosaic {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .desk-card--feature,
  .desk-card--feature-solo,
  .desk-card--feature-primary,
  .desk-card--feature-secondary,
  .desk-card--story,
  .desk-card--brief {
    grid-column: 1 / -1;
  }

  .desk-card-body,
  .desk-card-body--feature,
  .desk-card-body--story,
  .desk-card-body--brief {
    min-height: 0;
    padding: 20px;
    gap: 12px;
  }

  .desk-card-time {
    margin-left: 0;
    width: 100%;
  }
}

/* Telefonos angostos (SE, 320-374px): los titulos pasan a dos lineas,
   asi que las tarjetas crecen un poco y las pildoras se compactan. */
@media (max-width: 374px) {
  .bento-card--analytics,
  .bento-card--ai {
    min-height: 290px;
  }

  .bento-card--collab,
  .bento-card--audience {
    min-height: 344px;
  }

  .bento-waterfall {
    padding-inline: 6px;
  }

  .bento-interest-pill {
    gap: 5px;
    padding-inline: 6px;
    font-size: 9.5px;
    letter-spacing: -0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .desk-card,
  .min-btn,
  .min-nav,
  .min-nav-inner,
  .min-nav-cta,
  .min-nav-logo,
  .min-nav-links {
    transition: none;
  }

  .desk-skeleton {
    animation: none;
  }

  .min-hero-title {
    position: static;
    transform: none;
    opacity: 1;
  }

  .min-hero-actions,
  .min-hero .min-stats {
    pointer-events: auto;
    opacity: 1;
    transform: none;
  }

  .min-hero-sub {
    opacity: 1;
    transform: none;
  }

  .min-hero-line {
    animation: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
  }

  .min-hero-typewriter-cursor {
    animation: none;
    opacity: 1;
  }

  .min-hero-typewriter-char {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .bento-reveal {
    opacity: 1;
    transform: none;
  }

  .bento-hub-marquee__track,
  .bento-orb-glow,
  .bento-graph-edge,
  .bento-wave-line,
  .bento-sparkline-path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  html.is-intro-pending body {
    overflow: auto;
  }

  html.is-intro-pending .noticias-page {
    opacity: 1;
  }

  html.is-intro-pending .noticias-sun-rays {
    opacity: 1;
  }

  .noticias-sun-rays {
    animation: none;
    opacity: 1;
  }
}

/* ── Unlock marketing modal (guest locks) ── */
.noticias-unlock {
  position: fixed;
  inset: 0;
  z-index: 2250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}

.noticias-unlock[hidden] {
  display: none !important;
}

.noticias-unlock__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.noticias-unlock__panel {
  --unlock-accent: var(--min-accent);
  --unlock-accent-rgb: 85, 204, 255;
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(var(--unlock-accent-rgb), 0.14), transparent 55%),
    #0a0a0a;
  border: 1px solid rgba(var(--unlock-accent-rgb), 0.32);
  border-radius: 20px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(var(--unlock-accent-rgb), 0.1),
    0 0 48px rgba(var(--unlock-accent-rgb), 0.12);
  animation: unlockPanelIn 0.35s ease;
}

@keyframes unlockPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.noticias-unlock__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--min-muted);
  cursor: pointer;
}

.noticias-unlock__close:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.noticias-unlock__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  padding: clamp(24px, 4vw, 36px);
  align-items: center;
}

.noticias-unlock__title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  color: #fff;
}

.noticias-unlock__sub {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--min-muted);
}

.noticias-unlock__offers-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--unlock-accent);
}

.noticias-unlock__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.noticias-unlock__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.noticias-unlock__list .material-symbols-outlined {
  font-size: 18px;
  color: var(--unlock-accent);
  flex-shrink: 0;
}

.noticias-unlock__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.noticias-unlock__cta {
  width: 100%;
  max-width: none;
  font-weight: 600;
  box-shadow: 0 0 28px rgba(var(--unlock-accent-rgb), 0.28);
}

.noticias-unlock__assurance {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: rgba(161, 161, 170, 0.95);
}

.noticias-unlock__mirror {
  min-height: 280px;
}

.unlock-mirror {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(var(--unlock-accent-rgb), 0.2);
  background:
    linear-gradient(165deg, rgba(var(--unlock-accent-rgb), 0.1), transparent 48%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 50%),
    #111;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.unlock-mirror__glow {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--unlock-accent-rgb), 0.32), transparent 68%);
  pointer-events: none;
  animation: unlockGlow 4.5s ease-in-out infinite;
}

@keyframes unlockGlow {
  0%, 100% { opacity: 0.65; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(18px, 12px); }
}

.unlock-card {
  position: relative;
  z-index: 1;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.unlock-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.unlock-card__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--min-muted);
}

.unlock-card__status {
  font-size: 11px;
  color: #86efac;
}

.unlock-card__due {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  animation: unlockPulse 1.8s ease-in-out infinite;
}

@keyframes unlockPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.unlock-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.unlock-card__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--min-muted-dark);
}

.unlock-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.unlock-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--min-muted);
}

.unlock-step .material-symbols-outlined {
  font-size: 16px;
}

.unlock-step.is-done {
  color: rgba(255, 255, 255, 0.75);
}

.unlock-step.is-done .material-symbols-outlined {
  color: #86efac;
}

.unlock-step.is-active {
  color: #fff;
}

.unlock-step.is-active .material-symbols-outlined {
  color: var(--unlock-accent, var(--min-accent));
  animation: unlockPulse 1.6s ease-in-out infinite;
}

.unlock-progress {
  margin-top: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.unlock-progress__bar {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, var(--unlock-accent, var(--min-accent)));
  animation: unlockBar 2.8s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes unlockBar {
  0%, 100% { width: 58%; }
  50% { width: 72%; }
}

.unlock-cal-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unlock-cal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 52px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}

.unlock-cal-date span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.unlock-cal-date strong {
  font-size: 18px;
  line-height: 1;
}

.unlock-toast {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #bae6fd;
  background: rgba(var(--unlock-accent-rgb, 85, 204, 255), 0.12);
  border: 1px solid rgba(var(--unlock-accent-rgb, 85, 204, 255), 0.28);
  animation: unlockToast 3.2s ease-in-out infinite;
}

.unlock-toast .material-symbols-outlined {
  font-size: 16px;
}

@keyframes unlockToast {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 800px) {
  .noticias-unlock__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .noticias-unlock__cta-wrap {
    max-width: none;
  }

  .noticias-unlock__mirror {
    display: none;
  }
}

/* ── Reader modal (noticia completa, pantalla completa) ── */
.noticias-reader {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.noticias-reader[hidden] {
  display: none !important;
}

.noticias-reader__backdrop {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}

.noticias-reader__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: none;
  height: 100vh;
  height: 100dvh;
  background: #0a0a0a;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
  font-feature-settings: "tnum" on, "lnum" on;
  font-variant-numeric: lining-nums tabular-nums;
}

.noticias-reader__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 20px clamp(20px, 4vw, 40px) 14px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.noticias-reader__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--min-muted);
  min-width: 0;
}

.noticias-reader__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--min-accent);
}

.noticias-reader__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.noticias-reader__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--min-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.noticias-reader__close:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.noticias-reader__close .material-symbols-outlined {
  font-size: 22px;
}

.noticias-reader__title {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px clamp(20px, 4vw, 40px) 12px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.24;
  color: var(--min-text);
}

.noticias-reader__scroll {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  max-width: 1330px;
  margin: 0;
  padding: 8px clamp(20px, 4vw, 40px) 16px clamp(60px, 9vw, 130px);
}

.noticias-reader__content {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 900px;
}

.noticias-reader__sidebar {
  flex: 0 0 340px;
  width: 340px;
  align-self: flex-start;
}

.noticias-reader__sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--min-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.noticias-reader__sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.noticias-reader__sidebar-avatar {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.noticias-reader__sidebar-headtext {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.noticias-reader__sidebar-org {
  font-size: 14px;
  font-weight: 700;
  color: var(--min-text);
  line-height: 1.25;
}

.noticias-reader__sidebar-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--min-border);
  background: rgba(85, 204, 255, 0.08);
  color: var(--min-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.noticias-reader__sidebar-divider {
  height: 1px;
  background: var(--min-border);
}

.noticias-reader__sidebar-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--min-muted);
}

.noticias-reader__sidebar-row .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--min-muted-dark);
}

.noticias-reader__sidebar-row[hidden] {
  display: none !important;
}

.noticias-reader__sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--min-accent);
  color: #06131a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.noticias-reader__sidebar-cta:hover {
  background: var(--min-accent-hover);
}

.noticias-reader__sidebar-cta .material-symbols-outlined {
  font-size: 16px;
}

.noticias-reader__sidebar-cta[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 980px) {
  .noticias-reader__scroll {
    flex-direction: column;
  }

  .noticias-reader__content {
    max-width: 720px;
  }

  .noticias-reader__sidebar {
    width: 100%;
    max-width: 720px;
  }

  .noticias-reader__actions {
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
    flex-wrap: wrap;
  }
}

.noticias-reader__loading {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 24px;
}

.noticias-reader__loading.is-visible {
  display: flex;
}

.noticias-reader__loading[hidden] {
  display: none !important;
}

.noticias-reader__partial {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(85, 204, 255, 0.2);
  background: rgba(85, 204, 255, 0.06);
  font-size: 13px;
  color: #bae6fd;
}

.noticias-reader__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1330px;
  margin: 0;
  padding: 2px clamp(20px, 4vw, 40px) 18px clamp(60px, 9vw, 130px);
}

.noticias-reader__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--min-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--min-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.noticias-reader__action .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.noticias-reader__action--like:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.noticias-reader__action--like.is-liked {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.1);
}

.noticias-reader__action--like.is-liked .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.noticias-reader__action--comment:hover {
  color: var(--min-accent);
  border-color: rgba(85, 204, 255, 0.35);
}

.noticias-reader__action:disabled {
  opacity: 0.6;
  cursor: wait;
}

.noticias-reader__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 4px;
  color: var(--min-muted-dark);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.noticias-reader__views[hidden] {
  display: none !important;
}

.noticias-reader__views .material-symbols-outlined {
  font-size: 18px;
}

/* ── Calendario (pantalla completa) ── */
.noticias-calendar {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.noticias-calendar[hidden] {
  display: none !important;
}

.noticias-calendar__backdrop {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}

.noticias-calendar__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0a0a0a;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
  font-feature-settings: "tnum" on, "lnum" on;
  font-variant-numeric: lining-nums tabular-nums;
}

.noticias-calendar__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 20px clamp(20px, 4vw, 40px) 14px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.noticias-calendar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.noticias-calendar__navbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--min-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.noticias-calendar__navbtn:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.noticias-calendar__title {
  margin: 0;
  min-width: 8ch;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--min-text);
  white-space: nowrap;
}

.noticias-calendar__today {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(85, 204, 255, 0.35);
  background: rgba(85, 204, 255, 0.06);
  color: var(--min-accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.noticias-calendar__today:hover {
  background: rgba(85, 204, 255, 0.14);
  border-color: rgba(85, 204, 255, 0.55);
}

.noticias-calendar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--min-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.noticias-calendar__close:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.noticias-calendar__body {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 40px) 48px;
}

.noticias-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 1px 10px;
}

.noticias-calendar__weekdays span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--min-muted);
  text-align: center;
}

.noticias-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--min-border);
  border-radius: 14px;
  overflow: hidden;
}

.noticias-calendar__day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--min-border);
  border-bottom: 1px solid var(--min-border);
  transition: background 0.15s;
}

.noticias-calendar__day:hover {
  background: rgba(255, 255, 255, 0.03);
}

.noticias-calendar__grid .noticias-calendar__day:nth-child(7n) {
  border-right: none;
}

.noticias-calendar__daynum {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--min-text);
  font-variant-numeric: tabular-nums;
}

.noticias-calendar__day.is-other-month {
  background: rgba(255, 255, 255, 0.015);
}

.noticias-calendar__day.is-other-month .noticias-calendar__daynum {
  color: var(--min-muted-dark);
}

.noticias-calendar__day.is-today .noticias-calendar__daynum {
  background: var(--min-accent);
  color: #06131a;
}

.noticias-calendar__day.has-plans {
  cursor: pointer;
}

.noticias-calendar__day.has-plans:hover,
.noticias-calendar__day.has-plans:focus-visible {
  background: rgba(85, 204, 255, 0.08);
  outline: none;
}

.noticias-calendar__day.has-plans:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(85, 204, 255, 0.5);
}

.noticias-calendar__events {
  position: static;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.noticias-calendar__event-chip {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 3px 6px;
  border-radius: 5px;
  border-left: 2px solid transparent;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--min-text);
}

.noticias-calendar__event-chip strong {
  font-weight: 700;
}

.noticias-calendar__event-chip--pendiente {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.noticias-calendar__event-chip--en_curso {
  border-left-color: var(--min-accent);
  background: rgba(85, 204, 255, 0.12);
}

.noticias-calendar__event-chip--completado {
  border-left-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.noticias-calendar__event-more {
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 600;
  color: var(--min-muted);
}

@media (max-width: 640px) {
  .noticias-calendar__head {
    padding: 16px 16px 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .noticias-calendar__nav {
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
  }

  .noticias-calendar__title {
    font-size: 1.15rem;
    min-width: 0;
  }

  .noticias-calendar__today {
    padding: 6px 12px;
    font-size: 12px;
  }

  .noticias-calendar__body {
    padding: 16px 10px 32px;
    overflow-x: auto;
  }

  .noticias-calendar__day {
    padding: 6px;
    min-width: 0;
  }

  .noticias-calendar__events {
    margin-top: 4px;
    gap: 2px;
  }

  .noticias-calendar__event-chip {
    padding: 2px 4px;
    font-size: 9.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .noticias-calendar__event-more {
    font-size: 9px;
  }

  .noticias-calendar__weekdays span {
    font-size: 10px;
  }
}

/* ── Reader comments ── */
.noticias-reader-comments {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--min-border);
}

.noticias-reader-comments__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.01em;
}

.noticias-reader-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--min-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.noticias-reader-comments__compose {
  margin-bottom: 1.25rem;
}

.noticias-reader-comments__guest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--min-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.noticias-reader-comments__guest[hidden],
.noticias-reader-comments__form[hidden],
.noticias-reader-comments__empty[hidden],
.noticias-reader-comments__error[hidden],
.noticias-reader-comments__count[hidden] {
  display: none !important;
}

.noticias-reader-comments__guest p {
  margin: 0;
  flex: 1;
  min-width: 180px;
  font-size: 0.9rem;
  color: var(--min-muted);
}

.noticias-reader-comments__login {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.noticias-reader-comments__login:hover {
  background: rgba(59, 130, 246, 0.2);
}

.noticias-reader-comments__form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #607d8b;
  letter-spacing: 0;
  user-select: none;
}

.noticias-reader-comments__form-body {
  flex: 1;
  min-width: 0;
}

.noticias-reader-comments__input {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 64px;
  max-height: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--min-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
}

.noticias-reader-comments__input:focus {
  outline: none;
  border-color: rgba(147, 197, 253, 0.45);
}

.noticias-reader-comments__input::placeholder {
  color: var(--min-muted-dark);
}

.noticias-reader-comments__form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.noticias-reader-comments__submit {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}

.noticias-reader-comments__submit:hover {
  background: #e8e8e8;
}

.noticias-reader-comments__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.noticias-reader-comments__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.noticias-reader-comments__loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.noticias-reader-comments__empty,
.noticias-reader-comments__error {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--min-muted);
}

.noticias-reader-comments__error {
  color: #fb7185;
}

.reader-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.reader-comment__body {
  flex: 1;
  min-width: 0;
}

.comment-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
}

.reader-comment__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reader-comment__reply-btn {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--min-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.reader-comment__reply-btn:hover {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.3);
  background: rgba(59, 130, 246, 0.08);
}

.reader-comment__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--min-muted-dark);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.reader-comment__delete-btn .material-symbols-outlined {
  font-size: 16px;
}

.reader-comment__delete-btn:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.08);
}

.reader-comment__delete-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.reader-comment__reply-compose {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.reader-comment__reply-compose[hidden] {
  display: none !important;
}

.reader-comment__replies {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--min-border);
}

.reader-comment__replies:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.noticias-reader-comments__input--reply {
  min-height: 48px;
}

.noticias-reader-comments__cancel {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--min-border);
  background: transparent;
  color: var(--min-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
}

.noticias-reader-comments__cancel:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.reader-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.reader-comment__name {
  font-size: 0.88rem;
  font-weight: 650;
  color: #fff;
}

.reader-comment__time {
  font-size: 0.75rem;
  color: var(--min-muted-dark);
}

.reader-comment__text {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-wrap;
  word-break: break-word;
}

.reader-comment__like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--min-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.reader-comment__like .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.reader-comment__like:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.3);
}

.reader-comment__like.is-liked {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.35);
}

.reader-comment__like.is-liked .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.reader-comment__like:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Prose tipográfico clean (DOF-like structure, our style) */
.noticias-reader-prose {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 28px;
  overflow-wrap: break-word;
  max-width: none;
  width: 100%;
}

.noticias-reader-prose.is-pending {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.noticias-reader-prose.is-ready {
  opacity: 1;
  visibility: visible;
}

.noticias-reader-prose img,
.noticias-reader-prose picture,
.noticias-reader-prose video,
.noticias-reader-prose iframe {
  display: none !important;
}

.noticias-reader-prose p,
.noticias-reader-prose div {
  margin: 0 0 1em;
}

.noticias-reader-prose h1,
.noticias-reader-prose h2,
.noticias-reader-prose h3,
.noticias-reader-prose h4 {
  margin: 1.4em 0 0.55em;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.25;
  color: #fff;
}

.noticias-reader-prose h1 { font-size: 1.35rem; }
.noticias-reader-prose h2 { font-size: 1.2rem; }
.noticias-reader-prose h3,
.noticias-reader-prose h4 { font-size: 1.05rem; }

.noticias-reader-prose strong,
.noticias-reader-prose b {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
}

.noticias-reader-prose ul,
.noticias-reader-prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.noticias-reader-prose li {
  margin: 0.35em 0;
}

.noticias-reader-prose ul { list-style: disc; }
.noticias-reader-prose ol { list-style: decimal; }

.noticias-reader-prose a {
  color: var(--min-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.noticias-reader-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 13px;
}

.noticias-reader-prose th,
.noticias-reader-prose td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.noticias-reader-prose th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
}

.noticias-reader-prose blockquote {
  margin: 1em 0;
  padding: 0.2em 0 0.2em 1em;
  border-left: 2px solid rgba(85, 204, 255, 0.45);
  color: var(--min-muted);
}

/* ── Fotos del lector: portada, inline y galería ──
   Marcos con proporción fija (el texto no salta al cargar) y shimmer
   sutil mientras llega la imagen. Las <img> crudas del html siguen
   ocultas; solo se muestran las que monta noticias.js. */
.noticias-reader-prose .nr-media {
  margin: 30px 0;
  padding: 0;
}

.noticias-reader-prose .nr-cover {
  margin: 2px 0 30px;
}

.noticias-reader-prose .nr-figure--captioned {
  margin-bottom: 12px;
}

.noticias-reader-prose .nr-frame,
.noticias-reader-prose .nr-thumb {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--min-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.noticias-reader-prose .nr-frame--cover {
  aspect-ratio: 16 / 9;
}

.noticias-reader-prose .nr-thumb {
  border-radius: 14px;
}

.noticias-reader-prose .nr-frame:focus-visible,
.noticias-reader-prose .nr-thumb:focus-visible {
  outline: 2px solid var(--min-accent);
  outline-offset: 3px;
}

/* Shimmer (solo transform: barato) que se desvanece al cargar */
.noticias-reader-prose .nr-frame::after,
.noticias-reader-prose .nr-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  z-index: 2;
  width: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.055) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: nrShimmer 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.noticias-reader-prose .is-loaded::after {
  opacity: 0;
  visibility: hidden;
}

@keyframes nrShimmer {
  from { transform: translateX(0); }
  to { transform: translateX(200%); }
}

.noticias-reader-prose .nr-frame img,
.noticias-reader-prose .nr-thumb img {
  display: block !important;
}

.noticias-reader-prose .nr-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.noticias-reader-prose .is-loaded > .nr-img {
  opacity: 1;
  transform: scale(1);
}

/* Foto con otra proporción (p. ej. vertical): completa sobre su propio
   fondo difuminado y oscurecido; el marco no cambia de tamaño. */
.noticias-reader-prose .nr-frame.is-contain > .nr-img {
  object-fit: contain;
}

.noticias-reader-prose .nr-frame.is-contain::before {
  content: "";
  position: absolute;
  inset: -32px;
  z-index: 0;
  background: var(--nr-bg) center / cover no-repeat;
  filter: blur(28px) brightness(0.42) saturate(1.15);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.noticias-reader-prose .nr-frame.is-contain.is-loaded::before {
  opacity: 1;
}

/* Mientras vuela en el lightbox, la miniatura queda “vacía” */
.noticias-reader-prose .is-lb-source > .nr-img {
  visibility: hidden;
}

.noticias-reader-prose .nr-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.noticias-reader-prose .nr-frame.is-loaded:focus-visible .nr-zoom-hint {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .noticias-reader-prose .nr-frame:hover,
  .noticias-reader-prose .nr-thumb:hover {
    border-color: var(--min-border-hover);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  }

  .noticias-reader-prose .nr-frame.is-loaded:hover > .nr-img {
    transform: scale(1.02);
  }

  .noticias-reader-prose .nr-frame.is-contain.is-loaded:hover > .nr-img {
    transform: none;
  }

  .noticias-reader-prose .nr-thumb.is-loaded:hover > .nr-img {
    transform: scale(1.06);
    filter: brightness(1.12);
  }

  .noticias-reader-prose .nr-frame.is-loaded:hover .nr-zoom-hint {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none) {
  .noticias-reader-prose .nr-frame.is-loaded .nr-zoom-hint {
    opacity: 0.85;
    transform: none;
  }
}

.noticias-reader-prose .nr-caption,
.noticias-reader-prose p.nr-caption-follow {
  margin: 10px 2px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--min-muted);
}

.noticias-reader-prose p.nr-caption-follow {
  margin: 0 2px 1.6em;
}

/* Galería (carpeta de “Fotos descargables”) */
.noticias-reader-prose .nr-gallery {
  margin: 34px 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--min-border);
}

.noticias-reader-prose .nr-gallery__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.noticias-reader-prose .nr-gallery__icon {
  font-size: 20px;
  color: var(--min-accent);
}

.noticias-reader-prose .nr-gallery__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--min-text);
}

.noticias-reader-prose .nr-gallery__count {
  margin-left: 2px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--min-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: var(--min-muted);
  font-variant-numeric: tabular-nums;
}

.noticias-reader-prose .nr-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.noticias-reader-prose .nr-gallery__grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: 460px;
}

.noticias-reader-prose .nr-gallery__grid[data-count="2"],
.noticias-reader-prose .nr-gallery__grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Revelado escalonado al entrar en vista (lo arma noticias.js) */
.noticias-reader-prose .nr-gallery.is-armed .nr-gallery__head,
.noticias-reader-prose .nr-gallery.is-armed .nr-thumb {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}

.noticias-reader-prose .nr-gallery.is-armed.is-inview .nr-gallery__head,
.noticias-reader-prose .nr-gallery.is-armed.is-inview .nr-thumb {
  opacity: 1;
  transform: none;
  animation: nrThumbIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.noticias-reader-prose .nr-gallery.is-armed.is-inview .nr-thumb {
  animation-delay: calc(80ms + var(--i, 0) * 75ms);
}

@keyframes nrThumbIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .noticias-reader-prose .nr-media {
    margin: 24px 0;
  }

  .noticias-reader-prose .nr-cover {
    margin: 0 0 24px;
  }

  .noticias-reader-prose .nr-figure--captioned {
    margin-bottom: 10px;
  }

  .noticias-reader-prose .nr-frame {
    border-radius: 14px;
  }

  .noticias-reader-prose .nr-gallery__grid,
  .noticias-reader-prose .nr-gallery__grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .noticias-reader-prose .nr-gallery__grid[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .noticias-reader-prose .nr-caption,
  .noticias-reader-prose p.nr-caption-follow {
    font-size: 13px;
  }
}

/* ── Lightbox de fotos (encima de todo lo que abre el lector) ── */
.nr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2600;
  color: var(--min-text);
  font-family: var(--min-font);
  touch-action: pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nr-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.nr-lightbox.is-open .nr-lightbox__backdrop {
  opacity: 1;
}

.nr-lightbox.is-closing .nr-lightbox__backdrop {
  opacity: 0;
  transition-duration: 0.38s;
}

.nr-lightbox__frame {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  will-change: transform, opacity;
}

.nr-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}

.nr-lightbox__frame.is-loading::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  animation: nrShimmer 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.nr-lightbox__frame.is-error::after {
  content: "No se pudo cargar la foto";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--min-muted);
}

/* Controles: aparecen tras el vuelo de la foto y se van primero */
.nr-lightbox__bar,
.nr-lightbox__nav,
.nr-lightbox__caption {
  opacity: 0;
  transition: opacity 0.35s ease 0.14s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.nr-lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 3vw, 28px) 14px;
  transform: translateY(-6px);
  pointer-events: none;
}

.nr-lightbox__bar > * {
  pointer-events: auto;
}

.nr-lightbox.is-open .nr-lightbox__bar,
.nr-lightbox.is-open .nr-lightbox__nav,
.nr-lightbox.is-open .nr-lightbox__caption {
  opacity: 1;
  transform: none;
}

.nr-lightbox.is-closing .nr-lightbox__bar,
.nr-lightbox.is-closing .nr-lightbox__nav,
.nr-lightbox.is-closing .nr-lightbox__caption {
  opacity: 0;
  transition-duration: 0.16s;
  transition-delay: 0s;
}

.nr-lightbox__counter {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  font-variant-numeric: tabular-nums;
}

.nr-lightbox__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nr-lightbox__download,
.nr-lightbox__close,
.nr-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--min-text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    opacity 0.35s ease 0.14s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.14s,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.nr-lightbox__download {
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nr-lightbox__download[hidden],
.nr-lightbox__nav[hidden] {
  display: none;
}

.nr-lightbox__download .material-symbols-outlined {
  font-size: 19px;
}

.nr-lightbox__close {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
}

.nr-lightbox__close .material-symbols-outlined {
  font-size: 22px;
}

.nr-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  padding: 0;
  border-radius: 999px;
}

.nr-lightbox__nav .material-symbols-outlined {
  font-size: 28px;
}

.nr-lightbox__nav--prev {
  left: clamp(12px, 2.2vw, 32px);
  transform: translateX(-8px);
}

.nr-lightbox__nav--next {
  right: clamp(12px, 2.2vw, 32px);
  transform: translateX(8px);
}

@media (hover: hover) {
  .nr-lightbox__download:hover,
  .nr-lightbox__close:hover,
  .nr-lightbox__nav:hover {
    background-color: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
  }
}

.nr-lightbox__download:focus-visible,
.nr-lightbox__close:focus-visible,
.nr-lightbox__nav:focus-visible {
  outline: 2px solid var(--min-accent);
  outline-offset: 2px;
}

.nr-lightbox__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  transform: translateY(6px);
  user-select: text;
  -webkit-user-select: text;
}

.nr-lightbox__caption:empty {
  display: none;
}

@media (max-width: 719px) {
  .nr-lightbox__download {
    width: 44px;
    padding: 0;
  }

  .nr-lightbox__download-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nr-lightbox__nav {
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    margin-top: 0;
  }

  .nr-lightbox__nav--prev {
    left: 14px;
  }

  .nr-lightbox__nav--next {
    right: 14px;
  }

  .nr-lightbox__caption {
    left: 74px;
    right: 74px;
    bottom: max(22px, env(safe-area-inset-bottom));
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noticias-reader-prose .nr-img,
  .noticias-reader-prose .is-loaded > .nr-img {
    transform: none !important;
    transition: opacity 0.2s linear;
  }

  .noticias-reader-prose .nr-frame::after,
  .noticias-reader-prose .nr-thumb::after,
  .nr-lightbox__frame.is-loading::after {
    animation: none;
  }

  .noticias-reader-prose .nr-zoom-hint {
    transition: opacity 0.15s linear;
  }

  .nr-lightbox__backdrop,
  .nr-lightbox__bar,
  .nr-lightbox__nav,
  .nr-lightbox__caption {
    transform: none !important;
    transition-duration: 0.16s !important;
    transition-delay: 0s !important;
  }
}

.desk-alert-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.desk-alert-open:hover {
  color: var(--min-text);
}

body.is-reader-open,
body.is-unlock-open,
body.is-calendar-open,
body.is-plans-open,
body.is-plan-form-open {
  overflow: hidden;
}

body.is-reader-open .noticias-page,
body.is-calendar-open .noticias-page,
body.is-plans-open .noticias-page {
  pointer-events: none;
}

body.is-reader-open .noticias-sun-rays,
body.is-calendar-open .noticias-sun-rays,
body.is-plans-open .noticias-sun-rays {
  animation-play-state: paused !important;
}

/* ── Auth open: freeze expensive page layers under the overlay ── */
body.is-auth-open .noticias-page {
  pointer-events: none;
}

body.is-auth-open .noticias-sun-rays {
  visibility: hidden;
  animation: none !important;
  opacity: 0 !important;
}

body.is-auth-open .min-nav::before {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.is-auth-open .bento-hub-track,
body.is-auth-open .bento-orb-glow,
body.is-auth-open .bento-graph-edge,
body.is-auth-open .bento-cal-day--assigned,
body.is-auth-open .min-hero-typewriter-cursor,
body.is-auth-open .min-hero-line {
  animation-play-state: paused !important;
}

/* ── Interests onboarding (full-screen) ── */
.interests-entry {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 8, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  contain: layout style paint;
  isolation: isolate;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.interests-entry.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.interests-entry__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.interests-entry__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.interests-entry__panel {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.interests-entry__kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.interests-entry__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}

.interests-entry__sub {
  margin: 0 auto 28px;
  max-width: 420px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.interests-entry__groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 22px;
  text-align: left;
}

.interests-entry__group-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.interests-entry__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interests-chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.interests-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.interests-chip.is-selected {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: #0a0a0a;
}

.interests-entry__alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.interests-entry__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.interests-entry__cta {
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 140ms ease;
}

.interests-entry__cta:hover {
  background: #f4f4f5;
}

.interests-entry__cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

.interests-entry__skip {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.interests-entry__skip:hover {
  color: rgba(255, 255, 255, 0.8);
}

body.is-interests-open {
  overflow: hidden;
}

body.is-interests-open .noticias-sun-rays {
  visibility: hidden;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .interests-entry {
    transition: none;
  }
}

/* ── Auth entry screen (full-screen) ── */
.auth-entry {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0a0a0a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  contain: layout style paint;
  isolation: isolate;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-entry.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-entry__rays {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: paint;
  opacity: 0.85;
  /* Static soft light — no mask + no infinite opacity anim (very costly on Windows) */
  background:
    radial-gradient(
      ellipse 90% 70% at 8% 0%,
      rgba(190, 210, 230, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 0% 40%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 60%
    );
}

.auth-entry__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.auth-entry__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-entry__close .material-symbols-outlined {
  font-size: 20px;
}

.auth-entry__center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
  will-change: transform, opacity;
}

.auth-entry.is-open .auth-entry__center {
  transform: translateY(0);
  opacity: 1;
}

.auth-entry:not(.is-open) .auth-entry__center {
  will-change: auto;
}

.auth-entry__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-entry__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.auth-entry__logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.auth-entry__brand-name {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.auth-entry__title {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 12px;
}

.auth-entry__sub {
  margin: 0 0 28px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  max-width: 34ch;
}

.auth-entry__cta {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.auth-entry__cta:hover {
  background: #f4f4f5;
}

.auth-entry__cta:active {
  transform: scale(0.985);
}

.auth-entry__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 18px 0;
}

.auth-entry__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-entry__divider-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

.auth-entry__cta--dark {
  background: #171717;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-entry__cta--dark:hover {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.16);
}

.auth-entry[data-auth-step="form"] {
  padding: 20px;
  align-items: stretch;
  justify-content: stretch;
}

.auth-entry[data-auth-step="form"] .auth-entry__center {
  display: none;
}

.auth-entry[data-auth-step="entry"] .auth-split {
  display: none !important;
}

.auth-split {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  height: min(640px, calc(100vh - 40px));
  height: min(640px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.auth-entry[data-auth-step="form"].is-open .auth-split {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-split__stage {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  max-height: inherit;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 14, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

.auth-split__panel {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  min-height: 0;
  backface-visibility: hidden;
}

.auth-split__panel--form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  background: #050505;
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.auth-split[data-mode="login"] .auth-split__panel--form {
  z-index: 1;
}

.auth-split[data-mode="login"] .auth-split__panel--promo {
  z-index: 2;
}

.auth-split__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-split__title {
  margin: 0 0 22px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}

.auth-split__alert {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-split__alert.is-success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.auth-split__form {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.auth-split__form.is-active {
  display: flex;
}

.auth-split__form[hidden] {
  display: none !important;
}

.auth-otp-hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.auth-otp-field {
  gap: 8px;
}

.auth-otp-input {
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #ffffff;
  background: #0a0a0a;
  color: #ffffff;
}

.auth-otp-input:focus {
  border-color: #ffffff;
  background: #111111;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.auth-otp-input::placeholder {
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.auth-otp-format-hint {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.auth-otp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.auth-otp-resend,
.auth-otp-back {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.auth-otp-resend[aria-disabled="true"],
.auth-otp-resend:disabled {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  cursor: default;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.auth-field__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #171717;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-field__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.auth-field__input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: #1c1c1c;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.auth-field__wrap {
  position: relative;
}

.auth-field__input.has-eye {
  padding-right: 46px;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.auth-eye:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.auth-eye .material-symbols-outlined {
  font-size: 20px;
}

.auth-split__submit {
  margin-top: 8px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 180ms ease, transform 160ms ease;
}

.auth-split__submit:hover {
  background: #f4f4f5;
}

.auth-split__submit:active {
  transform: scale(0.985);
}

.auth-split__panel--promo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 48px);
  border: none;
  background:
    radial-gradient(ellipse 90% 80% at 70% 85%, rgba(90, 120, 180, 0.12), transparent 60%),
    linear-gradient(165deg, #121214 0%, #0b0b0d 50%, #080808 100%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: background 220ms ease;
}

.auth-split__panel--promo:hover {
  background:
    radial-gradient(ellipse 90% 80% at 70% 85%, rgba(100, 130, 190, 0.16), transparent 60%),
    linear-gradient(165deg, #161618 0%, #0d0d0f 50%, #0a0a0a 100%);
}

.auth-split__panel--promo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: -2px;
}

.auth-split__abstract {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.auth-split__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 55% 45%, rgba(100, 130, 200, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 70%, rgba(140, 110, 200, 0.1), transparent 65%);
  opacity: 0.75;
  /* Transform-only drift — no conic-gradient repaint each frame */
  animation: authMeshDrift 22s ease-in-out infinite;
  will-change: transform;
}

.auth-split__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-split__ring--1 {
  width: 280px;
  height: 280px;
  top: 18%;
  right: -12%;
  background: radial-gradient(circle, transparent 58%, rgba(120, 150, 220, 0.08) 70%, transparent 72%);
  animation: authRingPulse1 14s ease-in-out infinite;
}

.auth-split__ring--2 {
  width: 200px;
  height: 200px;
  bottom: 8%;
  left: 10%;
  background: radial-gradient(circle, transparent 55%, rgba(160, 130, 220, 0.06) 68%, transparent 70%);
  animation: authRingPulse2 11s ease-in-out infinite;
}

.auth-split.is-switching .auth-split__panel {
  will-change: transform;
  contain: layout style paint;
  pointer-events: none;
}

.auth-split.is-switching .auth-split__title,
.auth-split.is-switching .auth-split__form.is-active,
.auth-split.is-switching .auth-split__promo-copy {
  will-change: opacity, transform;
  pointer-events: none;
}

.auth-split.is-switching .auth-split__mesh,
.auth-split.is-switching .auth-split__ring--1,
.auth-split.is-switching .auth-split__ring--2,
.auth-split.is-switching .auth-split__orb {
  animation-play-state: paused;
}

.auth-split__orb {
  position: absolute;
  border-radius: 50%;
  /* Soft edge via radial-gradient — avoids live filter:blur(40px) while moving */
  opacity: 0.7;
  will-change: transform;
}

.auth-split__orb--1 {
  width: 260px;
  height: 260px;
  top: 38%;
  left: 4%;
  background: radial-gradient(circle, rgba(100, 140, 210, 0.28) 0%, rgba(100, 140, 210, 0.08) 40%, transparent 70%);
  animation: authOrbFloat1 9s ease-in-out infinite;
}

.auth-split__orb--2 {
  width: 220px;
  height: 220px;
  right: 2%;
  top: 52%;
  background: radial-gradient(circle, rgba(160, 130, 230, 0.22) 0%, rgba(160, 130, 230, 0.06) 42%, transparent 70%);
  animation: authOrbFloat2 11s ease-in-out infinite;
}

.auth-split__orb--3 {
  width: 180px;
  height: 180px;
  left: 38%;
  bottom: 2%;
  background: radial-gradient(circle, rgba(80, 180, 210, 0.18) 0%, rgba(80, 180, 210, 0.05) 45%, transparent 70%);
  animation: authOrbFloat3 8s ease-in-out infinite;
}

@keyframes authMeshDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(18px, -12px) rotate(8deg) scale(1.04); }
  66% { transform: translate(-14px, 16px) rotate(-6deg) scale(0.98); }
}

@keyframes authRingPulse1 {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.08) rotate(12deg); opacity: 0.75; }
}

@keyframes authRingPulse2 {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.12) rotate(-10deg); opacity: 0.65; }
}

@keyframes authOrbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, 22px) scale(1.08); }
}

@keyframes authOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, -18px) scale(1.12); }
}

@keyframes authOrbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -26px) scale(0.94); }
}

.auth-split__promo-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
}

.auth-split__promo-kicker {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.auth-split__promo-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

.auth-split__promo-text {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.auth-split__promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-split.is-switching {
  pointer-events: none;
}

@media (max-width: 860px) {
  .auth-entry[data-auth-step="form"] {
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-split {
    height: auto;
    min-height: auto;
    max-height: none;
    width: 100%;
  }

  .auth-split__stage {
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .auth-split__panel {
    flex: 0 0 auto;
    width: 100%;
  }

  .auth-split__panel--form {
    padding: 28px 22px 24px;
    overflow: visible;
    justify-content: flex-start;
  }

  .auth-split__panel--promo {
    min-height: 180px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 28px 22px;
  }

  .auth-split__form {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .auth-entry__brand-name {
    font-size: 0.7rem;
    letter-spacing: 0.01em;
  }

  .auth-entry__close {
    top: 14px;
    right: 14px;
  }

  .auth-split__brand .auth-entry__brand-name {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-entry,
  .auth-entry__center,
  .auth-entry[data-auth-step="form"].is-open .auth-split {
    transition: none;
  }

  .auth-entry__rays,
  .auth-split__orb,
  .auth-split__mesh,
  .auth-split__ring {
    animation: none;
  }

  .auth-entry.is-open .auth-entry__center {
    transform: none;
  }
}

/* ── Sidebar: crear plan de acción ── */
.noticias-reader__sidebar-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--min-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.noticias-reader__sidebar-plan-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.noticias-reader__sidebar-plan-btn .material-symbols-outlined {
  font-size: 16px;
}

.noticias-reader__plan-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
}

.noticias-reader__plan-status[hidden] {
  display: none !important;
}

.noticias-reader__plan-status .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}

.noticias-reader__plan-status-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.noticias-reader__plan-status-view {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.noticias-reader__plan-status-view:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.6);
}

/* ── Modal: crear/editar plan de acción (compacto) ── */
.noticias-plan-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}

.noticias-plan-modal[hidden] {
  display: none !important;
}

.noticias-plan-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

.noticias-plan-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 28px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.noticias-plan-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--min-muted);
  cursor: pointer;
}

.noticias-plan-modal__close:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.noticias-plan-modal__title {
  margin: 0 28px 4px 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--min-text);
}

.noticias-plan-modal__source {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--min-muted);
}

.noticias-plan-modal__source[hidden] {
  display: none !important;
}

.noticias-plan-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.noticias-plan-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.noticias-plan-modal__grid .noticias-plan-modal__field {
  margin-bottom: 0;
}

.noticias-plan-modal__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--min-muted);
}

.noticias-plan-modal__field input,
.noticias-plan-modal__field select,
.noticias-plan-modal__field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--min-text);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
}

.noticias-plan-modal__field input:focus,
.noticias-plan-modal__field select:focus,
.noticias-plan-modal__field textarea:focus {
  outline: none;
  border-color: rgba(85, 204, 255, 0.5);
}

.noticias-plan-modal__error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.08);
  color: #fda4af;
  font-size: 12.5px;
}

.noticias-plan-modal__error[hidden] {
  display: none !important;
}

.noticias-plan-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.noticias-plan-modal__cancel {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--min-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.noticias-plan-modal__cancel:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.24);
}

.noticias-plan-modal__submit {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: var(--min-accent);
  color: #06131a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.noticias-plan-modal__submit:hover {
  background: var(--min-accent-hover);
}

.noticias-plan-modal__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 560px) {
  .noticias-plan-modal__panel {
    padding: 22px 18px;
    border-radius: 16px;
  }

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

/* ── Planes de acción (historial, pantalla completa) ── */
.noticias-planes {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.noticias-planes[hidden] {
  display: none !important;
}

.noticias-planes__backdrop {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}

.noticias-planes__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0a0a0a;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
}

.noticias-planes__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 20px clamp(20px, 4vw, 40px) 14px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.noticias-planes__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--min-text);
}

.noticias-planes__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.noticias-planes__new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--min-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.noticias-planes__new-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.noticias-planes__new-btn .material-symbols-outlined {
  font-size: 18px;
}

.noticias-planes__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--min-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.noticias-planes__close:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.noticias-planes__body {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 40px) 48px;
}

.noticias-planes__loading,
.noticias-planes__empty,
.noticias-planes__error {
  margin: 40px 0;
  text-align: center;
  color: var(--min-muted);
  font-size: 14px;
}

.noticias-planes__loading[hidden],
.noticias-planes__empty[hidden],
.noticias-planes__error[hidden] {
  display: none !important;
}

.noticias-planes__error {
  color: #fda4af;
}

.noticias-planes__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.noticias-planes__card {
  padding: 18px 20px;
  border: 1px solid var(--min-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}

.noticias-planes__card.is-highlighted {
  animation: noticiasPlanCardPulse 0.85s ease-in-out 4;
}

@keyframes noticiasPlanCardPulse {
  0%,
  100% {
    border-color: var(--min-border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 0 rgba(85, 204, 255, 0);
  }
  50% {
    border-color: rgba(85, 204, 255, 0.6);
    background: rgba(85, 204, 255, 0.09);
    box-shadow: 0 0 0 5px rgba(85, 204, 255, 0.14);
  }
}

.noticias-planes__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.noticias-planes__card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--min-text);
  line-height: 1.35;
}

/* ── Select premium (reemplaza el <select> nativo del navegador) ── */
.ehs-select {
  position: relative;
  flex-shrink: 0;
}

.ehs-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--min-text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ehs-select__trigger:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.ehs-select.is-open .ehs-select__trigger {
  border-color: rgba(85, 204, 255, 0.5);
  background: rgba(85, 204, 255, 0.05);
}

.ehs-select.is-loading .ehs-select__trigger {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

.ehs-select__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehs-select__chevron {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--min-muted);
  transition: transform 0.2s, color 0.2s;
}

.ehs-select.is-open .ehs-select__chevron {
  transform: rotate(180deg);
  color: var(--min-accent);
}

.ehs-select__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.ehs-select__dot--pendiente {
  background: #fbbf24;
}

.ehs-select__dot--en_curso {
  background: var(--min-accent);
}

.ehs-select__dot--completado {
  background: #4ade80;
}

.ehs-select__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #12141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.ehs-select.is-open .ehs-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ehs-select__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--min-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.ehs-select__option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--min-text);
}

.ehs-select__option.is-selected {
  color: var(--min-text);
  background: rgba(85, 204, 255, 0.08);
}

.ehs-select__option-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehs-select__check {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--min-accent);
  opacity: 0;
}

.ehs-select__option.is-selected .ehs-select__check {
  opacity: 1;
}

/* Variante compacta tipo "pill" usada en las cards del historial */
.ehs-select--pill .ehs-select__trigger {
  width: auto;
  padding: 6px 12px 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.ehs-select--pill .ehs-select__menu {
  left: auto;
  right: 0;
  min-width: 170px;
}

.ehs-select--pill[data-estado="pendiente"] .ehs-select__trigger {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.ehs-select--pill[data-estado="en_curso"] .ehs-select__trigger {
  border-color: rgba(85, 204, 255, 0.4);
  background: rgba(85, 204, 255, 0.1);
  color: var(--min-accent);
}

.ehs-select--pill[data-estado="completado"] .ehs-select__trigger {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.ehs-select--pill .ehs-select__chevron {
  color: currentColor;
  opacity: 0.75;
}

.noticias-planes__desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--min-muted);
  white-space: pre-wrap;
}

.noticias-planes__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.noticias-planes__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--min-muted-dark);
}

.noticias-planes__meta-item .material-symbols-outlined {
  font-size: 16px;
}

.noticias-planes__source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.noticias-planes__source-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--min-muted-dark);
}

.noticias-planes__source-info a {
  color: var(--min-accent);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noticias-planes__source-info a:hover {
  text-decoration: underline;
}

.noticias-planes__card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.noticias-planes__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--min-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.noticias-planes__card-btn .material-symbols-outlined {
  font-size: 15px;
}

.noticias-planes__card-btn:hover {
  color: var(--min-text);
  border-color: rgba(255, 255, 255, 0.24);
}

.noticias-planes__card-btn--delete:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

@media (max-width: 640px) {
  .noticias-planes__head {
    padding: 16px 16px 12px;
  }

  .noticias-planes__title {
    font-size: 1.15rem;
  }

  .noticias-planes__new-btn {
    padding: 8px 10px;
    font-size: 0;
  }

  .noticias-planes__new-btn .material-symbols-outlined {
    font-size: 20px;
  }

  .noticias-planes__body {
    padding: 16px 12px 32px;
  }

  .noticias-planes__card-head {
    flex-direction: column;
  }

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

/* Lector en tableta y celular: mismo margen a ambos lados (la sangría izquierda
   grande es solo para escritorio; va al final para ganarle a las reglas base). */
@media (max-width: 980px) {
  .noticias-reader__scroll,
  .noticias-reader__actions {
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
  }
}

/* ── Cambios normativos ─────────────────────────────────────────────────────
   "Aplica a tu empresa" (mismo formato que "Para ti", en ámbar) y el resumen
   de la IA dentro del lector, arriba del texto oficial. */
.feed-card__for-you.feed-card__aplica {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}
.feed-hero__foryou.feed-hero__aplica {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd34d;
}

.reader-ficha {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.reader-ficha[hidden] { display: none; }
.reader-ficha__aplica {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: rgb(251, 191, 36);
  font-size: 12px;
  font-weight: 700;
}
.reader-ficha__aplica .material-symbols-outlined { font-size: 16px; }
.ficha__bloque { display: flex; flex-direction: column; gap: 4px; }
.ficha__label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--min-muted);
}
.ficha__texto {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.ficha__acciones {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ficha__acciones li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.ficha__acciones li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--min-accent);
  border-bottom: 2px solid var(--min-accent);
  transform: rotate(-45deg);
}
.ficha__fechas,
.ficha__normas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.ficha__fecha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}
.ficha__fecha .material-symbols-outlined { font-size: 16px; color: var(--min-muted); }
.ficha__fecha strong { color: var(--min-text); font-weight: 700; }
.ficha__fecha.is-pronto { background: rgba(251, 191, 36, 0.12); }
.ficha__fecha.is-pronto .material-symbols-outlined,
.ficha__fecha.is-pronto strong { color: rgb(251, 191, 36); }
.ficha__fecha.is-pasada { opacity: 0.6; }
.ficha__norma {
  padding: 3px 8px;
  border: 1px solid var(--min-border-hover);
  border-radius: 6px;
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--min-muted);
}
.ficha__norma.is-match {
  border-color: rgba(251, 191, 36, 0.6);
  color: rgb(251, 191, 36);
}
.reader-ficha__a-quien { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
.reader-ficha__a-quien strong { color: var(--min-text); }
.reader-ficha__nota { margin: 0; font-size: 12px; line-height: 1.5; color: var(--min-muted-dark); }
@media (max-width: 520px) {
  .reader-ficha { padding: 16px; }
}

/* Miniaturas sin foto ("Lo más reciente"): la categoría debajo del ícono */
.feed-cover__mini { display: none; }
@container (max-width: 200px) {
  .feed-cover { align-content: center; gap: 4px; }
  .feed-cover__mini {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 92%;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: rgb(var(--cat-rgb, 85, 204, 255));
  }
}

/* ── Lector en escritorio: la tarjeta de fuente oficial pasa a una barra
   horizontal arriba del texto y el contenido usa todo el ancho (antes la
   columna derecha quedaba vacía al hacer scroll). Va al final para ganarle
   a las reglas base. ── */
@media (min-width: 981px) {
  .noticias-reader__scroll,
  .noticias-reader__actions {
    max-width: none;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
  }

  .noticias-reader__scroll {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .noticias-reader__content {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .noticias-reader__sidebar {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
  }

  .noticias-reader__sidebar-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    padding: 14px 18px;
  }

  .noticias-reader__sidebar-headtext {
    max-width: 380px;
  }

  .noticias-reader__sidebar-divider {
    align-self: stretch;
    width: 1px;
    height: auto;
    min-height: 32px;
  }

  .noticias-reader__sidebar-row {
    align-items: center;
    white-space: nowrap;
  }

  .noticias-reader__sidebar-cta {
    margin: 0 0 0 auto;
  }

  .noticias-reader__plan-status {
    padding: 7px 8px 7px 12px;
  }

  .noticias-reader__plan-status-text {
    white-space: nowrap;
  }
}
