Brazil detains Spanish national over racism allegation