Please find the current travel restrictions due to COVID on the official website of the Spanish Ministry of Health.
https://www.sanidad.gob.es/en/profesionales/saludPublica/ccayes/alertasActual/nCov/spth.htm
Additional to that, please also consult the website of the Autonomous Government of Catalonia.