Do any of these apply to you?
If more than one applies, pick the shortest wait: one year for marriage, birth in Spain or a Spanish parent or grandparent, two for the others. Nationality of origin means the one you held at birth. Brazil counts; Puerto Ricans are generally treated as included, though that is not settled.