Born in Melipilla, Huerta graduated from Universidad de Chile's youth setup, and was promoted to the main squad in 2012 by manager Jorge Sampaoli.
He made his professional debut on 6 May 2012, starting in a 0–2 away loss against Universidad de Concepción for the Torneo Apertura championship.
[2] Huerta only acted as a fourth-choice during his spell at La U, behind Roberto Cereceda, Albert Acevedo and José Rojas.
On 28 August 2014 he moved abroad for the first time in his career, signing a five-year deal with Granada CF and being assigned to the reserves in Segunda División B.
In February 2022 he joined Mexican Liga MX side Deportivo Toluca from Universidad Catolica being a starter & leader of the defense was also called up to the Chile National Team he was later presented with jersey #4 for the 2022 campaign.