Spain secured a straight-sets victory in the doubles on Saturday to take a winning 3-0 lead over Peru and a place in the Davis Cup quarter-finals.