/* Stats — cifras con label + descripción. Pixel-perfect HOME.html .stats. */

.stats__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}
.stats__header h2 { margin-bottom: var(--space-md); }
.stats.section--dark .stats__header h2 { color: var(--color-white); }
.stats__header h2 em { font-style: normal; color: var(--color-orange); }
.stats__header p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
}
.stats.section--beige .stats__header p,
.stats:not(.section--dark) .stats__header p { color: var(--color-gray); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.stats__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.stats__grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.stats__grid[data-count="5"] { grid-template-columns: repeat(5, 1fr); }

.stat {
  text-align: center;
  padding: 0 var(--space-sm);
  position: relative;
}
/* Separador vertical entre stats. */
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.stats.section--beige .stat + .stat::before,
.stats:not(.section--dark) .stat + .stat::before { background: rgba(42, 41, 98, 0.12); }

.stat__value,
.stat__number {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  color: var(--color-orange);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  display: block;
}

.stat__label {
  font-size: var(--text-base);
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.stats.section--beige .stat__label,
.stats:not(.section--dark) .stat__label { color: var(--color-dark); }

.stat__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0;
}
.stats.section--beige .stat__desc,
.stats:not(.section--dark) .stat__desc { color: var(--color-gray); }

@media (max-width: 968px) {
  .stats__grid,
  .stats__grid[data-count="4"],
  .stats__grid[data-count="5"] { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
}
