Does Spain allow dual citizenship?

Google says yes but chatgpt says no, what’s the actual answer?