/* ── CONTENEDOR PRINCIPAL ────────────────────────────────────── */
#wizard-container {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#wizard-loading {
    display: none;
    text-align: center;
    padding: 80px 24px;
}

#wizard-loading .loading-icon {
    font-size: 48px;
    color: #185FA5;
    display: block;
    margin-bottom: 16px;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#wizard-loading .loading-titulo {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

#wizard-loading .loading-sub {
    font-size: 15px;
    color: #666;
}

/* ── ENCABEZADO DEL WIZARD ───────────────────────────────────── */
.wizard-header {
    margin-bottom: 28px;
}

.wizard-titulo {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.wizard-subtitulo {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

/* ── BARRA DE PROGRESO ───────────────────────────────────────── */
.wizard-progress-wrap {
    margin-bottom: 32px;
}

.wizard-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.wizard-progress-bg {
    height: 4px;
    background: #e8e8e8;
    border-radius: 99px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 4px;
    background: #185FA5;
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ── PASOS ───────────────────────────────────────────────────── */
.wizard-step {
    display: none;
}

.wizard-step-label {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.wizard-question {
    font-size: 19px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.wizard-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
}

/* ── OPCIONES ────────────────────────────────────────────────── */
.wizard-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.wizard-options.single {
    grid-template-columns: 1fr;
}

.wizard-option {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-option:hover {
    border-color: #185FA5;
    background: #f0f7ff;
}

.wizard-option.selected {
    border: 2px solid #185FA5;
    background: #e6f1fb;
}

.wizard-option i {
    font-size: 24px;
    color: #185FA5;
    flex-shrink: 0;
}

.opt-text {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.4;
}

.opt-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ── RESUMEN PASO 5 ──────────────────────────────────────────── */
.wizard-resumen {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 24px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-key {
    color: #666;
}

.resumen-val {
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

/* ── ERRORES ─────────────────────────────────────────────────── */
.wizard-error {
    font-size: 13px;
    color: #a32d2d;
    background: #fcebeb;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: none;
}

#wizard-error-global {
    font-size: 14px;
    color: #a32d2d;
    background: #fcebeb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: none;
}

/* ── NAVEGACIÓN ──────────────────────────────────────────────── */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-wizard {
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #333;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-wizard:hover {
    background: #f5f5f5;
}

.btn-wizard-primary {
    background: #185FA5;
    color: #fff;
    border-color: #185FA5;
}

.btn-wizard-primary:hover {
    background: #0C447C;
    border-color: #0C447C;
}

.btn-wizard-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wizard-options {
        grid-template-columns: 1fr;
    }
    .wizard-titulo {
        font-size: 20px;
    }
}