Federated Learning (FL) enables collaborative training of distributed machine learning models, with each participant (client) using their own private data. In Cross-Device FL, clients are typically heterogeneous mobile or edge devices, often unreliable and with small and highly imbalanced local datasets. Selecting which clients participate is therefore critical, as poor choices can increase execution time, energy consumption, and reduce model accuracy. In this work, we propose MetaCS-FL, a client selection framework that supports different metaheuristics, initial solution strategies, and user-defined triggers for new selections. It leverages client profiling along with historical and current performance data to make efficient choices for both client participation and local data allocation. We evaluated MetaCS-FL in an extensive set of experiments, including comparisons with state-of-the-art algorithms. Using FedAvg as a baseline, MetaCS-FL reduced total time by up to 81.32% and energy consumption by 72.28% on CIFAR-10, and by 79.95% and 69.98%, respectively, on Fashion-MNIST, while achieving the target testing accuracy.