Carlos Alcaraz kept Spain alive in their Davis Cup quarter-final tie.