The information from the UK CAA is correct. Training for an EASA licence, rating or certificate may be completed in any EU member state but the resultant licence(s) and rating(s) will be issued by the Spanish competent authority as they hold your medical records. As to the RTFOL, you will have to consult AENA to determine what is acceptable to them. The UK RT test may not be acceptable for a Spanish issued EASA CPL.