.bn-home {
  padding: clamp(1.5rem, 3vw, 3rem) 0 var(--bn-space-16);
}

.bn-home a {
  text-decoration: none;
}

.bn-home-lead {
  margin-bottom: var(--bn-space-10);
}

.bn-home-lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr) minmax(250px, 0.78fr);
  gap: clamp(1.5rem, 2.2vw, 2.75rem);
  align-items: start;
}

.bn-lead-story {
  padding-top: var(--bn-space-3);
}

.bn-story-category {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--bn-color-accent-600);
  font-size: var(--bn-text-xs);
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.bn-lead-story h1 {
  margin-bottom: var(--bn-space-5);
  font-size: clamp(2rem, 3.1vw, 3.6rem);
  letter-spacing: -.035em;
}

.bn-lead-story__excerpt {
  color: var(--bn-color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.bn-post-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bn-color-surface-soft);
  aspect-ratio: 16 / 10;
}

.bn-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bn-transition-base);
}

.bn-post-media:hover img {
  transform: scale(1.018);
}

.bn-post-media--lead {
  min-height: 440px;
  aspect-ratio: 5 / 4;
}

.bn-post-media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 2vw, 2rem);
  background:
    radial-gradient(circle at 78% 22%, rgba(15,96,183,.42), transparent 26%),
    linear-gradient(145deg, var(--bn-color-primary-950), #0a4387 62%, var(--bn-color-accent-700));
  color: #fff;
}

.bn-post-media__fallback span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .76;
}

.bn-post-media__fallback strong {
  max-width: 11ch;
  font-family: var(--bn-font-serif);
  font-size: clamp(1.35rem, 2.2vw, 2.35rem);
  line-height: 1.05;
}

.bn-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-top: var(--bn-space-4);
  color: var(--bn-color-muted);
  font-size: var(--bn-text-xs);
}

.bn-demo-badge {
  border: 1px solid var(--bn-color-border);
  border-radius: 99px;
  padding: .05rem .45rem;
  color: var(--bn-color-primary-900);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bn-top-headlines {
  border-top: 4px solid var(--bn-color-ink);
  padding-top: var(--bn-space-4);
}

.bn-top-headlines > h2 {
  margin-bottom: var(--bn-space-5);
  font-size: 1.25rem;
}

.bn-top-headlines ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-top-headlines li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .75rem;
  border-top: 1px solid var(--bn-color-border);
  padding: .9rem 0;
}

.bn-top-headlines li:first-child {
  border-top: 0;
  padding-top: 0;
}

.bn-top-headlines li > span {
  color: var(--bn-color-accent-600);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bn-top-headlines a {
  font-family: var(--bn-font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.28;
}

.bn-home-secondary {
  border-top: 1px solid var(--bn-color-border);
  border-bottom: 1px solid var(--bn-color-border);
  padding: var(--bn-space-8) 0;
}

.bn-home-secondary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.bn-news-card {
  min-width: 0;
}

.bn-news-card--compact .bn-post-media {
  margin-bottom: var(--bn-space-4);
  aspect-ratio: 16 / 9;
}

.bn-news-card h2,
.bn-news-card h3 {
  margin: 0;
  font-family: var(--bn-font-serif);
  font-size: clamp(1.1rem, 1vw + .8rem, 1.45rem);
  line-height: 1.22;
}

.bn-news-card p {
  margin: var(--bn-space-3) 0 0;
  color: var(--bn-color-muted);
}

.bn-home-block {
  padding-top: clamp(2.8rem, 5vw, 5rem);
}

.bn-section-heading {
  display: flex;
  gap: var(--bn-space-5);
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--bn-space-6);
  border-top: 4px solid var(--bn-color-ink);
  padding-top: .9rem;
}

.bn-section-heading--standalone {
  margin-bottom: var(--bn-space-8);
}

.bn-section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2vw, 2.25rem);
}

.bn-section-heading > a {
  color: var(--bn-color-primary-900);
  font-size: var(--bn-text-sm);
  font-weight: 800;
}

.bn-top-stories-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr) minmax(270px, .72fr);
  gap: clamp(1.5rem, 2vw, 2.25rem);
  align-items: start;
}

.bn-story-feature .bn-post-media {
  margin-bottom: var(--bn-space-5);
  aspect-ratio: 16 / 9;
}

.bn-story-feature h3 {
  margin: 0 0 .75rem;
  font-family: var(--bn-font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.6rem);
  line-height: 1.08;
}

.bn-story-feature p {
  color: var(--bn-color-muted);
}

.bn-story-stack {
  display: grid;
  gap: 0;
}

.bn-story-stack article {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: .9rem;
  border-top: 1px solid var(--bn-color-border);
  padding: 1rem 0;
}

.bn-story-stack article:first-child {
  border-top: 0;
  padding-top: 0;
}

.bn-story-stack .bn-post-media {
  aspect-ratio: 1 / 1;
}

.bn-story-stack h3 {
  margin: 0;
  font-family: var(--bn-font-serif);
  font-size: 1rem;
  line-height: 1.25;
}

.bn-story-stack .bn-story-category {
  margin-bottom: .25rem;
  font-size: .7rem;
}

.bn-newsletter {
  border-top: 4px solid var(--bn-color-accent-600);
  padding: var(--bn-space-6);
  background: var(--bn-color-primary-950);
  color: #fff;
}

.bn-newsletter .bn-eyebrow {
  color: #fff;
  opacity: .8;
}

.bn-newsletter h2 {
  margin-bottom: var(--bn-space-4);
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.bn-newsletter > p {
  color: rgba(255,255,255,.78);
}

.bn-newsletter form {
  display: grid;
  gap: .75rem;
  margin-top: var(--bn-space-5);
}

.bn-newsletter input {
  width: 100%;
  min-height: 48px;
  border: 0;
  padding: 0 .9rem;
  background: #fff;
  color: var(--bn-color-ink);
}

.bn-newsletter button {
  min-height: 48px;
  border: 0;
  background: var(--bn-color-accent-600);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.bn-newsletter__privacy {
  margin: .75rem 0 0;
  font-size: .78rem;
}

.bn-newsletter__message {
  padding: .6rem .75rem;
  background: rgba(255,255,255,.12);
}

.bn-newsletter__message--error {
  border-left: 3px solid #fff;
}

.bn-section-lead-list {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.bn-section-lead-card .bn-post-media {
  margin-bottom: var(--bn-space-5);
}

.bn-section-lead-card h3 {
  margin: 0;
  font-family: var(--bn-font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
}

.bn-section-lead-card p {
  color: var(--bn-color-muted);
}

.bn-section-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  border-top: 1px solid var(--bn-color-border);
  padding: 1rem 0;
}

.bn-section-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.bn-section-list .bn-post-media {
  aspect-ratio: 4 / 3;
}

.bn-section-list h3 {
  margin: 0;
  font-family: var(--bn-font-serif);
  font-size: 1.12rem;
  line-height: 1.22;
}

.bn-section-list .bn-card-meta {
  margin-top: .55rem;
}

.bn-section-card-grid,
.bn-section-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.bn-section-card-grid .bn-post-media,
.bn-section-visual-grid .bn-post-media {
  margin-bottom: var(--bn-space-4);
}

.bn-section-visual-grid article:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.bn-section-visual-grid article:first-child .bn-post-media {
  aspect-ratio: 4 / 3;
}

.bn-section-visual-grid h3 {
  margin: 0;
  font-family: var(--bn-font-serif);
  font-size: 1.25rem;
}

.bn-section-visual-grid article:first-child h3 {
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
}

.bn-home-editorial-strip {
  margin-top: clamp(3rem, 5vw, 5rem);
  border-top: 1px solid var(--bn-color-border);
}

.bn-editorial-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.bn-editorial-column article {
  border-top: 1px solid var(--bn-color-border);
  padding: 1rem 0;
}

.bn-editorial-column article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bn-editorial-column h3 {
  margin: 0;
  font-family: var(--bn-font-serif);
  font-size: 1.2rem;
}

.bn-ad-slot {
  width: min(100% - (2 * var(--bn-gutter)), var(--bn-container-wide));
  margin: var(--bn-space-10) auto 0;
}

@media (max-width: 1100px) {
  .bn-home-lead__grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  }

  .bn-top-headlines {
    grid-column: 1 / -1;
  }

  .bn-top-headlines ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .bn-top-stories-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr);
  }

  .bn-newsletter {
    grid-column: 1 / -1;
  }

  .bn-home-secondary__grid,
  .bn-section-card-grid,
  .bn-section-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bn-home {
    padding-top: 1.25rem;
  }

  .bn-home-lead__grid,
  .bn-top-stories-grid,
  .bn-section-lead-list,
  .bn-editorial-columns {
    grid-template-columns: 1fr;
  }

  .bn-lead-story {
    order: 1;
  }

  .bn-lead-media {
    order: 2;
  }

  .bn-top-headlines {
    order: 3;
  }

  .bn-post-media--lead {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .bn-home-secondary__grid,
  .bn-section-card-grid,
  .bn-section-visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bn-section-visual-grid article:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bn-top-headlines ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .bn-lead-story h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .bn-home-secondary__grid,
  .bn-section-card-grid,
  .bn-section-visual-grid {
    grid-template-columns: 1fr;
  }

  .bn-news-card--compact {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 1rem;
    border-top: 1px solid var(--bn-color-border);
    padding-top: 1rem;
  }

  .bn-news-card--compact .bn-post-media {
    margin-bottom: 0;
    aspect-ratio: 1 / 1;
  }

  .bn-section-list article,
  .bn-story-stack article {
    grid-template-columns: 104px 1fr;
  }

  .bn-section-heading {
    align-items: center;
  }

  .bn-section-heading h2 {
    font-size: 1.55rem;
  }
}

/* Stage 3.1 — branded category variation for non-image states. */
.bn-post-media--cat-politica .bn-post-media__fallback,
.bn-post-media--cat-internacional .bn-post-media__fallback {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(145deg, #071a3e, #123b74 58%, #b40b10);
}

.bn-post-media--cat-economia .bn-post-media__fallback,
.bn-post-media--cat-actualidad .bn-post-media__fallback {
  background:
    radial-gradient(circle at 80% 18%, rgba(15,96,183,.5), transparent 27%),
    linear-gradient(145deg, #061d49, #0b4f98 64%, #b20d12);
}

.bn-post-media--cat-turismo .bn-post-media__fallback,
.bn-post-media--cat-sociales .bn-post-media__fallback {
  background:
    radial-gradient(circle at 22% 22%, rgba(255,255,255,.13), transparent 25%),
    linear-gradient(155deg, #073064, #0f60b7 62%, #a3070a);
}

.bn-post-media--cat-deportes .bn-post-media__fallback,
.bn-post-media--cat-salud .bn-post-media__fallback {
  background:
    radial-gradient(circle at 76% 28%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(135deg, #081c42, #0d4a87 66%, #cf1014);
}

.bn-post-media--cat-entretenimientos .bn-post-media__fallback,
.bn-post-media--cat-multimedia .bn-post-media__fallback,
.bn-post-media--cat-especiales .bn-post-media__fallback {
  background:
    radial-gradient(circle at 20% 78%, rgba(208,14,18,.36), transparent 30%),
    linear-gradient(145deg, #071a3e, #103f7a 62%, #8d090d);
}

/* Stage 3.4 — mobile editorial polish and resilient media fallbacks. */
.bn-post-media__fallback span,
.bn-post-media__fallback strong {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.bn-post-media__fallback strong {
  max-width: 100%;
  text-wrap: balance;
}

.bn-post-media--label-medium .bn-post-media__fallback strong {
  font-size: clamp(1.15rem, 1.85vw, 1.9rem);
}

.bn-post-media--label-long .bn-post-media__fallback strong {
  font-size: clamp(1rem, 1.55vw, 1.55rem);
  line-height: 1.08;
}

.bn-post-media--size-bn-thumb .bn-post-media__fallback {
  padding: .65rem;
}

.bn-post-media--size-bn-thumb .bn-post-media__fallback span {
  font-size: .58rem;
  letter-spacing: .08em;
}

.bn-post-media--size-bn-thumb .bn-post-media__fallback strong {
  font-size: .82rem;
  line-height: 1.04;
}

.bn-post-media--size-bn-thumb.bn-post-media--label-long .bn-post-media__fallback strong {
  font-size: .68rem;
}

.bn-section-heading h2,
.bn-section-heading > a {
  overflow-wrap: normal;
  word-break: normal;
}

.bn-section-heading > a {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .bn-lead-story h1 {
    font-size: clamp(2rem, 8vw, 2.45rem);
    line-height: 1.02;
    text-wrap: balance;
  }

  .bn-lead-story__excerpt {
    font-size: 1rem;
    line-height: 1.58;
  }

  .bn-home-secondary__grid {
    gap: 0;
  }

  .bn-news-card--compact .bn-post-media__fallback {
    padding: .65rem;
  }

  .bn-news-card--compact .bn-post-media__fallback span {
    font-size: .58rem;
    letter-spacing: .08em;
  }

  .bn-news-card--compact .bn-post-media__fallback strong {
    font-size: .78rem;
    line-height: 1.04;
  }

  .bn-news-card--compact .bn-post-media--label-long .bn-post-media__fallback strong {
    font-size: .66rem;
  }

  /* Keep the lead item visual, but turn supporting cards into compact rows. */
  .bn-section-card-grid,
  .bn-section-visual-grid {
    gap: 0;
  }

  .bn-section-card-grid > article:not(:first-child),
  .bn-section-visual-grid > article:not(:first-child) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    border-top: 1px solid var(--bn-color-border);
    padding: 1rem 0;
  }

  .bn-section-card-grid > article:not(:first-child) .bn-post-media,
  .bn-section-visual-grid > article:not(:first-child) .bn-post-media {
    margin: 0;
    aspect-ratio: 1 / 1;
  }

  .bn-section-card-grid > article:not(:first-child) .bn-post-media__fallback,
  .bn-section-visual-grid > article:not(:first-child) .bn-post-media__fallback {
    padding: .65rem;
  }

  .bn-section-card-grid > article:not(:first-child) .bn-post-media__fallback span,
  .bn-section-visual-grid > article:not(:first-child) .bn-post-media__fallback span {
    font-size: .58rem;
    letter-spacing: .08em;
  }

  .bn-section-card-grid > article:not(:first-child) .bn-post-media__fallback strong,
  .bn-section-visual-grid > article:not(:first-child) .bn-post-media__fallback strong {
    font-size: .78rem;
    line-height: 1.04;
  }

  .bn-section-card-grid > article:not(:first-child) .bn-post-media--label-long .bn-post-media__fallback strong,
  .bn-section-visual-grid > article:not(:first-child) .bn-post-media--label-long .bn-post-media__fallback strong {
    font-size: .66rem;
  }

  .bn-section-card-grid > article:not(:first-child) h3,
  .bn-section-visual-grid > article:not(:first-child) h3 {
    font-size: 1.1rem;
    line-height: 1.18;
  }

  .bn-section-card-grid > article:not(:first-child) p {
    display: none;
  }

  .bn-section-heading {
    gap: .9rem;
  }
}

@media (max-width: 380px) {
  .bn-section-heading h2 {
    font-size: 1.3rem;
  }

  .bn-section-heading > a {
    font-size: .84rem;
  }

  .bn-section-card-grid > article:not(:first-child),
  .bn-section-visual-grid > article:not(:first-child),
  .bn-news-card--compact,
  .bn-section-list article,
  .bn-story-stack article {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: .8rem;
  }
}
