/* ============================================================
   Proceso Cards (Tab de Procesos de Contratación)
   ============================================================ */
.proceso-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(31, 38, 135, 0.08);
    border: 1px solid rgba(31, 38, 135, 0.06);
    transition: box-shadow 0.22s, transform 0.22s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.proceso-card:hover {
    box-shadow: 0 10px 32px rgba(31, 38, 135, 0.16);
    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-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    margin: 0.5rem 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: rgba(218, 41, 28, 0.05); }

.adjunto-icon {
    width: 36px;
    height: 36px;
    background: rgba(218, 41, 28, 0.12);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #DA291C;
    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: #212529;
    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: #DA291C;
    color: #fff;
    transform: scale(1.12);
}

/* ============================================================
   Filtros
   ============================================================ */
.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: #212529;
    color: #212529;
    background: rgba(33, 37, 41, 0.04);
}
.btn-filter.active {
    background: #212529;
    border-color: #212529;
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.2);
}

/* ============================================================
   Paginación
   ============================================================ */
.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: #DA291C !important;
    border-color: #DA291C !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(218, 41, 28, 0.3);
    transform: translateY(-2px);
}
.btn-nav-outline:active {
    background-color: #b8221a !important;
    border-color: #b8221a !important;
    color: #ffffff !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(218, 41, 28, 0.2);
}
.btn-nav-outline:disabled {
    background-color: transparent !important;
    border-color: #e2e8f0 !important;
    color: #cbd5e1 !important;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    opacity: 0.7;
}
