Puerto Rico is not a U.S. state—it's an unincorporated territory. Its residents are U.S. citizens, but it has no voting representation in Congress and no Electoral College votes.
New Mexico is the only U.S. state where Spanish has official recognition (alongside English) in the state constitution (1912). ~47% of residents speak Spanish at home (Census). Laws, ballots, and government services are bilingual in practice.
California, Texas, Florida, Arizona, Nevada, Colorado, New York—millions of Spanish speakers, but no state-level official status.
So: State with official Spanish = New Mexico. Territory with Spanish dominance = Puerto Rico. Not the same thing.