For the flan: For the liquid caramel: Mix melted butter with chocolate, then incorporate eggs beaten with sugar. Add flour and cocoa powder. Heat sugar and water until you get a liquid caramel.