You can get beds in Havana legally for well under 10CUC just look for Casa d' Mochilero (last time I had somebody sleeping there was 5CUC/person) or similar ones like these:
https://www.absolutviajes.com/tres-albergues-juveniles-para-mochileros-en-la-habana/
And yes, some are very well placed. To save money in Havana start reading on what are the almendrones and how they work, it;s a kind of shared taxi. City buses are much more efficient nowadays than what most guidebooks make them look like, particularly if you are staying anywhere near Coppelia.
Food can be very cheap in Cuba, you can easily get a lunch under 1$, but don't expect it to be gourmet. Some street snacks are filling and don't taste too bad. Nightlife can be very cheap as well; most fun is on the street and it's easy to find, cinema and theater are also cheap, even for foreigners and if your Spanish is good theater in Cuba is full of political hints and gives a GREAT insight into everyday life.
Intercity transport will be a pain in the ass for your budget, forget about hitchhiking for free. Sharing taxis is the way to go and casa owners -particularly outside Havana- can arrange that for you (expect a 5CUC commission...).
It's a personal thing, but I would not spend too much beach time in Cuba. Beaches are not as good as where I come from (they'r not bad, just nothing to write home about), getting there is time consuming and some of the best ones are only for the all-inclusive crowds or those who don't mind being around them. I'd stick to the beaches east of Havana which are rife with Cuban life, easy to get to and offer some glimpse into real Cuban life, Santa Maria and Boca Ciega being the best of the bunch.
As far as your plan goes:
-Havana 3
- Vinales 3
-Varadero 0
-Cayo Largo 0 (VERY expensive to get to)
-Trinidad-Cienfuegos (2 Trinidad, 1 Cienfuegos)
-Cayo las Brujas 0
-Cayo Guillermo 0
-Camaguey 2
-Santiago 2
-Baracoa 3
This way you have 16 days. I'd spend some time in Remedios, Gibara (the route between Baracoa and Gibara crossing Humbolt Nacional Park is a must) and I'd add a place like Banes for history, archaeology, politics and eeveryday life off the tourist trail, possibly even visit Biran.
Again, in my plan there's only beach time in Trinidad (Ancon), Baracoa (playa maguana) and Havana (Santa Maria). Doable in 20 days, people have been doing it in less. Try to get a couple of night buses; it saves time and money (you don't spend on accommodation) but have some warm clothes for the bus.

