Lease length and flexibility
Short leases (6 months) give flexibility but landlords might prefer 1 year. In Spain long-term contracts (3–5 years by law in some cases) can have break clauses. Negotiate what you need. If you're on a visa that might be renewed, align the lease with that if you can.