/* ============================================
   Wizard del Diagnóstico Interactivo
   Extiende los tokens de styles.css — mismos colores,
   misma tipografía, mismas animaciones de base.
   ============================================ */

.wizard-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wizard-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 36px;
}
.wizard-brand img { width: 26px; height: auto; display: block; }
.wizard-brand .logo-suffix { color: var(--ink-soft); font-weight: 400; }

.wizard-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.wizard-back {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.wizard-back:hover { color: var(--ink); border-color: var(--accent); }
.wizard-back:disabled { opacity: 0.25; cursor: default; }
.wizard-back:disabled:hover { border-color: var(--line); }

.wizard-progress-wrap { flex: 1; }
.wizard-progress {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.wizard-progress-label {
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.wizard-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(24px, 8vh, 90px); }

.wizard-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.wizard-question {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.15;
  margin-bottom: 12px;
  text-wrap: balance;
}

.wizard-help { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 28px; max-width: 52ch; }

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.wizard-option {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.wizard-option:hover { border-color: var(--accent); }
.wizard-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.wizard-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wizard-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard-option.is-selected .wizard-mark { border-color: var(--accent); background: var(--accent); }
.wizard-option.is-selected .wizard-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-accent);
}
.wizard-mark.square { border-radius: 5px; }
.wizard-mark.square::after { border-radius: 2px !important; }

.wizard-input,
.wizard-textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  margin-bottom: 22px;
}
.wizard-textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.wizard-input:focus, .wizard-textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.wizard-input::placeholder, .wizard-textarea::placeholder { color: var(--ink-soft); opacity: 0.6; }

.wizard-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wizard-skip {
  background: none; border: none; color: var(--ink-soft);
  font-family: var(--sans); font-size: 0.9rem; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.wizard-skip:hover { color: var(--ink); }

/* intro / area / intent screens */
.wizard-intro h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: 16ch; margin-bottom: 16px; }
.wizard-intro .wizard-help { font-size: 1.05rem; max-width: 46ch; margin-bottom: 36px; }

/* transición descubrimiento */
.wizard-transition { text-align: center; padding: 40px 0; }
.wizard-transition h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 14px; }

/* resumen */
.wizard-summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 26px;
  margin-bottom: 28px;
}
.wizard-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.wizard-summary-row:last-child { border-bottom: none; }
.wizard-summary-label { color: var(--ink-soft); font-size: 0.86rem; white-space: nowrap; }
.wizard-summary-value { font-family: var(--serif); font-size: 1.05rem; text-align: right; }
.wizard-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wizard-tag { background: var(--accent-soft); color: var(--accent); font-size: 0.78rem; padding: 4px 11px; border-radius: 999px; }

/* pantalla final */
.wizard-done { text-align: center; padding: 60px 0; }
.wizard-done .wizard-mark-big { font-size: 2.4rem; margin-bottom: 18px; }

.wizard-resume-banner {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}
.wizard-resume-banner .actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 560px) {
  .wizard-shell { padding: 28px 18px 90px; }
  .wizard-summary-row { flex-direction: column; align-items: flex-start; }
  .wizard-summary-value { text-align: left; }
  .wizard-tags { justify-content: flex-start; }
}
