Since this March, it only takes four months to legally change your gender in Spain. Parliament has passed a LGTBQ protection law that keeps Spain on track to be one of the most progressive countries in LGTBQ issues, at least on paper.
In the past, a trans person needed a medical diagnosis of gender dysphoria and two years of hormone therapy. Now, all you have to do is inform the civil registry that you want to change your gender, come back three months later and wait another month. This avoids the “pathologisation” of trans people.