Hernández made his first-team debut on 23 January 2013, coming on as a second-half substitute for Víctor Rodríguez in a 4–0 away loss against Sevilla FC in the quarter-finals of the Copa del Rey. He first appeared in La Liga on 10 February, starting and being sent off in a 1–2 home defeat to Real Sociedad.