/* ===== Stepper ===== */
.stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
}

.stepper-step {
  flex: 1;
  height: 4px;
  background: var(--step-pending);
  border-radius: 2px;
  transition: background 0.3s;
}

.stepper-step.active {
  background: var(--step-active);
}

.stepper-step.done {
  background: var(--step-done);
}

/* ===== Wizard Steps ===== */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-step h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== Tipo Grid (Step 1) ===== */
.tipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.tipo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-surface);
}

.tipo-card:hover {
  border-color: var(--color-primary-light);
  background: var(--bg-elevated);
}

.tipo-card.selected {
  border-color: var(--color-primary-light);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 1px var(--color-primary-light);
}

.tipo-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.tipo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tipo-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ===== País Selector ===== */
.pais-selector {
  margin-top: 8px;
}

.pais-selector label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pais-selector select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: 14px;
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.pais-selector select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== Fields (Step 2) ===== */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.field .optional {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field input::placeholder {
  color: var(--text-tertiary);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.4;
}

.field-error {
  color: var(--color-error);
  font-size: 12px;
  margin-top: 4px;
}

/* ===== Checks Grid (Step 3) ===== */
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
  background: var(--bg-surface);
}

.check-item:hover {
  background: var(--bg-elevated);
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary-light);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== Docs Grid (Step 5) ===== */
.docs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg-surface);
}

.doc-check:hover {
  background: var(--bg-elevated);
}

.doc-check.recommended {
  border-color: var(--color-primary-light);
  background: rgba(37, 99, 235, 0.03);
}

.doc-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary-light);
  cursor: pointer;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
}

.doc-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.doc-info span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.doc-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary-light);
  white-space: nowrap;
}

/* ===== Wizard Navigation ===== */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.wizard-nav .btn {
  min-width: 120px;
}

.step-counter {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .checks-grid {
    grid-template-columns: 1fr;
  }

  .tipo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
