/* Proyecto Gen AI v4 "Noir" — Design system (docs/proyecto-genai-noir-especificacion.md)
   Cine noir + diario/revista de los 60 + papel y tinta + foto B/N alto contraste.
   Negro dominante, blancos duros, sin bordes redondeados, sin glows de producto SaaS.
   Un único color saturado por historia — se define inline vía --accent, nunca acá.
   Tipos: Libre Caslon Display (editorial/titulares), Archivo Narrow (condensada:
   nav/kicker/meta), Inter (cuerpo/UI), DM Mono (datos auxiliares/timestamps). */

:root {
  /* Ink & paper — base noir */
  --ink-950: #050505;
  --ink-900: #0a0a0a;
  --ink-800: #141414;
  --paper-100: #f0eee7;
  --paper-000: #ffffff;
  --gray-500: #8b8b87;
  --line-dark: rgba(255, 255, 255, 0.22);
  --line-light: rgba(0, 0, 0, 0.24);

  /* Colors — canvas & surfaces (alias sobre la base noir, no tocar los valores arriba) */
  --canvas: var(--ink-950);
  --surface-card: var(--ink-900);
  --surface-elevated: var(--ink-800);
  --surface-deep: #030303;
  --surface-light: var(--paper-100);

  /* Hairlines — reglas de imprenta, no sombras */
  --hairline: var(--line-dark);
  --hairline-strong: rgba(255, 255, 255, 0.34);
  --divider-soft: rgba(255, 255, 255, 0.1);

  /* Text */
  --ink: var(--paper-000);
  --body-text: rgba(255, 255, 255, 0.82);
  --charcoal: rgba(255, 255, 255, 0.66);
  --mute: var(--gray-500);
  --ash: #6f6f6b;
  --stone: #3d3d3a;
  --on-light: var(--ink-950);
  --on-light-mute: rgba(5, 5, 5, 0.72);

  /* Acentos narrativos — paleta ilustrativa para asignar por artículo (--accent inline).
     Nunca usar estas variables como color global de UI, botones o navegación. */
  --accent-red: #ff1a1a;
  --accent-yellow: #ffd400;
  --accent-cyan: #00d9ff;
  --accent-green: #47ff3a;
  --accent-orange: #ff5a1f;
  --link: var(--paper-000);

  /* Bordes rectos — nada de esquinas redondeadas de producto SaaS */
  --r-sm: 0px;
  --r-md: 0px;
  --r-lg: 0px;
  --r-xl: 0px;

  /* Spacing */
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-xxl: 32px;
  --sp-xxxl: 48px;
  --sp-section: 96px;

  /* Fonts */
  --font-editorial: "Libre Caslon Display", Georgia, serif; /* titulares, citas, aperturas */
  --font-condensed: "Archivo Narrow", "Arial Narrow", sans-serif; /* nav, kicker, meta, fecha */
  --font-body: "Inter", -apple-system, sans-serif; /* UI y cuerpo de lectura */
  --font-mono: "DM Mono", "Geist Mono", ui-monospace, monospace; /* datos auxiliares */
  --font-display: var(--font-editorial); /* alias retrocompatible */
}

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

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Grano global — sutil, oscuro, no invasivo. pointer-events:none, opacidad baja.
   Ver spec 4.5: la sensación principal debe ser cine noir, no papel claro. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tratamiento de fotografía — blanco y negro de alto contraste (spec 4.4).
   Aplicar a mano donde una foto deba integrarse a la composición noir;
   no se fuerza globalmente porque posters/backdrops de watchlist pueden
   necesitar su color original hasta que se defina caso por caso. */
.mono-photo {
  filter: grayscale(1) contrast(1.15) brightness(0.95);
}

/* Tipografía editorial — utilidades para composición noir (spec 5) */
.kicker {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.headline-editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.meta-condensed {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--mute); }
.hidden { display: none !important; }

/* ===== Icons (Lucide, inline, currentColor) ===== */
.icon, svg.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-brand { width: 20px; height: 20px; color: var(--ink); }
.icon-h { width: 20px; height: 20px; color: var(--charcoal); margin-right: 2px; }
.icon-pending { display: inline-block; width: 16px; height: 16px; }
img.poster.hide { display: none; }
.poster-fallback-icon {
  width: 100%; aspect-ratio: 2/3;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-elevated); color: var(--stone);
}
.poster-fallback-icon svg { width: 32px; height: 32px; }
.chat-head strong { display: flex; align-items: center; gap: 8px; }
.nl-meta .nl-date { font-family: var(--font-mono); color: var(--ash); }
.btn-logout svg { width: 14px; height: 14px; }

/* ===== Nav-bar (64px, hairline bottom) ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  height: 64px;
  padding: 0 var(--sp-xxl);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}
.brand-icon { font-size: 18px; }
.topnav { display: flex; gap: var(--sp-lg); }
.topnav a {
  color: var(--body-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.35px;
  padding: 6px 10px;
  border-radius: var(--r-md);
}
.topnav a:hover { color: var(--ink); background: var(--surface-elevated); text-decoration: none; }
.topnav a.active { color: var(--ink); background: var(--surface-elevated); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-md); }

/* ===== Buttons ===== */
.btn-chat, .btn-login, .btn-logout {
  background: var(--surface-elevated);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 8px 16px;
  height: 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-chat:hover, .btn-login:hover { background: var(--surface-card); }
.btn-primary {
  background: var(--ink);
  color: var(--on-light);
  border: none;
  border-radius: var(--r-md);
  padding: 8px 16px;
  height: 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:hover { background: var(--surface-light); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.user-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  padding: 4px 12px 4px 4px;
  font-size: 13px;
  font-weight: 500;
}
.user-chip img { width: 28px; height: 28px; border-radius: 9999px; }

/* ===== Layout ===== */
main { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-xxl); }

/* Hero stripe — display serif gigante, padding 96px 32px, sin glow */
.hero {
  padding: var(--sp-section) var(--sp-xxl);
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.hero p {
  color: var(--body-text);
  font-size: 20px;
  font-weight: 400;
  max-width: 640px;
  margin: var(--sp-xl) auto 0;
}

/* Section — con glow atmosférico opcional */
.section { margin: var(--sp-section) 0; position: relative; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-xl);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.link-more { font-size: 14px; font-weight: 500; letter-spacing: 0.35px; }

/* ===== Newsletter card (feature-card) ===== */
.card-newsletter {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}
.card-newsletter h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.card-newsletter .nl-meta {
  color: var(--ash);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-bottom: var(--sp-md);
}
.card-newsletter p { color: var(--body-text); }
.nl-items { margin-top: var(--sp-lg); display: flex; flex-direction: column; gap: var(--sp-md); }
.nl-item {
  display: flex;
  gap: var(--sp-md);
  align-items: baseline;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface-deep);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
}
.nl-item .score {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ===== Grid media (feature grid) ===== */
.grid-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--sp-lg);
}
.card-media {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s;
  cursor: pointer;
  display: block;
  color: var(--ink);
}
.card-media:hover { border-color: var(--hairline-strong); text-decoration: none; }
.card-media img.poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: var(--surface-elevated);
}
.card-media .card-body { padding: var(--sp-md) var(--sp-lg); }
.card-media .m-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.card-media .m-meta { font-size: 12px; color: var(--mute); margin-top: 3px; }
.card-media .m-rating {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.poster-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  color: var(--stone);
  font-size: 32px;
}

/* ===== Filtros (text-input) ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  align-items: center;
}
.filters select, .filters input {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  height: 40px;
  font-family: var(--font-body);
  font-size: 14px;
}
.filters select:focus, .filters input:focus {
  outline: none;
  border-color: var(--ink);
}

/* ===== Archivo newsletters ===== */
.list-newsletters { display: flex; flex-direction: column; gap: var(--sp-md); }
.row-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-lg);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.row-newsletter:hover { border-color: var(--hairline-strong); text-decoration: none; }
.row-newsletter .nl-title { font-weight: 500; }
.row-newsletter .nl-date {
  color: var(--ash);
  font-size: 13px;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.row-newsletter .nl-count { color: var(--mute); font-size: 13px; white-space: nowrap; }

/* ===== Suscripción ===== */
.section-subscribe {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-subscribe::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-blue-glow), transparent 70%);
  pointer-events: none;
}
.form-subscribe { display: flex; gap: var(--sp-md); justify-content: center; margin-top: var(--sp-lg); position: relative; }
.form-subscribe input {
  background: var(--surface-deep);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  height: 40px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 280px;
}
.form-subscribe input:focus { outline: none; border-color: var(--ink); }
.sub-msg { margin-top: var(--sp-md); font-size: 14px; position: relative; }
.sub-msg.ok { color: var(--accent-green); }
.sub-msg.err { color: var(--accent-red); }

/* ===== Chat panel (code-window style) ===== */
.chat-panel {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 48px);
  background: var(--surface-deep);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-card);
}
.chat-head strong { font-weight: 500; font-size: 14px; }
.chat-head button { background: none; border: none; color: var(--mute); font-size: 16px; cursor: pointer; }
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.msg { max-width: 85%; padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; white-space: pre-wrap; }
.msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--on-light);
  border-bottom-right-radius: 3px;
}
.msg.bot {
  align-self: flex-start;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  color: var(--body-text);
  border-bottom-left-radius: 3px;
}
.chat-gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  text-align: center;
}
.chat-gate p { color: var(--mute); font-size: 14px; margin: 0; }
.chat-form { display: flex; gap: var(--sp-sm); padding: var(--sp-md); border-top: 1px solid var(--hairline); }
.chat-form input {
  flex: 1;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
}
.chat-form input:focus { outline: none; border-color: var(--ink); }
.msg.sources {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--link);
  align-self: flex-start;
}

/* ===== Newsletter detail ===== */
.nl-detail h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}
.nl-detail .nl-meta {
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: var(--sp-xxxl);
}
.nl-article {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-lg);
}
.nl-article h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.nl-article h3 a { color: var(--ink); }
.nl-article h3 a:hover { text-decoration: underline; }
.nl-article .a-source {
  color: var(--ash);
  font-size: 13px;
  font-family: var(--font-mono);
  margin: 4px 0 10px;
}
.nl-article .a-context {
  border-left: 2px solid var(--accent-yellow);
  padding: 6px 14px;
  font-size: 14px;
  color: var(--body-text);
  margin-bottom: 10px;
}
.nl-article p { color: var(--body-text); font-size: 16px; }
.nl-article .a-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-md); }
.nl-article .a-tags span {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--charcoal);
}
.nl-entities { margin: var(--sp-xl) 0; }
.nl-entities span {
  display: inline-block;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 4px 12px;
  margin: 3px;
  font-size: 13px;
  color: var(--charcoal);
}

.nl-entities { margin: var(--sp-xl) 0; }
.nl-entities span {
  display: inline-block;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 4px 12px;
  margin: 3px;
  font-size: 13px;
  color: var(--charcoal);
}

/* ===== Imágenes de artículos ===== */
.a-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-md);
  border: 1px solid var(--hairline);
  background: var(--surface-deep);
}
.a-image.hide { display: none; }
.a-slidehead { margin-bottom: var(--sp-md); }
.a-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  display: block;
  margin-bottom: 6px;
}
.swipe-hint { color: var(--mute); font-family: var(--font-body); font-size: 11px; }

/* ===== Mobile: feed vertical tipo TikTok (snap por artículo) ===== */
@media (max-width: 767px) {
  .nl-head {
    padding: var(--sp-md) var(--sp-md) 0;
    position: sticky;
    top: 64px;
    background: var(--bg);
    z-index: 5;
    border-bottom: 1px solid var(--hairline);
  }
  .nl-detail h1 { font-size: 28px; margin-bottom: 4px; }
  .nl-detail .nl-meta { margin-bottom: var(--sp-md); }
  .nl-detail .nl-meta .swipe-hint { color: var(--accent-blue); }
  #nl-feed {
    height: calc(100dvh - 210px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
  }
  .nl-article {
    min-height: calc(100dvh - 210px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: none;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    margin-bottom: 0;
    padding: var(--sp-md);
  }
  .a-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: var(--r-md);
    margin-bottom: var(--sp-md);
  }
  .a-image.hide { display: none; }
  .a-index {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-green);
    display: block;
    margin-bottom: 6px;
  }
  .nl-article h3 { font-size: 19px; }
  .a-body { flex: 1; }
  .a-body p { font-size: 15px; margin-bottom: 12px; }
}

/* ===== Media detail ===== */
.detail-media { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-xxxl); padding-top: var(--sp-xl); }
@media (max-width: 720px) { .detail-media { grid-template-columns: 1fr; } }
.detail-media .poster { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--hairline-strong); }
.detail-media h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.detail-media .d-meta {
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: var(--sp-md) 0 var(--sp-xl);
}
.detail-media .d-synopsis { color: var(--body-text); margin-bottom: var(--sp-xl); }
.detail-media .d-why {
  border-left: 2px solid var(--accent-yellow);
  padding: 10px 16px;
  margin-bottom: var(--sp-xl);
  color: var(--body-text);
}
.detail-media .d-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-md); }
.detail-media .d-fact {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--sp-md) 14px;
  font-size: 13px;
  color: var(--body-text);
}
.detail-media .d-fact strong {
  display: block;
  color: var(--ash);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 500;
}


.dateplate {
  text-align: center;
  padding-top: var(--sp-xl);
  margin-bottom: var(--sp-lg);
}
.dateplate-line { border-top: 1px solid var(--hairline-strong); margin-bottom: 10px; }
.dateplate-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.5px;
  padding: 8px 0;
}
.dateplate-rule {
  height: 3px;
  background: var(--ink);
  margin-bottom: 2px;
}
.dateplate-rule::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--ink);
  margin-top: 2px;
}
.front-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 10px;
  margin: var(--sp-xxl) 0 var(--sp-xl);
}
.front-head h2 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--charcoal); }

/* Historias: lead a 2 columnas + resto en grilla con column-rules */
.nyt-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0 var(--sp-xxxl);
}
.nyt-story { border-bottom: 1px solid var(--hairline); padding: var(--sp-lg) 0; }
.nyt-story:first-child { grid-column: 1 / -1; padding-top: 0; }
.story-link { display: block; color: inherit; }
.story-link:hover { text-decoration: none; }
.story-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.nyt-story .headline {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.nyt-story .headline { font-size: 21px; line-height: 1.25; }
.story-link { display: block; }
.story-link:hover .headline { text-decoration: underline; text-decoration-color: var(--mute); text-underline-offset: 3px; }
.nyt-story.lead .headline { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; }
.nyt-story .standfirst {
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 60ch;
}
.nyt-story.lead .standfirst { font-size: 17px; max-width: 70ch; }
.lead-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border: 1px solid var(--hairline);
  margin-bottom: var(--sp-lg);
  background: var(--surface-deep);
}
.lead-img.hide { display: none; }
.nyt-story:not(.lead) { border-left: 1px solid var(--hairline); padding-left: var(--sp-xl); }
.best-hint { font-size: 13px; color: var(--ash); }
@media (max-width: 1024px) { .nyt-grid { grid-template-columns: 1fr 1fr; } .nyt-grid .nyt-story.lead { grid-column: 1 / -1; } }
@media (max-width: 767px) { .nyt-grid { grid-template-columns: 1fr; } .nyt-story.lead .headline { font-size: 28px; } }

/* Estructura: nyt-top (lead + second lado a lado), nyt-more, week-extra colapsable */
.nyt-top { display: grid; grid-template-columns: 2fr 1fr; gap: 0 var(--sp-xxxl); }
.nyt-top .nyt-story.second { border-left: 1px solid var(--hairline); padding-left: var(--sp-xxl); }
.nyt-more { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 var(--sp-xl); border-top: 1px solid var(--hairline); }
.nyt-story.small { border-left: 1px solid var(--hairline); padding-left: var(--sp-lg); }
.nyt-story.small .headline { font-size: 17px; }
.btn-load-more {
  display: block;
  margin: var(--sp-xl) auto 0;
  width: auto;
  min-width: 320px;
  height: 40px;
}
.hidden { display: none !important; }
@media (max-width: 767px) {
  .nyt-top { grid-template-columns: 1fr; display: flex; flex-direction: column; gap: var(--sp-lg); }
  .nyt-more { grid-template-columns: 1fr; }
  .btn-load-more { width: 100%; margin-top: var(--sp-lg); }
  .today-extra { grid-template-columns: 1fr; }
  .today-extra .nyt-story { border-left: none; padding-left: 0; }
}

.today-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--sp-xl);
  border-top: 1px solid var(--hairline-strong);
  margin-top: var(--sp-xl);
}
.today-extra .nyt-story { border-left: 1px solid var(--hairline); padding-left: var(--sp-lg); }
.today-extra .nyt-story:first-child { border-left: none; padding-left: 0; }

/* ===== Portada dark editorial — adaptación NYT ===== */
/* Superficies planas, reglas de diario y tipografía protagonista. */
body { background: #101010; }
.topbar {
  background: #101010;
  border-bottom-color: #3b3b3b;
}
.topnav a.active, .topnav a:hover { background: transparent; color: #fff; }
.topnav a.active { text-decoration: underline; text-underline-offset: 6px; }
.dateplate { padding-top: 34px; }
.dateplate-line { border-top-color: #565656; }
.dateplate-date {
  color: #a7a7a7;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dateplate-rule, .dateplate-rule::after { background: #e8e8e8; }
.front-head { border-bottom-color: #777; margin-top: 42px; }
.front-head h2 {
  color: #f5f5f5;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.nyt-grid { column-gap: 28px; }
.nyt-story {
  background: transparent;
  border-bottom-color: #393939;
  padding: 22px 0;
}
.nyt-story:not(.lead) { border-left-color: #393939; }
.story-kicker { color: #9d9d9d; font-family: var(--font-body); font-size: 11px; }
.nyt-story .headline {
  color: #f5f5f5;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.028em;
}
/* ===== Tamaños editoriales estilizados NYT (normalizados) ===== */
.nyt-story.lead .headline { font-size: 28px !important; line-height: 1.15 !important; }
.nyt-story:not(.lead) .headline { font-size: 20px !important; line-height: 1.25 !important; }
.nyt-story.lead .standfirst { font-size: 15px !important; }
.nyt-story:not(.lead) .standfirst { font-size: 14px !important; }
.story-link:hover .headline { text-decoration-color: #a9a9a9; }
.btn-load-more {
  background: transparent;
  border: 1px solid #646464;
  border-radius: 0;
  color: #f3f3f3;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .16s ease, border-color .16s ease;
}
.btn-load-more:hover { background: #f1f1f1; border-color: #f1f1f1; color: #101010; }
.today-extra { border-top-color: #666; }
.today-extra .nyt-story { border-left-color: #393939; }

/* ===== Corrección definitiva de grillas editoriales y líneas NYT ===== */
#today-front {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0 32px;
}
#today-front > .nyt-story {
  border-left: none;
  border-bottom: 1px solid #393939;
  padding: 24px 0;
}
#today-front > .nyt-story:first-child {
  grid-column: 1;
  padding-top: 0;
}
#today-front > .nyt-story:nth-child(2) {
  grid-column: 2;
  grid-row: span 2;
  border-left: 1px solid #393939;
  border-bottom: none;
  padding-left: 32px;
  padding-top: 0;
}
#today-front > .nyt-story:nth-child(3) {
  grid-column: 1;
  border-left: none;
  padding-right: 32px;
}

#best-of-week {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0 32px;
}
#best-of-week > .nyt-story {
  border-left: none;
  border-bottom: 1px solid #393939;
  padding: 24px 0;
}
#best-of-week > .nyt-story:first-child {
  grid-column: 1 / -1;
  padding-top: 0;
}
#best-of-week > .nyt-story:nth-child(2) {
  grid-column: 1;
  padding-right: 32px;
}
#best-of-week > .nyt-story:nth-child(3) {
  grid-column: 2;
  border-left: 1px solid #393939;
  border-bottom: 1px solid #393939;
  padding-left: 32px;
  padding-right: 0;
}

.today-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid #393939;
  margin-top: 24px;
  padding-top: 24px;
}
.today-extra > .nyt-story {
  border-left: 1px solid #393939;
  border-bottom: 1px solid #393939;
  padding: 0 0 20px 24px;
}
.today-extra > .nyt-story:nth-child(3n+1) {
  border-left: none;
  padding-left: 0;
}

@media (max-width: 1024px) {
  #today-front, #best-of-week { grid-template-columns: 1fr; }
  #today-front > .nyt-story:nth-child(2), #best-of-week > .nyt-story:nth-child(3) {
    border-left: none; padding-left: 0; border-top: 1px solid #393939; padding-top: 24px;
  }
}
/* ===== Versión mobile limpia e impecable (stack vertical sin bordes rotos) ===== */
@media (max-width: 767px) {
  #today-front, #best-of-week, .today-extra {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
  }
  #today-front > .nyt-story,
  #best-of-week > .nyt-story,
  .today-extra > .nyt-story {
    grid-column: auto;
    grid-row: auto;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid #393939 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  #today-front > .nyt-story:first-child,
  #best-of-week > .nyt-story:first-child {
    padding-top: 4px !important;
  }
  .nyt-story.lead .headline {
    font-size: 28px !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
  }
  .nyt-story .headline {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
  .nyt-story .standfirst {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .btn-load-more {
    width: 100% !important;
    margin: 24px 0 !important;
    padding: 12px !important;
  }
}

/* ===== Estilo NYT para el Newsletter individual (tipo artículo impreso) ===== */
.nyt-nl-header {
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 20px;
  margin-bottom: 40px;
  text-align: center;
}
.nyt-nl-title-top {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -.02em;
  color: #f5f5f5;
  margin: 12px 0 6px;
}
.nyt-nl-item {
  border-bottom: 1px solid #393939;
  padding: 40px 0;
  max-width: 720px;
  margin: 0 auto;
}
.nyt-nl-item h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
.nyt-nl-item h2 a {
  color: #f5f5f5;
}
.nyt-nl-item h2 a:hover {
  text-decoration: underline;
  text-decoration-color: #9d9d9d;
}
.nyt-nl-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: #9d9d9d;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 24px;
}
.nyt-nl-body p {
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.nyt-nl-body strong {
  color: #f5f5f5;
  font-weight: 600;
}
.nyt-nl-figure {
  margin: 32px 0;
  border: 1px solid #393939;
  background: #18181b;
}
.nyt-nl-figure img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.nyt-nl-figure figcaption {
  font-family: var(--font-body);
  font-size: 11px;
  color: #888;
  padding: 8px 12px;
  border-top: 1px solid #393939;
  text-align: right;
  letter-spacing: .04em;
}
.nyt-nl-context {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #ffc53d;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: #bebebe;
  font-size: 15px;
  line-height: 1.6;
}
.nl-story-media {
  width: 100%;
  margin-bottom: 16px;
  background: #18181b;
  border: 1px solid #393939;
  overflow: hidden;
}
.nl-story-media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.nl-story-item {
  border-bottom: 1px solid #393939;
  padding: 32px 0;
}
.nl-story-item h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.nl-story-item h3 a {
  color: #f5f5f5;
}
.nl-story-item h3 a:hover {
  text-decoration: underline;
  text-decoration-color: #9d9d9d;
}
.nl-story-item .a-body p,
.nl-story-item .a-context p {
  color: #bebebe;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 68ch;
}
.nl-story-item .a-body strong,
.nl-story-item .a-context strong {
  color: #f5f5f5;
  font-weight: 600;
}
.nl-story-item .a-body em,
.nl-story-item .a-context em {
  color: #d1d5db;
}
.nl-story-item .a-body a {
  color: var(--link);
  text-decoration: underline;
}
.nl-story-item .a-context {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #ffc53d;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
.nl-story-item code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f3f4f6;
}
.nl-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #393939;
  padding-bottom: 14px;
  margin-bottom: 32px;
}
.nl-dateline {
  font-family: var(--font-body);
  font-size: 12px;
  color: #9d9d9d;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nl-lead-article {
  margin-bottom: 40px;
  border-bottom: 2px solid #555;
  padding-bottom: 36px;
}
.nl-lead-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #f5f5f5;
  margin-bottom: 16px;
}
.nl-lead-standfirst {
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 65ch;
}
.nl-lead-standfirst p {
  margin-bottom: 16px;
}
.nl-lead-media {
  width: 100%;
  margin: 24px 0 16px;
  border: 1px solid #393939;
  background: #18181b;
  overflow: hidden;
}
.nl-lead-media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.nl-feed-rest {
  display: flex;
  flex-direction: column;
}
.nl-story-item {
  border-bottom: 1px solid #393939;
  padding: 24px 0;
}
.nl-story-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.nl-story-item h3 a {
  color: #f5f5f5;
}
.nl-story-item h3 a:hover {
  text-decoration: underline;
  text-decoration-color: #9d9d9d;
}
.nl-story-item .a-body p {
  color: #bebebe;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 65ch;
}
#today-front {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 0 28px;
  align-items: start;
}
.nyt-col-left, .nyt-col-center, .nyt-col-right {
  display: flex;
  flex-direction: column;
}
.nyt-col-left {
  border-right: 1px solid #393939;
  padding-right: 28px;
}
.nyt-col-center {
  padding: 0 4px;
}
.nyt-col-right {
  border-left: 1px solid #393939;
  padding-left: 28px;
}

/* Foto central grande estilo NYT */
.story-media {
  width: 100%;
  margin-bottom: 16px;
  background: #18181b;
  border: 1px solid #393939;
  overflow: hidden;
}
.story-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.story-media img:hover {
  transform: scale(1.01);
}

/* Fondo del BANCO noir (artículos sin imagen propia): la ilustración abstracta,
   con el mismo tratamiento que en mobile. El velo va con el color del tema
   para que el texto de arriba se lea siempre. */
.story-media.is-bank {
  background: var(--bg, #f0eee7);
  border-color: var(--line, rgba(0, 0, 0, .18));
}
.story-media.is-bank .m-bank {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.story-media.is-bank .m-bank img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: 0;
  transition: transform .3s ease;
}
.story-media.is-bank .m-bank img:hover {
  transform: scale(1.01);
}
.story-media.is-bank .m-bank::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg, #f0eee7);
  opacity: .18;
  pointer-events: none;
}

.nyt-col-center .nyt-story.lead .headline {
  font-size: 32px !important;
  line-height: 1.12 !important;
}

@media (max-width: 1024px) {
  #today-front {
    grid-template-columns: 1fr 1fr;
  }
  .nyt-col-right {
    grid-column: 1 / -1;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #393939;
    padding-top: 24px;
    margin-top: 24px;
  }
  .nyt-col-left {
    border-right: 1px solid #393939;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  #today-front {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nyt-col-left, .nyt-col-center, .nyt-col-right {
    border: none !important;
    padding: 0 !important;
  }
  #today-front .nyt-story {
    border-bottom: 1px solid #393939;
    padding: 20px 0;
  }
  .story-media img {
    aspect-ratio: 16/9;
  }
}

/* ===== Lo mejor de la semana (mobile fallback clásico) ===== */
.best-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
@media (max-width: 767px) { .best-grid { grid-template-columns: 1fr; } }
.best-card {
  display: flex; gap: var(--sp-lg);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  transition: border-color 0.15s;
}
.best-card:hover { border-color: var(--hairline-strong); }
.best-card .best-score {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  min-width: 64px;
}
.best-card .best-score small { display: block; font-size: 10px; color: var(--mute); font-weight: 400; margin-top: 4px; }
.best-card .best-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); display: block; }
.best-card:hover .best-title { color: var(--link); text-decoration: none; }
.best-card .best-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ash); margin: 6px 0 8px; }
.best-card .best-context {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.best-card .best-score small { display: block; font-size: 10px; color: var(--mute); font-weight: 400; margin-top: 4px; }
.best-hint { font-size: 13px; color: var(--ash); }
@media (max-width: 767px) { .best-card { flex-direction: column; gap: var(--sp-md); } }

/* ===== Hero extras ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: var(--sp-xl);
}
.hero-badge .icon { width: 14px; height: 14px; color: var(--accent-yellow); }
.hero h1 em {
  font-style: italic;
  color: var(--ink);
  border-bottom: 3px solid var(--accent-orange);
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  margin-top: var(--sp-xl);
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--mute); }
.error-state { color: var(--accent-red); text-align: center; padding: 40px; }

/* ===== Modal de planes ===== */
.plan-modal-box {
  position: relative;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-xxl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.plan-lead { color: var(--mute); margin-bottom: var(--sp-xxl); }
.plans-header { text-align: center; margin-bottom: var(--sp-xxl); }
.plan-modal-box .plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
@media (max-width: 767px) { .plan-modal-box .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl) var(--sp-xl);
}
.plan-featured {
  background: var(--surface-elevated);
  border-color: var(--hairline-strong);
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  margin-bottom: var(--sp-lg);
}
.plan-badge .icon { width: 12px; height: 12px; }
.plan-name { font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  margin: var(--sp-sm) 0 4px;
}
.plan .plan-price .plan-period { font-size: 16px; color: var(--mute); }
.plan-tag { color: var(--ash); font-size: 13px; margin-bottom: var(--sp-lg); }
.plan-features { list-style: none; flex: 1; margin-bottom: var(--sp-xl); }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--body-text);
  border-bottom: 1px solid var(--divider-soft);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .icon { width: 14px; height: 14px; color: var(--accent-green); margin-top: 3px; }
.plan-features strong { color: var(--ink); font-weight: 600; }
.plan-note { margin-top: var(--sp-md); color: var(--ash); font-size: 12px; }
.plan-modal-box .plan-note { margin-top: var(--sp-md); color: var(--ash); font-size: 12px; }
.btn-ghost {
  background: var(--surface-elevated);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  height: 36px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--surface-card); }
.plan-fine {
  text-align: center;
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline);
  color: var(--ash);
  font-size: 13px;
}
.plan-badge-featured { color: var(--accent-green); }

/* ===== Modal de trailer ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: var(--sp-xl);
}
.modal-backdrop.open { display: flex; }
.yt-modal-box {
  position: relative;
  width: min(1024px, calc(100vw - 32px));
}
.yt-modal-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-deep);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}
.yt-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: var(--surface-elevated);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.yt-modal-close:hover { background: var(--surface-card); }
@media (max-width: 767px) {
  .modal-backdrop { padding: var(--sp-md); }
  .yt-modal-box { width: 100%; }
  .yt-modal-close { top: -40px; }
}

.spinner {
  width: 28px; height: 28px; margin: 30px auto;
  border: 2px solid var(--hairline-strong);
  border-top-color: var(--ink);
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-back {
  display: inline-block;
  margin-bottom: var(--sp-xl);
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.35px;
}
.btn-back:hover { color: var(--ink); text-decoration: none; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--sp-xxxl) var(--sp-xxl);
  text-align: center;
  color: var(--charcoal);
  font-size: 14px;
  margin-top: var(--sp-section);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .topnav { display: none; }
  .hero h1 { font-size: 64px; }
  main { padding: 0 var(--sp-lg); }
  .hero { padding: 72px var(--sp-lg); }
}
@media (max-width: 767px) {
  .topbar { padding: 0 var(--sp-lg); gap: var(--sp-md); }
  .hero { padding: 56px var(--sp-lg) 48px; }
  .hero h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
  .hero p { font-size: 16px; padding: 0 var(--sp-sm); }
  .section { margin: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head h2 { font-size: 26px; line-height: 1.15; }
  main { padding: 0 var(--sp-md); }
  .card-newsletter { padding: var(--sp-lg); }
  .grid-media { grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
  .form-subscribe { flex-direction: column; align-items: center; }
  .form-subscribe input { width: 100%; max-width: 340px; text-align: center; }
  .chat-panel { right: var(--sp-md); bottom: var(--sp-md); width: calc(100vw - 24px); }
  .nl-article { padding: var(--sp-lg); }
  .nl-article h3 { font-size: 17px; line-height: 1.35; }
  .detail-media { gap: var(--sp-xl); padding-top: 0; }
  .detail-media h1 { font-size: 32px; line-height: 1.05; }
  .row-newsletter { flex-direction: column; align-items: flex-start; gap: 4px; padding: var(--sp-lg); }
  .row-newsletter .nl-date { order: -1; }
  .filters { gap: var(--sp-sm); }
  .filters input { min-width: 0; width: 100%; }
  .filters select { flex: 1; min-width: 0; }
  .footer { padding: var(--sp-xxl) var(--sp-lg); }
}
@media (max-width: 425px) {
  .hero h1 { font-size: 36px; }
  .grid-media { grid-template-columns: 1fr 1fr; }
  .detail-media .d-facts { grid-template-columns: 1fr; }
}
/* Form de interesados en plan pago */
.paid-signup {
  display: flex;
  gap: 8px;
  margin-top: var(--sp-md);
}
.paid-signup input {
  flex: 1;
  min-width: 0;
  background: var(--surface-deep);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 13px;
}
.paid-signup input:focus { outline: none; border-color: var(--ink); }
.paid-signup .btn-primary { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
.plan-nota-error { color: var(--accent-red); }

/*
 * NOTE: plan-nota CSS removed; plan-note already styled above
 */

/* Link a artículo individual dentro del newsletter */
.nyt-nl-more {
  display: inline-block;
  margin-top: 12px;
  font: 600 13px "Inter", sans-serif;
  color: var(--accent, #fe2c55);
  text-decoration: none;
}
.nyt-nl-more:hover { text-decoration: underline; }
