/*
  DDSYS — Componente: Indicators (Franja de Indicadores)
  Fondo blanco, sin ningún color de acento: a propósito la sección más
  neutra del sitio, para que la atención esté 100% en los números.
*/

.indicators {
  background-color: var(--surface-page);
  padding-block: var(--space-12);
}

.indicators__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-padding);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) 0;
}

.indicator {
  position: relative;
  text-align: center;
  padding-inline: var(--space-4);
}

/* Divisores finos entre columnas/filas — ver Design System 4.7. */
.indicator:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-color: var(--surface-card-border);
}

.indicator:nth-child(3),
.indicator:nth-child(4) {
  border-top: 1px solid var(--surface-card-border);
  padding-top: var(--space-8);
}

.indicator__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  line-height: 1.1;
}

.indicator__label {
  margin: var(--space-2) 0 0;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Marca visual imposible de pasar por alto para las cifras de ejemplo
   que todavía faltan reemplazar por datos reales (ver comentario en
   pages/home.content.html). Se retira junto con el placeholder. */
.indicator__label em {
  font-style: normal;
  color: var(--color-warning);
  font-weight: var(--weight-semibold);
}

@media (min-width: 1024px) {
  .indicators__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .indicator:nth-child(2)::before {
    /* En desktop las 4 columnas están en una sola fila: el divisor de
       la segunda columna ya alcanza, sumamos el resto acá. */
    display: block;
  }

  .indicator:nth-child(3),
  .indicator:nth-child(4) {
    border-top: none;
    padding-top: 0;
  }

  .indicator:nth-child(3)::before,
  .indicator:nth-child(4)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background-color: var(--surface-card-border);
  }
}
