"Loquera" and "locura" are not synonyms, although they share some similarities.
"Locura" is a Spanish word that means "madness" or "insanity." It refers to a state of mental illness or a severe disturbance in one's thoughts and behavior.
"Loquera" is a slang term commonly used in some Spanish-speaking countries, including Mexico and some parts of Central America, to refer to excessive or nonsensical talking. It can be used to describe someone who talks too much or talks incoherently, without making much sense.
While "loquera" may be used to describe behavior that appears similar to "locura" (madness or insanity), they are not interchangeable and have different connotations.