/* ==========================================
   JCFlow — Auditor de Obligatoriedad DIAN y Sanciones
   p/auditor-dian/dom/index.css
   ========================================== */

.auditor-tool-section {
    margin: 2.5rem 0 4.5rem;
}

.auditor-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 24px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .auditor-card {
    background: #151922;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4);
}

/* Stepper Progress Bar */
.auditor-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .auditor-progress-bar {
    background: rgba(255, 255, 255, 0.05);
}

.auditor-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Indicators */
.auditor-step-indicators {
    display: flex;
    justify-content: space-around;
    padding: 1.2rem 1.5rem;
    background: var(--bg-tertiary, #f8fafc);
    border-bottom: 1px solid var(--border, #e5e7eb);
    gap: 8px;
    overflow-x: auto;
}

[data-theme="dark"] .auditor-step-indicators {
    background: #11141c;
    border-color: rgba(255, 255, 255, 0.06);
}

.auditor-step-pill {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-tertiary, #94a3b8);
    padding: 6px 14px;
    border-radius: 999px;
    background: transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.auditor-step-pill.active {
    background: rgba(79, 70, 229, 0.12);
    color: var(--accent, #4f46e5);
}

[data-theme="dark"] .auditor-step-pill.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Wizard Body */
.auditor-wizard-body {
    padding: clamp(1.8rem, 4vw, 3rem);
}

.auditor-step-view {
    display: none;
    animation: auditorFadeIn 0.3s ease;
}

.auditor-step-view.active {
    display: block;
}

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

/* Question Header */
.auditor-question-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.2rem;
}

.auditor-q-num {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent, #4f46e5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.auditor-q-title {
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 10px;
    line-height: 1.3;
}

.auditor-q-desc {
    font-size: 0.96rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.55;
}

/* Options Grid */
.auditor-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 2rem;
}

.auditor-option-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.auditor-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auditor-option-content {
    background: var(--bg-primary, #ffffff);
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 18px;
    padding: 24px 20px;
    height: 100%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .auditor-option-content {
    background: #181d28;
    border-color: rgba(255, 255, 255, 0.08);
}

.auditor-option-card:hover .auditor-option-content {
    border-color: var(--accent, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.1);
}

.auditor-option-card input[type="radio"]:checked + .auditor-option-content {
    border-color: var(--accent, #4f46e5);
    background: rgba(79, 70, 229, 0.03);
    box-shadow: 0 0 0 1px var(--accent, #4f46e5);
}

[data-theme="dark"] .auditor-option-card input[type="radio"]:checked + .auditor-option-content {
    background: rgba(99, 102, 241, 0.08);
}

.auditor-option-icon {
    color: var(--accent, #4f46e5);
    margin-bottom: 14px;
}

.auditor-option-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 8px;
}

.auditor-option-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.auditor-option-badge {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent, #4f46e5);
}

/* Subquestion Box */
.auditor-subquestion-box {
    background: var(--bg-tertiary, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 2rem;
}

[data-theme="dark"] .auditor-subquestion-box {
    background: #181d28;
    border-color: rgba(255, 255, 255, 0.08);
}

.auditor-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.auditor-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent, #4f46e5);
    cursor: pointer;
}

/* Checklist Cards (Paso 3) */
.auditor-checklist-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 2.2rem;
}

.auditor-check-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .auditor-check-card {
    background: #181d28;
    border-color: rgba(255, 255, 255, 0.08);
}

.auditor-check-card:hover {
    border-color: var(--accent, #4f46e5);
    background: rgba(79, 70, 229, 0.02);
}

.auditor-check-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--accent, #4f46e5);
    cursor: pointer;
    flex-shrink: 0;
}

.auditor-check-body {
    flex-grow: 1;
}

.auditor-check-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 6px;
}

.auditor-check-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin-bottom: 10px;
}

.auditor-impact-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

/* Footer Navigation */
.auditor-step-footer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    border-top: 1px solid var(--border, #e5e7eb);
    padding-top: 1.5rem;
}

/* Paso 4: Resultados / Dictamen */
.auditor-result-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.auditor-result-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.auditor-result-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--text-primary, #0f172a);
    margin-bottom: 10px;
}

.auditor-result-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 1.2rem;
}

.auditor-status-pill {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Documents Grid */
.auditor-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 2.5rem;
}

.auditor-doc-card {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .auditor-doc-card {
    background: #181d28;
    border-color: rgba(255, 255, 255, 0.08);
}

.auditor-doc-card.mandatory {
    border-left: 5px solid #ef4444;
}

.auditor-doc-card.optional {
    border-left: 5px solid #10b981;
}

.auditor-doc-status {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.auditor-doc-status.mandatory {
    color: #ef4444;
}

.auditor-doc-status.optional {
    color: #10b981;
}

.auditor-doc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 8px;
}

.auditor-doc-desc {
    font-size: 0.86rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.auditor-doc-legal {
    font-size: 0.78rem;
    color: var(--text-tertiary, #94a3b8);
    font-style: italic;
    border-top: 1px dashed var(--border, #e2e8f0);
    padding-top: 10px;
}

/* Sanciones Box */
.auditor-sanciones-box {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 2.5rem;
}

[data-theme="dark"] .auditor-sanciones-box {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}

.auditor-sanciones-badge {
    font-size: 0.76rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 6px;
}

.auditor-sanciones-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 16px;
}

.auditor-sanciones-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auditor-sancion-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary, #475569);
}

[data-theme="dark"] .auditor-sancion-item {
    color: #cbd5e1;
}

.auditor-sancion-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Lead Capture Card */
.auditor-lead-capture-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 2px solid var(--accent, #4f46e5);
    border-radius: 22px;
    padding: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: center;
}

[data-theme="dark"] .auditor-lead-capture-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: #6366f1;
}

.auditor-lead-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 8px;
}

.auditor-lead-desc {
    font-size: 0.95rem;
    color: var(--text-secondary, #64748b);
    max-width: 650px;
    margin: 0 auto 1.8rem;
    line-height: 1.55;
}

.auditor-lead-form {
    max-width: 700px;
    margin: 0 auto;
}

.auditor-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.auditor-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border, #cbd5e1);
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

[data-theme="dark"] .auditor-input {
    background: #11141c;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.auditor-input:focus {
    border-color: var(--accent, #4f46e5);
}

.auditor-lead-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.auditor-lead-privacy {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-tertiary, #94a3b8);
}

@media (max-width: 640px) {
    .auditor-form-row {
        grid-template-columns: 1fr;
    }
    .auditor-step-indicators {
        justify-content: flex-start;
    }
    .auditor-step-footer {
        flex-direction: column;
    }
    .auditor-step-footer .btn {
        width: 100%;
    }
}
