.wizard-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
}

.wizard-tab {
  min-width: 0;
  min-height: 64px;
  padding: 10px 5px;
  border: 2px solid var(--border);
  border-radius: 13px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: clamp(.72rem, 1.5vw, .92rem);
  font-weight: 650;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.wizard-tab[data-state="active"] {
  border-color: var(--accent);
  background: var(--glow);
  color: var(--text);
  box-shadow: inset 0 -4px var(--accent);
}

.wizard-tab[data-state="completed"] {
  border-color: var(--accent);
  background: var(--surface);
}

.wizard-tab[data-state="pending"] {
  opacity: .75;
}

.wizard-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 190px;
}

.wizard-panel[hidden],
.wizard-back[hidden],
.wizard-next[hidden],
.setup-save[hidden],
.setup-cancel[hidden] {
  display: none !important;
}

.wizard-back,
.wizard-next {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.wizard-back {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.wizard-next {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-text);
}

.setup-actions {
  justify-content: flex-end;
}

.setup-actions .wizard-back:not([hidden]) {
  margin-right: auto;
}

@media (max-width: 520px) {
  .wizard-tabs { gap: 4px; }
  .wizard-tab {
    min-height: 54px;
    padding: 7px 3px;
    font-size: .68rem;
  }
  .wizard-panel { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-tab { transition: none; }
}
/* CRONOS-003.3D: ilustraciones originales aprobadas */
.wizard-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wizard-tab-image {
  display: block;
  width: min(100%, 86px);
  height: 66px;
  object-fit: contain;
  border-radius: 10px;
}

.wizard-tab span {
  display: block;
  text-align: center;
}

.wizard-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 130px;
  padding: 8px;
  border-radius: 16px;
  background: var(--glow);
}

.wizard-art-image {
  display: block;
  width: min(100%, 205px);
  height: 145px;
  object-fit: contain;
}

@media (max-width: 520px) {
  .wizard-tab-image {
    width: 54px;
    height: 45px;
  }

  .wizard-tab {
    min-height: 85px;
    gap: 4px;
  }

  .wizard-art {
    min-height: 90px;
    padding: 4px;
  }

  .wizard-art-image {
    height: 100px;
  }
}