Are Hispanic and Mexican different types of races?

I know Latino/a, Mexican, and Hispanic are all terms that are thrown around a lot so I want to make sure I am using them correctly. Latina/o means people from Latin America. So someone from Ecuador would be Latino/a, right?
Mexican means they're from Mexico. But does that mean you would also describe second-generation or even 4th generation kids of Mexican immigrants who now live in the US as Mexican or latino/a?
Hispanic is a term that is a bit confusing for me. It means that you speak Spanish. But who does it describe in terms of race or is it even a description of race or only what language someone speaks? I've heard people say it is a subset of white but I'm not really sure what that might entail. Does that have to do with Spanish people from Spain? Also, Spanish only means you're from Spain, so someone from Latin America could not be described as Spanish?
Are Hispanic and Mexican different types of races?
Post Opinion