The present study examines the impact of social media on the mental health of pre-secondary and secondary education students in educational centers in the Province of Veraguas, using a cross-sectional quantitative approach. A frequency Likert-type questionnaire was used, designed to measure dimensions related to anxiety, self-esteem, time spent on social media, and activities carried out on digital platforms. The sample was selected using non-probabilistic snowball sampling, contacting 100 students from which 59 valid responses were obtained from 16 diverse educational centers. The reliability of the instrument was validated using Cronbach's Alpha coefficient, obtaining a value of 0.926, indicating high internal consistency and methodological validity of the collected data. Prior to the correlational analysis, normality tests were conducted using Kolmogorov-Smirnov and Shapiro-Wilk to verify the statistical assumptions. Subsequently, an analysis of variance (ANOVA) was conducted in Excel to compare the means of the social media and mental health variables and identify significant differences between groups according to exposure levels. The results show a statistically significant relationship between social media use and mental health in students, being particularly robust when analyzing differences between exposure levels. Although sociodemographic factors such as sex and age do not significantly predict problematic social media use, other individual and contextual psychosocial factors importantly modulate how digital platforms impact emotional and psychological well-being in this population. These findings underscore the need to implement educational and mental health interventions specifically designed for adolescents in school contexts, focused on the development of digital competencies and the promotion of conscious technology use.