If Bergoglio is somehow the legit pope […] the Consecration is valid.
Even if he were merely a secular leader, would his consecration
ipso facto have no good fruits?
Cannot kings themselves consecrate their nations?
For example, from
The Story of Our Lady of Good Success and Novena:
President Garcia Moreno solemnly consecrated Ecuador to the Sacred Heart of Jesus on March 25, 1874, the feast of the Annunciation and of the Incarnation of the Word. It was the first country in the world to do this. A year afterwards, on August 6, 1875, Garcia Moreno was brutally αssαssιnαtҽd by Masonry in the Plaza of Quito, which is at the foot of the presidential palace and diagonally across from the convent of the Immaculate Conception.