So I read on a Spanish info site that you use “un” when followed by a buy antibiotics noun and “uno” when replacing a noun. BUT one of the examples was: “uno libro.” Libro is a noun; how is uno replacing it?

I guess I’m confused as to which is used and when.