/* ============================================================
   lice.cl · wizard.css
   Sección "Artículo Quinto" · wizard ciudadano (5 pasos)
   ============================================================ */

.wizard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) {
  .wizard { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.wizard__steps { display: flex; flex-direction: column; }
.wizard__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.wizard__step:last-child { border-bottom: 1px solid var(--rule); }
.wizard__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  font-size: clamp(0.8125rem, 2.4vw, 0.875rem);
  font-weight: 600;
  color: var(--brand);
  font-family: var(--font-mono);
  background: var(--bg-2);
  flex-shrink: 0;
}
.wizard__step-body { min-width: 0; }
.wizard__step h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: 6px;
}
.wizard__step p {
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.wizard__panel {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 88px;
}
.wizard__panel-head {
  background: var(--bg-3);
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(0.6875rem, 2.2vw, 0.75rem);
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.wizard__panel-brand { color: var(--ink); }
.wizard__panel-body { padding: 18px; }
@media (min-width: 480px) { .wizard__panel-body { padding: 22px; } }
@media (min-width: 768px) { .wizard__panel-body { padding: 28px; } }
.wizard__panel-h {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 18px;
}

.wizard__option {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out);
  min-height: 64px;
}
.wizard__option:hover { border-color: var(--brand); }
.wizard__option.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-2));
}
.wizard__option-ico {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
}
.wizard__option-ico--blue  { background: color-mix(in srgb, var(--brand) 12%, var(--bg-2)); color: var(--brand-hi); }
.wizard__option-ico--green { background: color-mix(in srgb, #10B981 12%, var(--bg-2)); color: #047857; }
.wizard__option-ico--amber { background: color-mix(in srgb, #F59E0B 12%, var(--bg-2)); color: #B45309; }
[data-theme="dark"] .wizard__option-ico--green { color: #34D399; }
[data-theme="dark"] .wizard__option-ico--amber { color: #FBBF24; }
.wizard__option strong { display: block; font-size: clamp(0.875rem, 2.4vw, 0.9375rem); color: var(--ink); font-weight: 600; }
.wizard__option small  { display: block; font-size: clamp(0.75rem, 2.2vw, 0.8125rem); color: var(--ink-3); margin-top: 2px; }
.wizard__option-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
  flex-shrink: 0;
}
.wizard__option-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.wizard__option-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  background: var(--bg-2);
  flex-shrink: 0;
}

.wizard__nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.wizard__nav-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: clamp(0.8125rem, 2.4vw, 0.875rem);
  font-weight: 500;
  border: 1px solid transparent;
  min-height: 44px;
  white-space: nowrap;
}
.wizard__nav-btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule-strong);
}
.wizard__nav-btn--ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.wizard__nav-btn--solid {
  background: var(--brand);
  color: #fff;
}
