    .empresa-selector {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 15px;
        padding: 2rem;
        margin-bottom: 2rem;
        color: white;
    }
    
    .tipologia-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
        overflow: hidden;
        border: 1px solid #e3e6f0;
    }
    
    .tipologia-header {
        color: white;
        font-weight: 600;
        padding: 20px;
        position: relative;
    }
    
    .tipologia-economico {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    }
    
    .tipologia-clientes {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    }
    
    .tipologia-procesos {
        background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    }
    
    .tipologia-talento {
        background: linear-gradient(135deg, #fd7e14 0%, #e83e8c 100%);
    }
    
    .tipologia-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .kpi-row {
        background-color: #fff;
        border-bottom: 1px solid #e9ecef;
        transition: all 0.2s ease;
        border-left: 4px solid transparent;
    }
    
    .kpi-row:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .economico .kpi-row { border-left-color: #dc3545; }
    .clientes .kpi-row { border-left-color: #28a745; }
    .procesos .kpi-row { border-left-color: #007bff; }
    .talento .kpi-row { border-left-color: #fd7e14; }
    
    .kpi-content {
        padding: 20px 15px;
        min-height: 80px;
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .table-header {
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
        color: #495057;
    }
    
    .kpi-count-badge {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
    }
    
    .edit-kpi-btn {
        opacity: 0;
        transition: opacity 0.2s ease;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    .kpi-item:hover .edit-kpi-btn {
        opacity: 1;
    }
    
    .kpi-item {
        position: relative;
        margin-bottom: 0;
    }
    
    .tipologia-icon {
        font-size: 1.3rem;
        margin-right: 0.75rem;
    }
    
    .empty-state {
        text-align: center;
        padding: 3rem;
        color: #6c757d;
    }
    
    .empty-state i {
        font-size: 4rem;
        margin-bottom: 1rem;
        color: #dee2e6;
    }
    
    .btn-empresa {
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .btn-empresa:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        transform: translateY(-2px);
    }
    
    .empresa-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .add-kpi-section {
        background: #f8f9fa;
        border-top: 2px dashed #dee2e6;
        padding: 1.5rem;
        text-align: center;
    }
    
    .no-kpis-placeholder {
        background: #f8f9fa;
        color: #6c757d;
        padding: 3rem;
        text-align: center;
        font-style: italic;
        border: 2px dashed #dee2e6;
        margin: 0;
    }
    
    .tipologia-description {
        font-size: 0.9rem;
        opacity: 0.9;
        margin-top: 0.5rem;
    }
    
    @media (max-width: 768px) {
        .kpi-content {
            padding: 15px 10px;
            min-height: auto;
            font-size: 0.8rem;
        }
        
        .empresa-selector {
            padding: 1.5rem;
        }
        
        .tipologia-header {
            padding: 15px;
            font-size: 0.9rem;
        }
        
        .tipologia-icon {
            font-size: 1.1rem;
        }
    }

/* Estilos para el modal de creación de KPI */
#modalCrearKPI .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

#modalCrearKPI .modal-header .btn-close {
    filter: invert(1);
}

#modalCrearKPI .modal-body {
    background: #f8f9fa;
    padding: 2rem;
}

#modalCrearKPI .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

#modalCrearKPI .form-control:focus,
#modalCrearKPI .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#modalCrearKPI .form-text.text-warning {
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem;
    border-radius: 0.25rem;
    border-left: 3px solid #ffc107;
    margin-top: 0.5rem;
}

/* Alertas flotantes */
.alert.position-fixed {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mejoras en la visualización de KPIs */
.kpi-item .text-muted {
    font-size: 0.75rem;
}

.kpi-item .text-muted i {
    color: #6c757d;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    #modalCrearKPI .modal-dialog {
        margin: 0.5rem;
    }
    
    #modalCrearKPI .modal-body {
        padding: 1rem;
    }
}

/* Estilos para el sistema de búsqueda de procesos */
.proceso-search-container {
    position: relative;
}

.proceso-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 2px;
    /* Quitamos display: none para que se muestre por defecto */
}

/* Clase para ocultar cuando no hay resultados o no se está buscando */
.proceso-dropdown.hidden {
    display: none;
}

.proceso-results {
    max-height: 200px;
    overflow-y: auto;
}

.proceso-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.proceso-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

.proceso-item:last-child {
    border-bottom: none;
}

.proceso-item h6 {
    margin-bottom: 0.25rem;
    color: #495057;
    font-size: 0.9rem;
}

.proceso-item .text-muted {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.proceso-item p {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Proceso seleccionado */
.selected-proceso-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #2196f3;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.selected-proceso-card h6 {
    color: #1976d2;
    margin-bottom: 0.25rem;
}

.selected-proceso-card .text-muted {
    color: #757575 !important;
    font-size: 0.75rem;
}

.selected-proceso-card p {
    color: #424242;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Loading state */
.proceso-loading {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

.proceso-loading i {
    color: #667eea;
}

/* No results */
.proceso-no-results {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Input de búsqueda con focus */
#buscarProceso:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Scrollbar personalizado para el dropdown */
.proceso-dropdown::-webkit-scrollbar {
    width: 6px;
}

.proceso-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.proceso-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.proceso-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    .proceso-dropdown {
        max-height: 200px;
    }
    
    .proceso-item {
        padding: 0.5rem 0.75rem;
    }
    
    .selected-proceso-card {
        padding: 0.75rem;
    }
}