Oh, dear! I was not paying attention, it seems. Here is the Spanish Law, now I double checked, translated with DeepL again, cursory checked:
With article 24, for equality in cultural activities and sports:
Artículo 24. Actividades culturales y deportivas.
En el desarrollo de cualquier actividad cultural o deportiva se respetarán el derecho a la igualdad de trato y el respeto a la dignidad de la persona, evitando toda discriminación por alguna de las causas previstas en la ley.
Las administraciones públicas darán apoyo a la creación y la difusión de contenidos y estudios que contribuyan a la toma de conciencia en el ámbito cultural sobre la discriminación en todas las formas y expresiones que recoge la presente ley.
Article 24. Cultural and Sports Activities.
In the development of any cultural or sports activity, the right to equal treatment and respect for the dignity of the person shall be respected, avoiding any discrimination on any of the grounds provided by law.
The public administrations shall support the creation and dissemination of contents and studies that contribute to raising awareness in the cultural sphere of discrimination in all the forms and expressions covered by this law.
Artículo 31. Actuación administrativa contra la discriminación.
- Cuando una autoridad pública, con ocasión del ejercicio de sus competencias, tenga conocimiento de un supuesto de discriminación de los previstos en esta ley, deberá, si es competente, incoar el correspondiente procedimiento administrativo, en el que se podrán acordar las medidas necesarias para investigar las circunstancias del caso y adoptar las medidas oportunas y proporcionadas para su eliminación o, en caso de no serlo, comunicar estos hechos de forma inmediata a la Administración competente, de acuerdo con lo establecido en las leyes administrativas.
Article 31. Administrative action against discrimination.
- When a public authority, on the occasion of the
the exercise of its competences, has knowledge of a case of discrimination of those foreseen in this law, it shall, if it is competent, initiate the corresponding administrative proceeding, in which the necessary measures may be taken to investigate the circumstances of the case and to adopt the measures for its elimination or, if they are not, to communicate these facts immediately to the competent Administration, in accordance with the provisions of the administrative laws. (bolding mine: this is why the ruling of the TAD (Tribunal Administrativo del Deporte) stating that the offense commited by Mr. Rubiales was “serious” but not “very serious” is so relevant)
Artículo 32. Del Ministerio Fiscal.
Las secciones especializadas en delitos de odio y discriminación de las fiscalías provinciales promoverán y coordinarán, en su ámbito respectivo, las actuaciones penales dirigidas a la investigación y persecución de comportamientos discriminatorios.
Las administraciones públicas podrán dar traslado al Ministerio Fiscal de cualquier hecho o actuación de que tengan conocimiento en el que se haya acreditado trato discriminatorio y del que, en su caso, pudiera derivarse responsabilidad penal.
Los miembros del Ministerio Fiscal recibirán de manera obligatoria formación especializada en relación con los colectivos amparados en la presente ley, de acuerdo con las directrices fijadas por la Fiscalía General del Estado.
Article 32. The Public Prosecutor’s Office.
The sections specialized in hate crimes and discrimination of the provincial prosecutor’s offices will promote and coordinate, in their respective areas, the criminal proceedings aimed at the investigation and prosecution of discriminatory behavior.
The public administrations may refer to the Public Prosecutor’s Office any fact or action of which they are aware in which discriminatory treatment has been accredited and from which, if applicable, criminal liability may arise.
The members of the Public Prosecutor’s Office shall receive mandatory specialized training in relation to the groups covered by this law, in accordance with the guidelines set by the Attorney General’s Office.
But then there is Art. 48 Sanctions, where only fines are mentioned, no prison sentences are mentioned, so I guess there is another law which applies in this case.