The Mexican singer-songwriter worked through grief and heartbreak to write and self-produce her new LP