Spain moves to the right in nationwide local elections