/* Páginas de tema con narrativa (storytelling) */
.topic-page--story .page-main-inner {
  max-width: 900px;
}

.topic-hero {
  margin: 0 0 2.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.topic-hero-media {
  position: relative;
  margin: 0;
  min-height: 300px;
  overflow: hidden;
}

.topic-hero-media img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center center;
}

.topic-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.topic-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem 1.75rem 1.75rem;
  pointer-events: none;
}

.topic-hero-body {
  position: relative;
  padding: 1.35rem 1.75rem 1.65rem;
  background: linear-gradient(180deg, #000000 0%, #000000 100%);
  color: #fff;
}

.topic-hero-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--friendly);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.topic-hero-title {
  font-family: var(--friendly);
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
  color: #ffffff;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.topic-hero-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52rem;
}

.topic-story {
  margin-bottom: 2.75rem;
}

.story-block {
  margin-bottom: 2.25rem;
}

.story-block h2 {
  font-family: var(--friendly);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.85rem;
  line-height: 1.25;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gold);
}

.story-block p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
}

.story-block p:last-child {
  margin-bottom: 0;
}

.story-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}

.story-list li {
  margin-bottom: 0.5rem;
}

.story-list li:last-child {
  margin-bottom: 0;
}

.story-pullquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem 1.25rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.story-pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

.story-pullquote cite {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.story-stats-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 640px) {
  .story-stats-band {
    grid-template-columns: repeat(4, 1fr);
  }
}

.story-stat {
  padding: 1rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  text-align: center;
}

.story-stat-value {
  display: block;
  font-family: var(--friendly);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.story-stat-label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.topic-data-section {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.topic-data-section > .section-title {
  font-family: var(--friendly);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.topic-data-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52rem;
}

.topic-data-section .topic-panel-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: var(--shadow);
}

.topic-cta {
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, #000000 0%, var(--navy) 100%);
  border-radius: 12px;
  color: #fff;
  text-align: center;
}

.topic-cta h2 {
  font-family: var(--friendly);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
}

.topic-cta p {
  margin: 0 0 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.topic-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--friendly);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.topic-cta .btn:hover {
  background: var(--gold-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .topic-hero-body {
    padding: 1.2rem 1.25rem 1.35rem;
  }

  .topic-hero-media {
    min-height: 240px;
  }

  .topic-hero-media img {
    height: 240px;
  }

  .topic-hero-overlay {
    padding: 1.15rem 1.25rem 1.35rem;
  }
}

/* Título del hero sobre imagen — forzar blanco ante estilos globales */
.topic-hero .topic-hero-title {
  color: #ffffff !important;
}
