Old comment, but Duolingo is an American company based in Pennsylvania. Naturally, it teaches American English, but generalized so you will be understood in any English speaking country.
The same is for the Spanish course. It has the flag of Spain, but it leans towards LA Spanish words. You'll still be understood in a Spanish speaking country mostly. It's just a flag of a country or group that speaks the language to represent it.