.stats-section {
  position: relative;
  min-height: 560px;
  width: 100%;

  overflow: hidden;

  background: var(--black);
  color: var(--white);

  display: grid;
  place-items: center;

  padding: 130px var(--page-padding);
}

.stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.92) 0%,
      rgba(0,0,0,0.82) 45%,
      rgba(0,0,0,0.58) 100%
    ),
    url("../assets/img/section-2-2/stats-bg.jpg");

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  transform: scale(1.02);
}

.stats-content {
  position: relative;
  z-index: 1;

  width: min(100%, 980px);
  text-align: center;
}

.stats-eyebrow {
  margin-bottom: 46px;

  font-size: clamp(11px, 1vw, 14px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  opacity: 0.86;
}

.stats-content h2 {
  margin-bottom: 64px;

  font-size: clamp(42px, 5.5vw, 78px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: center;
}

.stat-item strong {
  display: flex;
  justify-content: center;
  align-items: baseline;

  color: var(--white);

  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.stat-item p {
  margin-top: 22px;

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  opacity: 0.85;
}

@media (max-width: 1024px) {
  .stats-section {
    min-height: auto;
    padding: 110px var(--page-padding);
  }
}

@media (max-width: 760px) {
  .stats-section {
    padding: 100px var(--page-padding);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-content h2 {
    margin-bottom: 56px;
  }

  .stat-item p {
    margin-top: 16px;
  }
}
/* =========================
   DARK MODE — Stats
   La sección tiene fondo negro propio.
   En dark mode --black invierte a blanco,
   así que forzamos el fondo muy oscuro
   y el texto siempre blanco.
========================= */
[data-theme="dark"] .stats-section {
  background: #0a0a0a;
}

[data-theme="dark"] .stats-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .stats-content h2 {
  color: #ffffff;
}

[data-theme="dark"] .stat-item strong {
  color: #ffffff;
}

[data-theme="dark"] .stat-item p {
  color: rgba(255, 255, 255, 0.75);
}
