/* CRONOS-003.3F.1 - Asistente visual aprobado */

.setup-dialog {
  width: min(96vw, 1040px);
  max-width: 1040px;
  max-height: 94dvh;
  border-radius: 26px;
}

.setup-form {
  padding: clamp(18px, 3vw, 34px);
}

.setup-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -.025em;
}

/* Cuatro pestañas gráficas */
.wizard-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 22px;
}

.wizard-tab {
  min-width: 0;
  min-height: 180px;
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  background: rgba(135, 109, 214, .07) !important;
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: pointer;
}

.wizard-tab-image {
  width: 100%;
  max-width: none;
  height: 123px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: #ece5fa;
}

.wizard-tab span {
  font-size: clamp(.88rem, 1.6vw, 1.15rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.wizard-tab[data-state="active"] {
  border: 3px solid var(--accent);
  background: var(--glow) !important;
  box-shadow: 0 0 0 2px var(--glow) !important;
}

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

.wizard-tab[data-state="pending"] {
  border-color: var(--border);
}

.wizard-tab:hover {
  border-color: var(--accent);
}

/* Eliminar la imagen repetida inferior */
.wizard-art {
  display: none !important;
}

/* Panel de contenido a todo el ancho */
.setup-fields {
  display: block;
  margin: 0 0 12px;
}

.wizard-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: clamp(15px, 2.5vw, 28px);
  border-radius: 22px;
  background: var(--glow);
  border: 1px solid var(--border);
}

.wizard-panel[hidden] {
  display: none !important;
}

.wizard-panel > label {
  font-size: clamp(.95rem, 1.7vw, 1.12rem);
  font-weight: 750;
  color: var(--text);
}

.wizard-panel select,
.wizard-panel input {
  min-height: 52px;
  border-radius: 13px;
  font-size: 1rem;
}

.setup-names {
  gap: 12px;
}

.setup-names label {
  gap: 6px;
}

/* Navegación */
.setup-actions {
  margin-top: 20px;
  gap: 12px;
}

.setup-actions button {
  min-height: 52px;
  padding: 11px 24px;
  font-weight: 750;
  border-radius: 14px;
}

.setup-close:hover,
.setup-actions button:hover {
  filter: brightness(.96);
}

/* Tema oscuro */
:root[data-theme="dark"] .wizard-tab {
  background: rgba(162,138,255,.09) !important;
}

:root[data-theme="dark"] .wizard-tab-image {
  background: #40365d;
}

/* Pantallas medianas */
@media (max-width: 800px) {
  .wizard-tabs { gap: 8px; }
  .wizard-tab {
    min-height: 140px;
    padding: 7px 6px 10px;
    border-radius: 15px;
  }
  .wizard-tab-image {
    height: 88px;
    border-radius: 10px;
  }
}

/* Moviles */
@media (max-width: 520px) {
  .setup-dialog {
    width: 98vw;
    max-height: 96dvh;
    border-radius: 18px;
  }

  .setup-form { padding: 14px; }

  .wizard-tabs {
    gap: 5px;
    margin: 16px 0;
  }

  .wizard-tab {
    min-height: 100px;
    padding: 5px 3px 7px;
    border-radius: 12px;
  }

  .wizard-tab-image {
    height: 60px;
    border-radius: 7px;
  }

  .wizard-tab span {
    font-size: clamp(.62rem, 2.5vw, .78rem);
    overflow-wrap: anywhere;
  }

  .wizard-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .setup-actions button {
    padding: 9px 14px;
  }
}