On 11 August 2013 Barrio moved to CD Leganés, also in the third division.[4] He appeared in 31 matches during the season, as the Madrid side were promoted to Segunda División after a ten-year absence.
On 11 September 2014 Barrio made his professional debut, starting in a 1–1 home draw against CD Numancia, for the campaign's Copa del Rey.[5] He made his Segunda División debut on 8 February of the following year, playing the full 90 minutes in a 2–0 away win against RCD Mallorca.[6]
In 2015, Barrio joined UD Melilla in the third division, being an undisputed first-choice during his spell. On 10 July 2019, he signed a one-year contract with CD Numancia in the second level.[7]
On 28 August 2020, after suffering relegation, Barrio agreed to a two-year contract with Málaga CF.[8] After two seasons acting mainly as a backup, he signed a one-year deal with fellow second level side Burgos CF on 30 June 2022.[9]