Perhaps you're right. But it was Napoleon's invasion that specifically led to independence. Sure, there are the pieces in place that could lead to independence, but without something to mould those pieces together into something that could kick out Spain, then it won't lead to independence.
Sure, there was all those things you mentioned as early as 1798, but it required the invasion of Napoleon for those things that you mentioned to actually lead to independence. All those things needed something, and that something was the invasion of Spain, the juntas, etc.
If that is avoided, I can't see how those who wanted independence could succeed that early. In a world where the Spanish mainland's government's legitimacy is beyond question, where there is no question in Mexico and in South America about who the true Spanish king is, where there is no struggle between Spanish liberals and reactionaries, etc, I can't imagine the Spanish colonies throwing out Spain like they did in OTL.
If there was a widespread revolt in Spanish America that succeeded before 1808, then I might change my mind.