This paper offers an empirical study on the use of (non-)sexist language in Spanish political discourse. By analyzing both parliamentary speech and Twitter/X posts, the study seeks to determine the extent to which politicians avoid the generic masculine and adopt alternative strategies. The study also evaluates the influence of extralinguistic factors such as gender, age, political ideology, and discourse genre. In parliamentary speech, a marked preference for the generic masculine is observed, predominantly used by right-wing parties and men. In contrast, left-wing parties as well as women more frequently employ non-sexist alternatives, such as epicenes, collectives, and the generic feminine. The results of the Twitter/X data also reveal that right-wing parties, such as VOX, tend to maintain traditional linguistic practices, while left-wing parties, like Podemos, implement non-sexist language strategies more often. Additionally, social media platforms such as Twitter, due to their direct voter engagement, prompt more strategic language use, aligning with the political identity and values of the parties. The adoption of (non-)sexist language thus seems to serve as an ideological tool for political self-representation.