Argentina and Spain have agreed to pursue a strategic alliance to strengthen political and economic ties .