/*! JDServer-Webs v6.1 — modules/extremes/extremes.css */
#extremes {
  margin: 28px 0;
}

#extremes h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Contenedor principal (3 columnas adaptables) */
.extremes-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Tarjeta individual */
.extreme-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.extreme-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* Cabecera de cada tarjeta */
.extreme-item strong {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Líneas de datos (tipo tabla) */
.extreme-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: .92rem;
  line-height: 1.4;
  gap: 10px;
}

.extreme-line span:first-child {
  color: var(--muted);
}

.extreme-line span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* Valor duo (máx / mín) en la misma línea */
.extreme-duo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.extreme-duo .max,
.extreme-duo .min {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.extreme-duo .max::before {
  content: "▲";
  font-size: .8em;
  opacity: .8;
}
.extreme-duo .min::before {
  content: "▼";
  font-size: .8em;
  opacity: .8;
}

/* Colores sutiles (tema-aware) */
.extreme-duo .max {
  color: var(--brand-strong, #d44);
}
.extreme-duo .min {
  color: var(--brand-50, #3aa);
  opacity: .95;
}

/* Versión móvil */
@media (max-width: 600px) {
  #extremes h3 {
    text-align: center;
  }
}
