.objetivo {
  margin: 14px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--linea, #35302a);
  border-radius: 10px;
}
.objetivo[hidden] { display: none; }
.objetivo__campo { display: block; font-weight: 600; margin-bottom: 8px; }
.objetivo__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.objetivo__fila input {
  width: 6.5rem;
  padding: 9px 12px;
  font: inherit;
  font-size: 1.1rem;
  text-align: right;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}
.objetivo__fila input:focus-visible { outline: 2px solid #4a7bff; outline-offset: 2px; }
.objetivo__unidad { opacity: 0.8; }
.objetivo__atajos { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.objetivo__atajos button {
  padding: 6px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.85;
  cursor: pointer;
}
.objetivo__atajos button:hover { opacity: 1; }
.objetivo p { margin: 10px 0 0; }
#niveles[hidden] { display: none; }

.comparativa { display: grid; gap: 8px; margin: 12px 0 6px; }
.comp-fila { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.comp-rotulo { font-size: 0.85rem; opacity: 0.8; }
.comp-barra { height: 10px; border-radius: 999px; background: rgba(127, 127, 127, 0.22); overflow: hidden; }
.comp-barra i { display: block; height: 100%; border-radius: 999px; }
.comp-barra--antes i { background: #a79f90; }
.comp-barra--despues i { background: #5fb87a; }
.comp-valor { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.obj-lista { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.obj-lista li { padding-left: 22px; position: relative; }
.obj-lista li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.obj-ok::before { content: "✓"; color: #5fb87a; }
.obj-no::before { content: "!"; color: #e8a23a; }

.vista { display: inline-flex; margin: 0 0 8px; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; opacity: 0.95; }
.vista[hidden] { display: none; }
.vista button {
  padding: 6px 14px;
  font: inherit;
  font-size: 0.88rem;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.vista button[aria-pressed="true"] { background: #ece5d8; color: #14120f; font-weight: 600; }
.vista button:focus-visible { outline: 2px solid #4a7bff; outline-offset: -2px; }

.stage--lado { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 16px; }
.stage--lado .lado { margin: 0; text-align: center; flex: 1 1 0; min-width: 0; }
.stage--lado .lado canvas { max-width: 100%; height: auto; }
.stage--lado figcaption { margin-top: 6px; font-size: 0.88rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
