Here's the broad structure of Spanish infantry battalion in 1898.
"Plana Mayor: 1 teniente coronel, 2 comandantes, 1 capitán ayudante, 1 capitán cajero,1 capitán de almacén, 1 teniente abanderado, 2 médicos, 1 capellán, 1 cabo de cornetasy 1 armero.
6 Compañías: cada una con 1 capitán, 4 subalternos, 5 sargentos, 10 cabos, 4 cornetas,4 soldados de 1ª y 160 soldados de 2ª; en total 1140 hombres." (De Miguel, 2011).
So headquarters and 6 companies, each company with 5 officers, fifteen NCOs, four buglers, four senior ORs (Private First Class) and 160 ORs .
While I doubt there was a break down into squads for anything other than administrative purposes, I'd infer from the break down of officers and NCOs that there would an internal division of the company into four parts. Now do bear in mind that most Western armies of the period rarely thought in terms of tactical units below company or perhaps a 'half-company' at best. That said if you wanted to arrange them into four platoons it's not an unreasonable assumption.
I would further surmise, on the basis of the number of corporals present, that each platoon could further subdivide into 2 groups or sections of around 20 men each. I don't know enough about the Spanish army of the period to conclusively say so but I would suspect that any section/squad breakdown would be administrative in view of what other nations were doing. The Spanish Army was right into the late 20th C very conservative in its approach to tactical doctrine.