OFFLINE BASICO+OPTIMIZACION+REFACTORING