Cuba has struggled since 2020 with an economic and energy crisis. Its gross domestic product has shrunk, and its 10 million residents have endured blackouts, food shortages and inflation.