Hi Paulina. I think this may depend on your location. Try contacting your local Xiaomi service centers. But in general, unlocking bootloader shouldn't void the warranty as long as you're still using the stock firmware.
Are you on the best cell phone plan? Use our free comparison calculator to find out.