Eurail Ticket

Can you buy train tickets for Spain online? I can’t use a Eurail pass, I want an unlimited ticket if possible.
Any website for traveling in Santiago de Comp. or Vigo would be greatly appreciated.
Here’s a website that might help. http://horarios.renfe.es/hir/ingles.html
It has all kinds of info on the train system in Spain.