/* ============================================================
   Form inputs — same rules as pqrs/css/registro.css
   ============================================================ */
body { font-family: 'Plus Jakarta Sans', sans-serif; }

.form-control,
.form-select {
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.input-group {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-group-text {
    border-radius: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #c7d421 !important;
    box-shadow: 0 0 0 0.25rem rgba(199, 212, 33, 0.25) !important;
    outline: none !important;
}

.form-select {
    padding-left: 1rem;
    padding-right: 2.5rem;
}

select option {
    padding: 10px 15px;
    font-weight: 500;
}

/* ============================================================
   Navigation Buttons (stepper)
   ============================================================ */
.btn-nav-primary {
    background-color: #c7d421 !important;
    border: 2px solid #c7d421 !important;
    color: #222f5f !important;
    border-radius: 999px;
    padding: 0.55rem 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.18s;
    box-shadow: 0 4px 14px rgba(199, 212, 33, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-nav-primary:hover {
    background-color: #dbe745 !important;
    border-color: #dbe745 !important;
    color: #222f5f !important;
    box-shadow: 0 8px 24px rgba(199, 212, 33, 0.55);
    transform: translateY(-2px) scale(1.03);
}
.btn-nav-primary:active {
    background-color: #b8c41d !important;
    border-color: #b8c41d !important;
    color: #222f5f !important;
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 8px rgba(199, 212, 33, 0.3);
}

.btn-nav-outline {
    background-color: transparent !important;
    border: 2px solid #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-nav-outline:hover {
    background-color: #222f5f !important;
    border-color: #222f5f !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(34, 47, 95, 0.3);
    transform: translateY(-2px);
}
.btn-nav-outline:active {
    background-color: #1a2550 !important;
    border-color: #1a2550 !important;
    color: #ffffff !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 47, 95, 0.2);
}

/* Bootstrap color overrides — matches pqrs pages */
.btn-primary {
    background-color: #c7d421 !important;
    border-color: #c7d421 !important;
    color: #222f5f !important;
    font-weight: 700;
}
.btn-primary:hover {
    background-color: #dbe745 !important;
    border-color: #dbe745 !important;
    color: #222f5f !important;
}
.bg-primary  { background-color: #c7d421 !important; }
.bg-secondary { background-color: #222f5f !important; }
.text-secondary {
    --tw-text-opacity: 1;
    color: rgb(34 47 95 / var(--tw-text-opacity, 1)) !important;
}

/* ============================================================
   Tab Pills
   ============================================================ */
.tab-pill {
    border-radius: 999px !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.5rem;
    color: #222f5f;
    transition: all 0.2s;
}
.tab-pill.active {
    background-color: #222f5f !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(34, 47, 95, 0.25);
}
.tab-pill:not(.active):hover {
    background-color: rgba(34, 47, 95, 0.07);
    color: #222f5f;
}


.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #adb5bd;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.step.active .step-circle {
    background: #222f5f;
    border-color: #222f5f;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(34, 47, 95, 0.12);
}

.step.completed .step-circle {
    background: #c7d421;
    border-color: #c7d421;
    color: #222f5f;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    color: #adb5bd;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.step.active .step-label  { color: #222f5f; }
.step.completed .step-label { color: #8a9414; }

.step-line {
    flex: 1;
    height: 3px;
    background: #dee2e6;
    min-width: 60px;
    max-width: 140px;
    margin-bottom: 28px;
    transition: background 0.3s;
    border-radius: 2px;
}
.step-line.completed { background: #c7d421; }

@media (max-width: 576px) {
    .step-line  { min-width: 24px; }
    .step-label { font-size: 0.58rem; }
    .step-circle { width: 38px; height: 38px; font-size: 0.85rem; }
}


.paso-placeholder {
    background: linear-gradient(135deg, rgba(199, 212, 33, 0.08), rgba(34, 47, 95, 0.05));
    border: 2px dashed rgba(199, 212, 33, 0.5);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
}
.paso-placeholder-icon {
    font-size: 2.8rem;
    color: #c7d421;
    display: block;
    margin-bottom: 0.75rem;
}
.paso-placeholder-title {
    font-weight: 700;
    color: #222f5f;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.paso-placeholder-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}


.proceso-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(34, 47, 95, 0.07);
    border: 1px solid rgba(34, 47, 95, 0.07);
    transition: box-shadow 0.22s, transform 0.22s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.proceso-card:hover {
    box-shadow: 0 10px 36px rgba(34, 47, 95, 0.13);
    transform: translateY(-3px);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    user-select: none;
}
.status-badge.abierto  { background: #d1fae5; color: #065f46; }
.status-badge.cerrado  { background: #f1f5f9; color: #475569; }

.proceso-tipo {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.6rem;
}

.proceso-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222f5f;
    margin: 0.4rem 0 0.5rem;
    line-height: 1.4;
}

.proceso-descripcion {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1;
}

.adjuntos-header {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 1.1rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.adjunto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 6px;
    transition: background 0.15s;
}
.adjunto-item:hover { background: #e9f0fd; }

.adjunto-icon {
    width: 36px;
    height: 36px;
    background: #dbeafe;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
    font-size: 1.05rem;
}

.adjunto-nombre {
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-descargar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222f5f;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
}
.btn-descargar:hover {
    background: #c7d421;
    color: #222f5f;
    transform: scale(1.12);
}


/* ============================================================
   Document Upload Fields (Step 3)
   ============================================================ */
.doc-upload-group {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.doc-upload-group .doc-filename {
    background: #fff;
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    cursor: default;
    color: #334155;
}
.doc-upload-group .doc-filename:focus {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

.btn-doc-select {
    background-color: #222f5f;
    color: #ffffff;
    border: 1px solid #dee2e6;
    border-left: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.3rem;
    border-radius: 0 0.75rem 0.75rem 0;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn-doc-select:hover {
    background-color: #c7d421;
    color: #222f5f;
    box-shadow: 0 4px 12px rgba(199, 212, 33, 0.35);
}
.btn-doc-select:active {
    background-color: #b8c41d;
    color: #222f5f;
}

.doc-hint {
    display: block;
    font-size: 0.72rem;
    color: #3b82f6;
    margin-top: 0.35rem;
    line-height: 1.5;
}

.doc-politica-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c7d421;
    text-decoration: none;
    transition: color 0.2s;
}
.doc-politica-link:hover {
    color: #8a9414;
    text-decoration: underline;
}

.btn-filter {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 1.2rem;
    border: 2px solid #dee2e6;
    background: #fff;
    color: #475569;
    transition: all 0.15s;
    line-height: 1.4;
}
.btn-filter:hover {
    border-color: #222f5f;
    color: #222f5f;
    background: rgba(34, 47, 95, 0.04);
}
.btn-filter.active {
    background: #222f5f;
    border-color: #222f5f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 47, 95, 0.2);
}
