Costa scored his first professional goal on 24 January 2021, netting the opener in a 2–2 home draw against CE Sabadell FC. On 11 June, after being regularly used, he was bought outright and signed a five-year contract.[6]
Costa helped the Andalusians in their promotion to La Liga as champions, and made his top tier debut on 14 August 2022, starting in a 2–1 home loss to Real Madrid. On 23 September, he further extended his link until 2029.[7]
Mallorca
On 10 August 2023, Costa agreed to a five-year contract with RCD Mallorca also in the Spanish first division.[8]